/* ============================================================
   Vulmara — marketing site
   Brand: navy #0C1C30 · green #558867 · cream #F5F3EF
   Type:  Cormorant Garamond (display) · DM Sans (body)
   ============================================================ */

:root {
  --navy:        #0C1C30;
  --navy-2:      #0A1826;
  --card:        #14202E;
  --surface:     #1E2C3E;
  --cream:       #F5F3EF;
  --muted:       #AEB8C7;
  --faint:       #7C8798;
  --green:       #6FA07E;   /* lifted a touch for contrast on navy */
  --green-core:  #558867;
  --green-deep:  #456E52;
  --green-glow:  rgba(85, 136, 103, 0.20);
  --green-soft:  rgba(111, 160, 126, 0.10);
  --line:        rgba(245, 243, 239, 0.12);
  --line-soft:   rgba(245, 243, 239, 0.07);
  --glass:       rgba(245, 243, 239, 0.04);
  --glass-brd:   rgba(245, 243, 239, 0.10);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  /* Layered atmosphere: two soft green glows + a fine grain, over deep navy. */
  background-image:
    radial-gradient(60rem 40rem at 78% -8%, var(--green-glow), transparent 60%),
    radial-gradient(50rem 40rem at 8% 18%, rgba(85,136,103,0.10), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  background-attachment: fixed;
}

/* Fine film-grain overlay for depth (pure CSS, no asset). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: clamp(72px, 11vw, 140px) 0; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--green); opacity: 0.6; }

.h-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h-title em { font-style: italic; color: var(--green); }
.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 46ch;
  margin-top: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--green-core); color: #fff; box-shadow: 0 10px 30px -10px var(--green-glow); }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--green-glow); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(12, 28, 48, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a:not(.btn) { font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--cream); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--cream);
  padding: 7px 14px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid var(--glass-brd);
  margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 40ch; margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; }

/* Hero visual — stacked "auto-filed" glass cards */
.hero-visual { position: relative; height: 440px; }
.gcard {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.gcard .gc-row { display: flex; align-items: center; gap: 12px; }
.gc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); border: 1px solid var(--glass-brd); flex: none; }
.gc-ico svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.gc-title { font-weight: 600; font-size: 14.5px; }
.gc-meta { font-size: 12.5px; color: var(--faint); }
.gc-tag { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--green); background: var(--green-soft); border: 1px solid var(--glass-brd); padding: 4px 9px; border-radius: 999px; }
.gcard.c1 { top: 8px; left: 0; width: 300px; }
.gcard.c2 { top: 118px; right: 6px; width: 320px; }
.gcard.c3 { top: 232px; left: 26px; width: 296px; }
.gcard.c4 { top: 338px; right: 30px; width: 300px; }
.hero-visual .glow { position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, var(--green-glow), transparent); filter: blur(30px); z-index: -1; }

/* ---------- Feature grid ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  padding: 30px 28px;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s, background 0.3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(111,160,126,0.4); background: rgba(245,243,239,0.055); }
.feature .f-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); border: 1px solid var(--glass-brd); margin-bottom: 20px; }
.feature .f-ico svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.feature h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .f-kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 14px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 10px; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--green); line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Quote band ---------- */
.band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(10,24,40,0.5); }
.quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.28; letter-spacing: -0.01em; max-width: 22ch; }
.quote em { font-style: italic; color: var(--green); }
.quote-by { margin-top: 22px; color: var(--faint); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-q { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.faq-a { color: var(--muted); font-size: 15px; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% 0%, var(--green-glow), transparent 60%),
    var(--card);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  padding: clamp(48px, 8vw, 84px) 24px;
}
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.06; }
.cta h2 em { font-style: italic; color: var(--green); }
.cta p { color: var(--muted); max-width: 44ch; margin: 18px auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.foot-logo img { height: 34px; }
.foot-links { display: flex; gap: 26px; list-style: none; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.foot-links a:hover { color: var(--cream); }
.foot-copy { color: var(--faint); font-size: 13px; margin-top: 26px; }

/* ---------- Legal pages (privacy/terms/accessibility share this stylesheet) ---------- */
.doc { max-width: 760px; padding-top: 40px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 36px 0 12px; }
.doc h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(0.2,0.8,0.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.14s; } .d3 { animation-delay: 0.23s; }
.d4 { animation-delay: 0.32s; } .d5 { animation-delay: 0.41s; } .d6 { animation-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 400px; margin: 0 auto; max-width: 380px; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .features { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .gcard.c1{width:82%} .gcard.c2{width:82%;right:0} .gcard.c3{width:82%;left:8%} .gcard.c4{width:82%;right:0}
}

/* ============================================================
   Back-compat for the legacy legal-page markup
   (privacy.html / terms.html / accessibility.html) — styles their
   original class names into the new design with no edits to their text.
   ============================================================ */
nav:has(> .nav-logo) {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
  padding: 0 max(24px, calc((100% - var(--maxw)) / 2));
}
nav:has(> .nav-logo) .nav-logo img { height: 52px !important; width: auto; }

.legal-page {
  max-width: 820px; margin: 0 auto;
  padding: 48px 24px clamp(64px, 10vw, 120px);
  position: relative; z-index: 1;
}
.legal-page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.01em; margin-bottom: 6px; }
.legal-updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 36px 0 12px; }
.legal-page h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page strong { color: var(--cream); font-weight: 600; }
.legal-page a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.footer-logo img { height: 34px !important; width: auto; }
.footer-links { display: flex; gap: 26px; list-style: none; margin: 22px 0 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { color: var(--faint); font-size: 13px; margin-top: 22px; }
