/* ============================================================
   QUID KEEPERS — style.css
   Mobile-first, production-grade, zero frameworks
   ============================================================ */

/* ── 0. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand Palette */
  --navy-900:   #0a1628;
  --navy-800:   #0d1f3c;
  --navy-700:   #112a50;
  --navy-600:   #163567;
  --navy-400:   #2b5797;
  --gold-500:   #f0a500;
  --gold-400:   #f7bc30;
  --gold-300:   #fcd05a;
  --gold-glow:  rgba(240, 165, 0, 0.35);
  --white:      #ffffff;
  --off-white:  #f4f7fc;
  --grey-100:   #e8edf5;
  --grey-300:   #b0bdce;
  --grey-500:   #6b7d96;
  --text-body:  #dce6f5;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-card: 0 24px 64px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.25);
  --shadow-btn:  0 8px 32px rgba(240, 165, 0, 0.50), 0 2px 8px rgba(240, 165, 0, 0.30);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ── 1. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(22,53,103,0.9) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(240,165,0,0.06) 0%, transparent 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--gold-300);
  text-decoration: underline;
}

/* Focus ring — accessibility */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 2. Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── 3. Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(10, 22, 40, 0.82);
  border-bottom: 1px solid rgba(240, 165, 0, 0.10);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.85rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  user-select: none;
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 6px var(--gold-glow));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo-text strong {
  font-weight: 900;
  color: var(--gold-400);
}

.logo-dot {
  color: var(--gold-500);
  font-weight: 900;
}

/* Header trust badges */
.header-trust {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.trust-badge-small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-300);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
}

.trust-badge-small svg {
  flex-shrink: 0;
  color: var(--gold-400);
}

/* ── 4. Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-xl) var(--space-lg);
}

/* Decorative background shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-shape--1 {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(22,53,103,0.7) 0%, transparent 70%);
}

.bg-shape--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(240,165,0,0.05) 0%, transparent 70%);
}

.bg-orb {
  position: absolute;
  top: 12%;
  right: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(43,87,151,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.08); }
}

/* Hero grid */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-2xl);
  }
}

/* ── 5. Hero Copy ─────────────────────────────────────────── */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fade-up 0.75s var(--ease-out-expo) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pre-headline badge */
.pre-headline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.28);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  width: fit-content;
  animation: fade-up 0.75s 0.1s var(--ease-out-expo) both;
}

.pre-headline-badge svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.025em;
  animation: fade-up 0.75s 0.15s var(--ease-out-expo) both;
}

.headline em {
  font-style: normal;
  color: var(--gold-400);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-headline */
.sub-headline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--grey-300);
  max-width: 52ch;
  animation: fade-up 0.75s 0.2s var(--ease-out-expo) both;
}

.sub-headline strong {
  color: var(--white);
  font-weight: 600;
}

/* Benefit list */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: fade-up 0.75s 0.25s var(--ease-out-expo) both;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--grey-300);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.benefit-item:hover {
  background: rgba(240, 165, 0, 0.06);
  border-color: rgba(240, 165, 0, 0.22);
  transform: translateX(4px);
}

.benefit-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.05em;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.benefit-item strong {
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ── 6. CTA Block ─────────────────────────────────────────── */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  animation: fade-up 0.75s 0.32s var(--ease-out-expo) both;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 50%, var(--gold-300) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.05rem 2.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    transform 0.2s var(--ease-out-expo),
    background-position 0.5s ease;
  /* Pulsing animation to draw eye */
  animation: fade-up 0.75s 0.32s var(--ease-out-expo) both, btn-pulse 3s 1.5s ease-in-out infinite;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 48px rgba(240, 165, 0, 0.65), 0 4px 16px rgba(240, 165, 0, 0.40);
  background-position: 100% 50%;
}

.cta-btn:hover::before,
.cta-btn:focus-visible::before {
  opacity: 1;
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-btn__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  animation: icon-bounce 2s 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: var(--shadow-btn); }
  50%       { box-shadow: 0 12px 44px rgba(240, 165, 0, 0.75), 0 4px 16px rgba(240, 165, 0, 0.45); }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* Micro-copy */
.cta-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--grey-500);
  letter-spacing: 0.02em;
}

.cta-microcopy svg {
  color: var(--grey-500);
  flex-shrink: 0;
}

/* ── 7. Hero Visual (Book) ────────────────────────────────── */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  animation: fade-up 0.9s 0.35s var(--ease-out-expo) both;
}

.book-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

/* Glowing halo behind book */
.book-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse 70% 70% at 50% 55%, rgba(240,165,0,0.20) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: glow-breathe 4s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from { opacity: 0.6; transform: scale(0.96); }
  to   { opacity: 1;   transform: scale(1.06); }
}

/* ── Book Cover Placeholder ─────────────────────────────── */
.book-cover-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    var(--navy-700)  0%,
    var(--navy-800)  40%,
    var(--navy-900)  100%
  );
  border: 2px solid rgba(240, 165, 0, 0.28);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  /* Floating / breathing animation */
  animation: book-float 5s ease-in-out infinite;
  cursor: default;
}

/* Golden spine effect */
.book-cover-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  box-shadow: 2px 0 12px rgba(240,165,0,0.4);
}

/* Corner decorative gold accent */
.book-cover-placeholder::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(225deg, rgba(240,165,0,0.20) 0%, transparent 60%);
}

@keyframes book-float {
  0%, 100% { transform: translateY(0)    rotate(-1.5deg); }
  50%       { transform: translateY(-12px) rotate(-1.5deg); }
}

.placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem 2rem;
  text-align: center;
}

.placeholder-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-400);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  display: inline-block;
}

.placeholder-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--grey-300);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-title strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  text-transform: none;
  display: block;
}

.placeholder-sub {
  display: block;
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.placeholder-brand {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  opacity: 0.7;
}

.placeholder-hint {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.22);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  text-align: center;
}

/* Drop shadow beneath the floating book */
.book-shadow {
  width: 60%;
  height: 18px;
  margin: 0 auto;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  filter: blur(12px);
  animation: shadow-breathe 5s ease-in-out infinite;
}

@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(1);    opacity: 0.45; }
  50%       { transform: scaleX(0.78); opacity: 0.25; }
}

/* ── Social Proof ─────────────────────────────────────────── */
.social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
}

.social-proof__avatars {
  display: flex;
}

.social-proof__avatars span {
  font-size: 1.25rem;
  margin-left: -0.3em;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.social-proof__avatars span:first-child {
  margin-left: 0;
}

.social-proof p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--grey-300);
}

.social-proof p strong {
  color: var(--white);
  font-weight: 700;
  display: block;
}

/* ── 8. Trust Bar ─────────────────────────────────────────── */
.trust-bar {
  border-top:    1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.025);
  padding-block: var(--space-md);
  margin-top: var(--space-lg);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-300);
  white-space: nowrap;
}

.trust-item svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.10);
}

@media (max-width: 560px) {
  .trust-divider { display: none; }
  .trust-bar-inner { gap: var(--space-sm) var(--space-lg); justify-content: flex-start; }
}

/* ── 9. Footer ────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--grey-500);
}

.footer-copy strong {
  color: var(--grey-300);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.footer-links span {
  color: var(--grey-500);
}

.footer-links a {
  color: var(--grey-400, #8899b0);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--grey-500);
  max-width: 56ch;
  line-height: 1.6;
  opacity: 0.7;
  margin-top: var(--space-xs);
}

/* ── 10. Responsive Tweaks ────────────────────────────────── */

/* Small phones */
@media (max-width: 400px) {
  .logo-text { font-size: 1.1rem; }
  .header-trust { display: none; }
  .cta-btn { width: 100%; }
}

/* Tablet */
@media (min-width: 600px) {
  .hero {
    padding-block: var(--space-2xl) var(--space-xl);
  }
  .book-wrapper {
    max-width: 280px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .hero-copy {
    padding-right: var(--space-lg);
  }
  .hero-visual {
    justify-self: center;
  }
  .cta-block {
    align-items: flex-start;
  }
  .book-wrapper {
    max-width: 300px;
  }
}

@media (min-width: 1100px) {
  .book-wrapper {
    max-width: 330px;
  }
}

/* ── 11. Print styles (basic) ─────────────────────────────── */
@media print {
  .bg-shape, .bg-orb, .book-glow, .book-shadow { display: none; }
  body { background: white; color: black; }
}

/* ── 12. Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
