/* =============================================================
   CRE Acquisition Orchestrator: Landing
   Brand: pure-black monochrome, Playfair Display + Inter,
   square corners, hairline borders, functional accent dots.
   Matches the product dashboard 1:1.
   ============================================================= */

:root {
  /* depth scale */
  --bg:        #000000;
  --bg-near:   #030303;
  --bg-surface:#050505;
  --bg-elev:   #0a0a0a;
  --bg-char:   #121212;

  /* text hierarchy */
  --tx-1: #ffffff;
  --tx-2: rgba(255,255,255,0.66);
  --tx-3: rgba(255,255,255,0.46);
  --tx-4: rgba(255,255,255,0.30);

  /* hairlines */
  --line:       rgba(255,255,255,0.10);
  --line-soft:  rgba(255,255,255,0.06);
  --line-hover: rgba(255,255,255,0.22);
  --fill-hover: rgba(255,255,255,0.04);

  /* functional accents (used only on state markers, exactly like the product) */
  --live:    #3b82f6;
  --done:    #2db87a;
  --review:  #d9b56c;
  --blocked: #ef4444;
  --idle:    #a3a5b3;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx-1);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* technical grid texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 25%, transparent 80%);
}

/* mouse-following spotlight */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255,255,255,0.05), transparent 40%);
  transition: background 120ms linear;
}
@media (prefers-reduced-motion: reduce) { .spotlight { display: none; } }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.serif { font-family: var(--serif); }

h2.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.section-lead {
  color: var(--tx-2);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 64ch;
  margin: 20px 0 0;
}

section { position: relative; z-index: 1; padding: clamp(72px, 11vw, 130px) 0; }
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 16px; --pad-x: 30px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: #fff; color: #000; border-color: #fff; }
.btn-primary:hover { background: #e9e9ee; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-hover); }
.btn-ghost:hover { background: var(--fill-hover); border-color: #fff; }
.btn .num { color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }
.btn svg { width: 16px; height: 16px; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms;
}
.nav.scrolled {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: 0.01em; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line-hover);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 15px;
  position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 999px; background: var(--done);
  box-shadow: 0 0 8px var(--done);
}
.brand b { font-weight: 700; font-size: 15px; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tx-3); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tx-2);
  transition: color 180ms;
}
.nav-links a.link:hover { color: #fff; }
.nav .btn { --pad-y: 11px; --pad-x: 18px; font-size: 11px; }
@media (max-width: 880px) { .nav-links .link { display: none; } }
@media (max-width: 480px) {
  .nav { padding: 12px 18px; }
  .brand b { font-size: 13px; line-height: 1.15; }
  .brand small { display: none; }
  .brand .mark { width: 26px; height: 26px; font-size: 13px; }
  .nav .btn .num { display: none; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero { padding-top: clamp(130px, 18vh, 200px); padding-bottom: 40px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); padding: 7px 15px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-2);
  margin-bottom: 30px; max-width: 100%; text-align: left;
}
.hero .badge .dot { flex: none; }
.hero .badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--done); box-shadow: 0 0 10px var(--done); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.05rem, 8.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 16ch;
  overflow-wrap: break-word;
}
.hero h1 .em { font-style: italic; font-weight: 600; }
.hero h1 .grad {
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.45));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  color: var(--tx-2);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  max-width: 60ch; margin: 26px auto 0;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero .microcopy { margin-top: 18px; font-size: 12.5px; color: var(--tx-3); letter-spacing: 0.01em; }
.hero .microcopy code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tx-2); background: var(--bg-elev); border: 1px solid var(--line); padding: 2px 7px; }

/* hero screenshot in a browser frame */
.hero-shot { margin: 64px auto 0; max-width: 1080px; position: relative; }
.hero-shot .glow {
  position: absolute; inset: -8% -4% auto; height: 60%; z-index: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(59,130,246,0.16), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.frame {
  position: relative; z-index: 1;
  border: 1px solid var(--line); background: var(--bg-elev);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02);
}
.frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-hover); display: inline-block; }
.frame .bar .url { margin-left: 14px; font-size: 11px; color: var(--tx-3); font-family: ui-monospace, monospace; letter-spacing: 0.02em; }
.frame img { width: 100%; display: block; }

/* logo / proof marquee */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; margin-top: 70px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2vw, 1.5rem); color: var(--tx-3); white-space: nowrap; }
.ticker span::before { content: "·"; margin-right: 56px; color: var(--tx-4); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* hero mobile tightening */
@media (max-width: 480px) {
  .hero { padding-top: clamp(108px, 16vh, 150px); }
  .hero .badge { font-size: 9.5px; letter-spacing: 0.08em; padding: 6px 12px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  .hero p.sub { font-size: 1.02rem; }
  .frame .bar .url { display: none; }
  .code-line { flex-wrap: wrap; font-size: 11.5px; word-break: break-all; }
}

/* =============================================================
   STATS
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 34px 22px; text-align: center; transition: background 250ms; }
.stat:hover { background: var(--bg-elev); }
.stat .n { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   STEPS (How it works)
   ============================================================= */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.step { background: var(--bg); padding: clamp(28px, 4vw, 48px); position: relative; transition: background 250ms; }
.step:hover { background: var(--bg-surface); }
.step .idx { font-family: var(--serif); font-size: 13px; color: var(--tx-3); letter-spacing: 0.1em; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 14px 0 0; letter-spacing: -0.01em; }
.step p { color: var(--tx-2); margin: 12px 0 0; font-size: 0.98rem; }
.step .tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.step .tag .cdot { width: 7px; height: 7px; border-radius: 999px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* showcase rows: alternating text + screenshot */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; margin-top: 90px; }
.showcase.flip .copy { order: 2; }
.showcase .copy h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin: 14px 0 0; }
.showcase .copy p { color: var(--tx-2); margin: 16px 0 0; }
.showcase ul.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.showcase ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--tx-2); font-size: 0.95rem; }
.showcase ul.checks li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--done); }
.shot { border: 1px solid var(--line); background: var(--bg-elev); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85); }
.shot img { width: 100%; }
@media (max-width: 820px) { .showcase, .showcase.flip { grid-template-columns: 1fr; } .showcase.flip .copy { order: 0; } }

/* =============================================================
   TEAM (31 roles)
   ============================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.unit { background: var(--bg); padding: 26px 22px; transition: background 250ms; }
.unit:hover { background: var(--bg-elev); }
.unit .head { display: flex; align-items: center; gap: 9px; }
.unit .cdot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.unit .ph { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); }
.unit .ct { margin-left: auto; font-family: var(--serif); font-size: 13px; color: var(--tx-3); }
.unit ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.unit li { font-size: 13px; color: var(--tx-2); display: flex; align-items: center; gap: 9px; }
.unit li::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: var(--tx-4); flex: none; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

/* =============================================================
   EVAL (honesty section)
   ============================================================= */
.eval { background: var(--bg-surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eval-card { border: 1px solid var(--line); background: var(--bg); margin-top: 48px; }
.eval-row { display: grid; grid-template-columns: 1.4fr 2fr 0.9fr; gap: 0; border-bottom: 1px solid var(--line); }
.eval-row:last-child { border-bottom: 0; }
.eval-row > div { padding: 24px clamp(18px, 2.5vw, 32px); }
.eval-row .layer { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; border-right: 1px solid var(--line); }
.eval-row .layer small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-3); margin-top: 8px; }
.eval-row .desc { color: var(--tx-2); font-size: 0.92rem; border-right: 1px solid var(--line); }
.eval-row .score { display: flex; flex-direction: column; justify-content: center; }
.eval-row .score .big { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.eval-row .score .cap { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-3); margin-top: 4px; }
.eval-row.head { background: var(--bg-elev); }
.eval-row.head > div { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); padding-top: 16px; padding-bottom: 16px; }
.eval-row.head .layer, .eval-row.head .desc { font-family: var(--sans); }
.score-good { color: var(--done); }
.score-mid  { color: var(--review); }
.eval-note { display: flex; gap: 12px; margin-top: 28px; color: var(--tx-3); font-size: 0.88rem; max-width: 90ch; }
.eval-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--review); }
@media (max-width: 760px) {
  .eval-row, .eval-row.head { grid-template-columns: 1fr; }
  .eval-row > div { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .eval-row.head { display: none; }
}

/* =============================================================
   FEATURES
   ============================================================= */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.feat { background: var(--bg); padding: 34px 28px; transition: background 250ms, transform 250ms; }
.feat:hover { background: var(--bg-elev); }
.feat .ico { width: 42px; height: 42px; border: 1px solid var(--line-hover); display: grid; place-items: center; margin-bottom: 20px; }
.feat .ico svg { width: 20px; height: 20px; color: #fff; }
.feat h3 { font-size: 1.05rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.feat p { color: var(--tx-2); margin: 11px 0 0; font-size: 0.92rem; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; } }

/* =============================================================
   FAQ
   ============================================================= */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.faq-item { background: var(--bg); padding: 32px clamp(24px, 3vw, 40px); transition: background 250ms; }
.faq-item:hover { background: var(--bg-elev); }
.faq-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
.faq-item p { color: var(--tx-2); margin: 0; font-size: 0.95rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* =============================================================
   CTA
   ============================================================= */
.cta { text-align: center; }
.cta-box { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-elev), var(--bg)); padding: clamp(48px, 8vw, 90px) 24px; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 120% at 50% -20%, rgba(45,184,122,0.10), transparent 60%); pointer-events: none; }
.cta-box h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -0.03em; margin: 0 auto; max-width: 18ch; line-height: 1.02; position: relative; }
.cta-box p { color: var(--tx-2); margin: 22px auto 0; max-width: 56ch; position: relative; }
.cta-box .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; position: relative; }
.code-line { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; border: 1px solid var(--line); background: var(--bg); padding: 12px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--tx-2); position: relative; }
.code-line .prompt { color: var(--done); }
.code-line button { background: transparent; border: 0; color: var(--tx-3); cursor: pointer; padding: 2px; display: grid; place-items: center; }
.code-line button:hover { color: #fff; }
.code-line svg { width: 15px; height: 15px; }

/* =============================================================
   FOOTER
   ============================================================= */
footer { background: var(--bg-char); border-top: 1px solid var(--line); padding: 64px 0 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--tx-3); font-size: 0.88rem; max-width: 38ch; }
.foot-col h4 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); margin: 0 0 18px; }
.foot-col a { display: block; color: var(--tx-2); font-size: 0.9rem; margin-bottom: 12px; transition: color 160ms; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--tx-3); font-size: 0.82rem; }
.foot-bottom .social { display: flex; gap: 16px; }
.foot-bottom .social a { color: var(--tx-3); transition: color 160ms; }
.foot-bottom .social a:hover { color: #fff; }
.foot-bottom svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* =============================================================
   scroll reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

::selection { background: rgba(255,255,255,0.18); }
:focus-visible { outline: 2px solid rgba(255,255,255,0.9); outline-offset: 3px; }
