/* palette: bg=#0E141C fg=#E7EDF3 accent=#37D67A */
/* fonts: display="Space Grotesk" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #0E141C;          /* dominant dark navy background from reference */
  --bg-alt: #131B25;      /* alternating / card panel background */
  --bg-card: #161F2A;     /* listing card surface */
  --fg: #E7EDF3;          /* primary light text */
  --fg-soft: #C3CDD9;     /* slightly softer light */
  --muted: #7E8C9C;       /* secondary blue-grey text */
  --accent: #37D67A;      /* green from prices / "just listed" tag */
  --accent-deep: #23B863; /* darker green for hover */
  --line: #26313F;        /* hairline dividers */
  --border: rgba(255, 255, 255, 0.08);
  --tag: rgba(55, 214, 122, 0.12);
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 20, 28, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #06110A;
  font-size: 14px;
  font-weight: 700;
}
.nav { display: none; gap: 30px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--accent); }
.header__cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn--primary { background: var(--accent); color: #06110A; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.mobile-menu .btn { margin-top: 24px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease) forwards;
  opacity: 0.42;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,28,0.55) 0%, rgba(14,20,28,0.85) 60%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 22px 0 26px;
  max-width: 15ch;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero__sub {
  max-width: 54ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--fg-soft);
  line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--fg);
}
.hero__meta span { font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }

/* ============ SECTION SHELL ============ */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.025em;
  margin: 18px 0 20px;
}
.section__head p { color: var(--fg-soft); font-size: clamp(1rem, 2vw, 1.12rem); max-width: 60ch; }

/* ============ LISTING / CAPABILITY GRID (mirrors reference cards) ============ */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.4);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 214, 122, 0.4);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7);
}
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--tag);
  color: var(--accent);
  border: 1px solid rgba(55, 214, 122, 0.35);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__kicker { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.card__title { font-size: 1.5rem; letter-spacing: -0.02em; }
.card__desc { color: var(--fg-soft); font-size: 15px; line-height: 1.65; }
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}
.card__foot .price { color: var(--accent); font-weight: 600; }
.card__specs { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card__specs span { display: inline-flex; align-items: center; gap: 5px; }

/* ============ TIMELINE / PROGRESSION ============ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.tl-body { display: flex; flex-direction: column; gap: 10px; }
.tl-body h3 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; }
.tl-body p { color: var(--fg-soft); font-size: 16px; max-width: 62ch; }
.tl-phase { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
@media (min-width: 768px) {
  .tl-item { grid-template-columns: 120px 1fr; gap: 40px; }
}

/* ============ MANIFESTO (dark inverted band) ============ */
.manifesto { background: var(--accent); color: #06110A; text-align: center; }
.manifesto .container { max-width: 960px; }
.manifesto .eyebrow { color: #06110A; }
.manifesto .eyebrow::before { background: #06110A; }
.manifesto blockquote {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.manifesto cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

/* ============ SPLIT / FEATURE ============ */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; margin: 18px 0 22px; }
.split p { color: var(--fg-soft); margin-bottom: 16px; font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-soft); }
.checklist li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
}

/* ============ STATS BAND ============ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__item { background: var(--bg-card); padding: 32px 24px; }
.stats__item strong { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; display: block; color: var(--fg); }
.stats__item span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ============ FAQ ============ */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq__icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
.faq__item[data-open="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 0 26px; color: var(--fg-soft); font-size: 16px; max-width: 68ch; }

/* ============ CTA ============ */
.cta { text-align: center; }
.cta__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(48px, 8vw, 92px) 28px;
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(55,214,122,0.14), transparent 60%);
}
.cta__card > * { position: relative; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em; margin: 18px auto 20px; max-width: 16ch; }
.cta p { color: var(--fg-soft); max-width: 52ch; margin: 0 auto 32px; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============ FORM ============ */
.form-wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1fr; gap: 72px; } }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-block { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-block span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); display: block; margin-bottom: 8px; }
.contact-block p, .contact-block a { color: var(--fg-soft); font-size: 16px; line-height: 1.6; }
.contact-block a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 100px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; } }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.footer__col h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: var(--fg-soft); font-size: 15px; margin-bottom: 12px; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 700px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__bottom a:hover { color: var(--accent); }

/* ============ LEGAL PAGES ============ */
.legal { padding: clamp(120px, 16vw, 180px) 0 clamp(60px, 9vw, 110px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 44px; display: block; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 16px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.legal ul { padding-left: 20px; }

/* ============ THANKS PAGE ============ */
.thanks { min-height: 82vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 80px; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.thanks p { color: var(--fg-soft); max-width: 48ch; margin: 0 auto 32px; font-size: 1.1rem; }
.thanks .badge {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--tag); border: 1px solid rgba(55,214,122,0.4);
  display: grid; place-items: center; margin: 0 auto 30px;
  color: var(--accent); font-size: 34px;
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============ COOKIE POPUP ============ */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-card); border: 1px solid var(--border); padding: 30px 32px; max-width: 460px; border-radius: 14px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.cookie-popup__card p { color: var(--fg-soft); font-size: 14px; line-height: 1.6; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 22px; border: 1px solid var(--border); border-radius: 9999px; font-size: 14px; transition: all 0.25s var(--ease); }
.cookie-popup__actions button:first-child { color: var(--fg-soft); }
.cookie-popup__actions button:first-child:hover { border-color: var(--fg-soft); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #06110A; border-color: var(--accent); font-weight: 500; }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
