/* ==========================================================================
   RentIQ — "Price every unit like your best analyst would"
   A multifamily revenue-management command centre. Precise, premium, data-led.
   BuildspaceLabs
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --base: #F6F5FB;
  --surface: #FFFFFF;
  --ink: #17141F;
  --ink-2: #2C2838;
  --slate: #635F72;
  --slate-2: #948FA6;
  --hair: #E7E4F0;
  --hair-strong: #D8D3E6;

  --violet: #7C3AED;
  --violet-hover: #6D28D9;
  --violet-deep: #5B21B6;
  --violet-lite: #A78BFA;
  --violet-tint: #F1ECFE;
  --violet-tint-2: #E7DEFC;
  --violet-ring: rgba(124, 58, 237, 0.16);

  --graphite: #1A1626;
  --graphite-2: #221D31;

  --amber: #C07A16;
  --amber-tint: #FBF2E1;
  --emerald: #0B815A;
  --emerald-tint: #E7F7F0;
  --rose: #C93A55;

  --ink-soft: rgba(23, 20, 31, 0.06);
  --ink-soft-2: rgba(23, 20, 31, 0.10);

  --shadow-sm: 0 1px 2px rgba(23, 20, 31, 0.05);
  --shadow-md: 0 10px 26px -14px rgba(58, 30, 110, 0.22), 0 2px 6px -3px rgba(23, 20, 31, 0.08);
  --shadow-lg: 0 44px 88px -34px rgba(58, 30, 110, 0.42), 0 14px 30px -14px rgba(23, 20, 31, 0.16);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset-ish ----- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); letter-spacing: -0.02em; }

/* ----- Layout helpers ----- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.hero-grid > *, .shot-row > *, .drivers-grid > *, .contact-grid > *,
.steps > *, .features > *, .explain-inner > *, .viz-body > *, .kpi-inner > * { min-width: 0; }
.section { padding-block: clamp(64px, 9vw, 132px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--violet); opacity: 0.6; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--slate); font-size: clamp(16px, 1.4vw, 18px); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), box-shadow 0.25s var(--ease), color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: 0 1px 2px rgba(109,40,217,0.3), 0 12px 24px -12px rgba(124,58,237,0.6);
}
.btn-primary:hover { background: var(--violet-hover); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(109,40,217,0.35), 0 20px 36px -14px rgba(124,58,237,0.65); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hair-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--violet-lite); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 251, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--hair); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--violet-lite), var(--violet-deep));
  box-shadow: 0 2px 8px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.28);
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: none; align-items: center; gap: 28px; margin-left: 22px; }
.nav-links a { font-size: 14.5px; color: var(--slate); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.built-by {
  display: none; align-items: center; gap: 6px;
  font-size: 13px; color: var(--slate);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--hair);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.built-by:hover { color: var(--ink); border-color: var(--hair-strong); }
.built-by svg { width: 12px; height: 12px; }
.built-by b { color: var(--ink); font-weight: 700; }
.nav-cta { display: none; }

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .built-by { display: inline-flex; }
  .nav-cta { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 540px at 84% 4%, var(--violet-tint), transparent 62%),
    radial-gradient(720px 440px at 2% 96%, rgba(124,58,237,0.05), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 520px at 72% 28%, #000 30%, transparent 78%);
  mask-image: radial-gradient(720px 520px at 72% 28%, #000 30%, transparent 78%);
  opacity: 0.55;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(40px, 6vw, 56px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 0.98fr; } }

.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--slate);
  background: var(--surface); border: 1px solid var(--hair);
  padding: 7px 13px 7px 11px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pulse-dot { position: relative; width: 8px; height: 8px; }
.pulse-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--violet); }
.pulse-dot span:last-child { animation: pulse-ring 2.4s var(--ease) infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.hero h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: 1.03; margin-top: 22px; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--violet); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.10em;
  background: linear-gradient(90deg, var(--violet), rgba(124,58,237,0.15));
  border-radius: 2px;
}
.hero-sub { margin-top: 24px; max-width: 512px; font-size: clamp(16px, 1.55vw, 19px); color: var(--slate); line-height: 1.62; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13.5px; color: var(--slate); }
.hero-trust .item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--violet); flex: none; }

/* ----- Signature hero visual: pricing engine + demand curve ----- */
.hero-visual { position: relative; }
.viz-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  overflow: hidden;
}
.viz-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 92% -12%, var(--violet-tint), transparent 70%);
  pointer-events: none;
}
.viz-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; }
.viz-topbar .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.viz-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--violet); }
.viz-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: blink 2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.viz-price { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.viz-price .vp-l .k { font-size: 12px; color: var(--slate); }
.viz-price .vp-l .v { font-family: var(--font-mono); font-size: clamp(30px, 4.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-top: 4px; }
.viz-price .vp-l .v small { font-size: 15px; color: var(--slate-2); font-weight: 400; }
.viz-delta { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 13px; color: var(--emerald); background: var(--emerald-tint); padding: 5px 10px; border-radius: 999px; }
.viz-delta svg { width: 13px; height: 13px; }

.viz-curve { position: relative; margin-top: 8px; }
.viz-curve svg { width: 100%; height: auto; overflow: visible; display: block; }
.curve-line { fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.curve-area { fill: url(#heroCurveFill); opacity: 0; }
.curve-grid { stroke: var(--hair); stroke-width: 1; }
.curve-guide { stroke: var(--hair-strong); stroke-width: 1.2; stroke-dasharray: 3 4; }
.curve-guide.rec { stroke: var(--violet); opacity: 0.6; stroke-dasharray: 4 4; }
.curve-cur { fill: #fff; stroke: var(--slate-2); stroke-width: 2.4; }
.curve-rec { fill: var(--violet); stroke: #fff; stroke-width: 2.4; opacity: 0; }
.curve-cap { font-family: var(--font-mono); font-size: 9.5px; fill: var(--slate-2); }

.viz-drivers { position: relative; margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.viz-drv { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 10px; }
.viz-drv .dn { font-size: 12px; color: var(--slate); }
.viz-drv .db { height: 6px; border-radius: 999px; background: var(--ink-soft); overflow: hidden; }
.viz-drv .db i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet-lite), var(--violet-deep)); transition: width 1.1s var(--ease); }
.viz-drv .db.warm i { background: linear-gradient(90deg, #E7A83C, var(--amber)); }
.viz-drv .dv { font-family: var(--font-mono); font-size: 12px; color: var(--ink); text-align: right; }

.viz-legend { display: flex; gap: 16px; margin-top: 18px; position: relative; flex-wrap: wrap; }
.viz-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.viz-legend .m-cur { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--slate-2); }
.viz-legend .m-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }

/* ==========================================================================
   KPI band
   ========================================================================== */
.kpi-band { background: var(--graphite); color: #fff; position: relative; overflow: hidden; }
.kpi-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 25% 100%; opacity: 0.5;
}
.kpi-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 88% -30%, rgba(124,58,237,0.28), transparent 70%);
}
.kpi-inner { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; z-index: 1; }
@media (min-width: 760px) { .kpi-inner { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 30px); border-top: 1px solid rgba(255,255,255,0.10); border-left: 1px solid rgba(255,255,255,0.10); }
.kpi:nth-child(1), .kpi:nth-child(2) { border-top: none; }
@media (min-width: 760px) { .kpi { border-top: none; } .kpi:first-child { border-left: none; } }
.kpi .num { font-family: var(--font-mono); font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.kpi .num .pre { color: var(--violet-lite); }
.kpi .num .unit { color: var(--violet-lite); font-size: 0.6em; margin-left: 2px; }
.kpi .lbl { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,0.62); letter-spacing: 0.01em; }
.kpi .tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; }
.kpi .tag.up { color: #7EE0B8; }
.kpi .tag.hot { color: #F4C77A; }

/* ==========================================================================
   Drivers (how a rent is decided)
   ========================================================================== */
.drivers-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .drivers-grid { grid-template-columns: 0.9fr 1.1fr; } }

.driver-list { display: flex; flex-direction: column; gap: 14px; }
.driver {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.driver:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hair-strong); }
.driver-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.driver-name { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15.5px; }
.driver-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet); flex: none; }
.driver-ic svg { width: 18px; height: 18px; }
.driver-weight { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--ink); }
.driver-bar { margin-top: 14px; height: 7px; border-radius: 999px; background: var(--ink-soft); overflow: hidden; }
.driver-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet-lite), var(--violet-deep)); transition: width 1.1s var(--ease); }
.driver.d2 .driver-ic { background: var(--violet-tint); color: var(--violet); }
.driver.d3 .driver-ic { background: var(--violet-tint); color: var(--violet); }
.driver.d4 .driver-ic { background: var(--amber-tint); color: var(--amber); }
.driver.d4 .driver-bar i { background: linear-gradient(90deg, #E7A83C, var(--amber)); }
.driver-desc { margin-top: 10px; font-size: 13.5px; color: var(--slate); }

.drivers-note {
  align-self: stretch;
  background: linear-gradient(180deg, var(--surface), #FBFAFE);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.drivers-note h3 { font-size: 22px; }
.drivers-note p { margin-top: 14px; color: var(--slate); font-size: 15.5px; }
.attrib-ring { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.ring-wrap svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.ring-track { fill: none; stroke: var(--hair); stroke-width: 11; }
.ring-fill { fill: none; stroke: var(--violet); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.4s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label .score { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1; }
.ring-label .of { font-family: var(--font-mono); font-size: 10px; color: var(--slate); margin-top: 3px; }
.ring-legend { display: flex; flex-direction: column; gap: 10px; }
.ring-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--slate); }
.ring-legend .k { font-family: var(--font-mono); color: var(--ink); font-size: 13px; margin-left: auto; }
.ring-legend .d { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-n { font-family: var(--font-mono); font-size: 12px; color: var(--violet); letter-spacing: 0.1em; }
.step-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin: 16px 0 20px; background: var(--violet-tint); color: var(--violet); }
.step-ic svg { width: 24px; height: 24px; }
.step h3 { font-size: 20px; }
.step p { margin-top: 12px; color: var(--slate); font-size: 14.5px; }
@media (min-width: 800px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -12px; width: 24px; height: 1px; background: var(--hair-strong); z-index: 2; }
}

/* ==========================================================================
   Product tour
   ========================================================================== */
.tour { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.shot-row { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .shot-row { grid-template-columns: 1fr 1.25fr; }
  .shot-row.reverse { grid-template-columns: 1.25fr 1fr; }
  .shot-row.reverse .shot-copy { order: 2; }
}
.shot-copy .eyebrow { margin-bottom: 14px; }
.shot-copy h3 { font-size: clamp(24px, 3vw, 32px); }
.shot-copy p { margin-top: 16px; color: var(--slate); font-size: 16px; }
.shot-copy .shot-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.shot-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.shot-feats svg { width: 19px; height: 19px; color: var(--violet); flex: none; margin-top: 1px; }

.browser { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #FBFAFE; border-bottom: 1px solid var(--hair); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--hair-strong); }
.browser-url {
  margin-left: 8px; flex: 1; max-width: 360px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--slate);
  background: var(--base); border: 1px solid var(--hair); border-radius: 7px;
  padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-url svg { width: 11px; height: 11px; color: var(--violet); flex: none; }
.browser img { width: 100%; display: block; }
.shot-cap { margin-top: 14px; font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.shot-cap svg { width: 14px; height: 14px; color: var(--slate-2); flex: none; }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.features { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); padding: 30px 28px; transition: background 0.3s; }
.feature:hover { background: #FBFAFE; }
.feature-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet); margin-bottom: 18px; }
.feature-ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; }
.feature p { margin-top: 10px; color: var(--slate); font-size: 14.5px; }

/* ==========================================================================
   Explainable band
   ========================================================================== */
.explain { background: var(--graphite); color: #fff; position: relative; overflow: hidden; }
.explain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 340px at 12% 120%, rgba(124,58,237,0.28), transparent 68%);
}
.explain-inner { display: grid; gap: clamp(32px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .explain-inner { grid-template-columns: 1fr 0.85fr; } }
.explain .eyebrow { color: var(--violet-lite); }
.explain .eyebrow::before { background: var(--violet-lite); }
.explain h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.explain p { margin-top: 18px; color: rgba(255,255,255,0.68); font-size: 17px; max-width: 520px; }
.explain-points { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.explain-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.85); }
.explain-points svg { width: 20px; height: 20px; color: var(--violet-lite); flex: none; margin-top: 1px; }

.explain-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(8px); }
.explain-card .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.explain-card .head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.explain-card .head .s { font-family: var(--font-mono); font-size: 22px; color: var(--violet-lite); }
.explain-card .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.09); }
.explain-card .row:last-child { border-bottom: none; }
.explain-card .row .name { font-size: 14px; color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 9px; }
.explain-card .row .name .dot { width: 8px; height: 8px; border-radius: 50%; }
.explain-card .row .wt { font-family: var(--font-mono); font-size: 13px; color: #fff; }
.mini-bar { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.12); margin: 0 12px; overflow: hidden; max-width: 130px; }
.mini-bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s var(--ease); }

/* ==========================================================================
   Tech chips
   ========================================================================== */
.tech { text-align: center; }
.tech .section-head { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.chip { font-family: var(--font-mono); font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), border-color 0.25s; }
.chip:hover { transform: translateY(-2px); border-color: var(--violet); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #2A1259 0%, #5B21B6 48%, #7C3AED 100%);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(40px, 6vw, 76px);
  color: #fff;
  box-shadow: 0 44px 96px -40px rgba(91,33,182,0.72);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(600px 400px at 85% 20%, #000, transparent 75%);
  mask-image: radial-gradient(600px 400px at 85% 20%, #000, transparent 75%);
}
.cta-card .inner { position: relative; z-index: 1; max-width: 660px; }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 46px); }
.cta-card p { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.85); }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-card .btn-primary { background: #fff; color: var(--violet-deep); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.4); }
.cta-card .btn-primary:hover { background: #F3EEFE; }
.cta-card .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #fff; box-shadow: none; }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--hair); background: var(--surface); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--slate); font-size: 14.5px; max-width: 330px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-2); font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--slate); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--violet); }
.footer-bottom { border-top: 1px solid var(--hair); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.credit { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; color: var(--slate); }
.bs-lockup { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 400; color: var(--ink); padding: 6px 12px; border: 1px solid var(--hair); border-radius: 10px; transition: border-color 0.2s, transform 0.2s; }
.bs-lockup:hover { border-color: var(--violet); transform: translateY(-1px); }
.bs-lockup .bs { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--graphite); color: #fff; font-size: 11px; font-weight: 600; }
.credit .tag { color: var(--slate); }
.footer-note { font-size: 13px; color: var(--slate-2); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); max-width: 14ch; }
.page-hero p { margin-top: 20px; color: var(--slate); font-size: clamp(16px, 1.5vw, 19px); max-width: 560px; }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }

.form-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: var(--violet); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--base); border: 1px solid var(--hair-strong); border-radius: 11px;
  padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-card .btn-primary { width: 100%; margin-top: 4px; }
.form-reassure { margin-top: 16px; font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 8px; justify-content: center; text-align: center; }
.form-reassure svg { width: 14px; height: 14px; color: var(--violet); flex: none; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 17px; margin-bottom: 6px; }
.aside-card p { color: var(--slate); font-size: 14px; }
.aside-card a.link { color: var(--violet); font-weight: 600; word-break: break-word; }
.aside-card a.link:hover { color: var(--violet-hover); text-decoration: underline; }
.aside-contact { display: flex; align-items: center; gap: 13px; margin-top: 14px; }
.aside-contact .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet); flex: none; }
.aside-contact .ic svg { width: 19px; height: 19px; }
.aside-contact .meta .k { font-size: 12px; color: var(--slate); }
.aside-contact .meta .v { font-size: 14.5px; font-weight: 600; }
.aside-facts { display: flex; flex-direction: column; gap: 14px; }
.aside-facts li { display: flex; gap: 11px; font-size: 14px; color: var(--slate); align-items: flex-start; }
.aside-facts svg { width: 18px; height: 18px; color: var(--violet); flex: none; margin-top: 1px; }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: clamp(64px, 10vw, 120px); }
.thanks-inner { max-width: 520px; }
.success-badge { width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet); border: 1px solid var(--violet-tint-2); position: relative; }
.success-badge::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--violet-ring); animation: pulse-ring 2.8s var(--ease) infinite; }
.success-badge svg { width: 40px; height: 40px; }
.thanks h1 { font-size: clamp(30px, 4.6vw, 46px); }
.thanks p { margin-top: 18px; color: var(--slate); font-size: clamp(16px, 1.6vw, 18px); }
.thanks-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.thanks-email { margin-top: 24px; font-size: 14px; color: var(--slate); }
.thanks-email a { color: var(--violet); font-weight: 600; }
.thanks-email a:hover { text-decoration: underline; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse-dot span:last-child, .success-badge::after, .viz-live .dot { animation: none !important; }
  .curve-area, .curve-rec { opacity: 1 !important; }
}
