/* ============================================================
   ALTIOR — Design System
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-light: #fbfbfd;
  --bg-dark: #000000;
  --bg-gray: #1d1d1f;
  --bg-soft: #f5f5f7;

  /* Text */
  --text-on-light: #1d1d1f;
  --text-on-light-secondary: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #86868b;

  /* Brand (tweak-able) */
  --brand: #007aff;
  --brand-hover: #0066d6;
  --brand-soft: rgba(0, 122, 255, 0.12);

  /* Borders */
  --border-light: #d2d2d7;
  --border-dark: #424245;

  /* Easing */
  --ease-apple: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-out-apple: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type */
  --font-display: "Inter Tight", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Page-wide fixed bg layer used to cross-fade between themes */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-dark);
  transition: background-color 800ms var(--ease-apple);
}

/* ============================================================
   Containers + Sections
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.xl { max-width: 1400px; }
.container.full { max-width: none; }

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

.section {
  position: relative;
  padding: 120px 0;
}
@media (min-width: 768px) {
  .section { padding: 160px 0; }
}

.section.tight { padding: 80px 0; }
.section.dramatic { padding: 200px 0; }
@media (min-width: 768px) {
  .section.dramatic { padding: 240px 0; }
}

.section.dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section.light { background: var(--bg-light); color: var(--text-on-light); }
.section.gray { background: var(--bg-soft); color: var(--text-on-light); }

/* ============================================================
   Typography
   ============================================================ */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.h1-hero {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 140px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.h1-section {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.body-large {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
}

.body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--brand);
}

.muted-on-dark { color: var(--text-on-dark-secondary); }
.muted-on-light { color: var(--text-on-light-secondary); }

.grad-word {
  background: linear-gradient(180deg, currentColor 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-word { color: var(--brand); }

/* ============================================================
   Buttons + Links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 980px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 300ms var(--ease-out-apple);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.section.light .btn-secondary,
.section.gray .btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-on-light);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  padding: 12px 8px;
}
.btn-ghost .arrow {
  display: inline-block;
  transition: transform 300ms var(--ease-out-apple);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-large {
  font-size: 19px;
  padding: 16px 32px;
}

/* ============================================================
   Floating Nav
   ============================================================ */

#nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 24px);
  max-width: 980px;
  border-radius: 980px;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 600ms var(--ease-apple), color 600ms var(--ease-apple), border-color 600ms var(--ease-apple);
  color: var(--text-on-dark);
}

#nav.theme-light {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-on-light);
}

#nav .logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
#nav .logo .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#nav .logo .mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
}

#nav .links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 400;
}
@media (min-width: 900px) {
  #nav .links { display: flex; }
}
#nav .links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 200ms;
}
#nav .links a:hover { opacity: 1; }

#nav .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#nav .actions .signin {
  display: none;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
  padding: 0 12px;
}
@media (min-width: 600px) {
  #nav .actions .signin { display: inline; }
}
#nav .actions .btn {
  font-size: 14px;
  padding: 8px 16px;
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero .eyebrow { color: var(--brand); margin-bottom: 28px; }

#hero h1 {
  max-width: 1200px;
  margin: 0 auto;
}

#hero .subhead {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--text-on-dark-secondary);
}

#hero .ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

#hero .stage-wrap {
  margin-top: 80px;
  width: 100%;
  max-width: 1100px;
  perspective: 1800px;
}

/* Dashboard mock floats + tilts */
#hero .dashboard-mock {
  transform: rotateX(8deg) translateZ(0);
  transform-origin: center 70%;
  transition: transform 100ms linear;
  will-change: transform;
}

/* hero glow */
#hero::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 1200px;
  border-radius: 50%;
  left: 50%;
  bottom: -700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
#hero > * { position: relative; z-index: 1; }

/* ============================================================
   Dashboard mockup (used in hero + pin-scroll)
   ============================================================ */

.dashboard-mock {
  background: linear-gradient(180deg, #161618 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.dashboard-mock .topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-mock .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a3a3c;
}
.dashboard-mock .topbar .title {
  margin-left: 12px;
  font-size: 11px;
  color: #86868b;
  font-family: var(--font-mono);
}

.dashboard-mock .body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}

.dashboard-mock .sidebar {
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.dashboard-mock .sidebar .section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e6e73;
  margin: 14px 0 6px;
}
.dashboard-mock .sidebar .item {
  padding: 7px 10px;
  border-radius: 6px;
  color: #c7c7cc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-mock .sidebar .item.active {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.dashboard-mock .sidebar .item .ico {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.dashboard-mock .sidebar .item.active .ico { background: var(--brand); }

.dashboard-mock .main {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.dashboard-mock .main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-mock .main-head h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.dashboard-mock .main-head .pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
}

.dashboard-mock .leads-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dashboard-mock .lead-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}
.dashboard-mock .lead-row .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #222);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: #c7c7cc;
}
.dashboard-mock .lead-row .name {
  font-weight: 500;
  color: #f5f5f7;
}
.dashboard-mock .lead-row .meta {
  font-size: 10px;
  color: #86868b;
  font-family: var(--font-mono);
}
.dashboard-mock .lead-row .status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 980px;
  background: rgba(255,255,255,0.06);
  color: #c7c7cc;
}
.dashboard-mock .lead-row .status.hot {
  background: var(--brand-soft);
  color: var(--brand);
}
.dashboard-mock .lead-row .score {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f5f5f7;
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

/* chat panel inside dashboard */
.dashboard-mock .chat-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px;
  overflow: hidden;
}
.dashboard-mock .bubble {
  max-width: 75%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.35;
}
.dashboard-mock .bubble.them {
  background: rgba(255,255,255,0.06);
  color: #f5f5f7;
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.dashboard-mock .bubble.us {
  background: var(--brand);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

/* kanban inside dashboard */
.dashboard-mock .kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dashboard-mock .col {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 280px;
}
.dashboard-mock .col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
  color: #c7c7cc;
}
.dashboard-mock .col-head .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6e6e73;
}
.dashboard-mock .card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dashboard-mock .card .name {
  color: #f5f5f7;
  font-weight: 500;
}
.dashboard-mock .card .meta {
  font-size: 10px;
  color: #86868b;
  font-family: var(--font-mono);
}

/* charts/reports inside dashboard */
.dashboard-mock .chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dashboard-mock .stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px 14px;
}
.dashboard-mock .stat-card .label {
  font-size: 10px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.dashboard-mock .stat-card .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.dashboard-mock .stat-card .delta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--brand);
  margin-top: 2px;
}
.dashboard-mock .line-chart {
  margin-top: 12px;
  height: 90px;
  position: relative;
}
.dashboard-mock .line-chart svg { width: 100%; height: 100%; overflow: visible; }

/* hide on small screens for performance/clarity */
@media (max-width: 720px) {
  .dashboard-mock .body { grid-template-columns: 1fr; }
  .dashboard-mock .sidebar { display: none; }
  .dashboard-mock .kanban { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MULTIPLATAFORMA — tabbed app preview
   ============================================================ */

#multi-platform { padding-top: 40px; padding-bottom: 100px; }
@media (min-width: 768px) {
  #multi-platform { padding-top: 40px; padding-bottom: 140px; }
}

#multi-platform .mp-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.app-preview {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.app-preview .preview-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #161618 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 96px;
}

.preview-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 24px 90px;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 500ms var(--ease-out-apple), transform 700ms var(--ease-out-apple);
  pointer-events: none;
}
.preview-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.preview-slide[data-preview="web"] .dashboard-mock {
  width: 100%;
  max-width: 880px;
}

/* floating pill */
.preview-tabs {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 5px;
  z-index: 5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.preview-tabs button {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 300ms var(--ease-out-apple), color 300ms var(--ease-out-apple), transform 300ms var(--ease-out-apple);
  white-space: nowrap;
}
.preview-tabs button:hover { color: white; }
.preview-tabs button.active {
  background: #f5f5f7;
  color: #1d1d1f;
}

/* ============================================================
   Phone mock
   ============================================================ */

.phone-mock {
  width: 300px;
  background: #050507;
  border-radius: 44px;
  border: 9px solid #1d1d1f;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 24px rgba(0, 0, 0, 0.4);
}
.phone-mock .phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}
.phone-screen {
  background: #0a0a0c;
  min-height: 620px;
  padding: 48px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f7;
  padding: 0 6px;
}
.phone-status .status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.phone-status .signal,
.phone-status .wifi,
.phone-status .battery {
  display: inline-block;
  background: #f5f5f7;
}
.phone-status .signal {
  width: 14px;
  height: 9px;
  -webkit-mask: linear-gradient(to top right, transparent 49%, #000 50%);
  mask: linear-gradient(to top right, transparent 49%, #000 50%);
}
.phone-status .wifi {
  width: 12px;
  height: 9px;
  border-radius: 2px;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.phone-status .battery {
  width: 22px;
  height: 10px;
  border-radius: 2px;
  position: relative;
}
.phone-status .battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #f5f5f7;
  border-radius: 0 1px 1px 0;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 6px 4px;
}
.phone-header .title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #f5f5f7;
  line-height: 1;
}
.phone-header .sub {
  font-size: 10px;
  color: var(--brand);
  font-family: var(--font-mono);
  margin-top: 4px;
  white-space: nowrap;
}
.phone-header .badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.phone-tabs {
  display: flex;
  gap: 4px;
  padding: 0 4px;
  margin-top: 4px;
}
.phone-tabs span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #86868b;
  background: rgba(255, 255, 255, 0.03);
}
.phone-tabs span.active {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}

.phone-leads {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.phone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-card .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3a3c, #1d1d1f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: #c7c7cc;
  flex-shrink: 0;
}
.phone-card .info {
  flex: 1;
  min-width: 0;
}
.phone-card .info .nm {
  font-size: 13px;
  color: #f5f5f7;
  font-weight: 500;
  line-height: 1.2;
}
.phone-card .info .ms {
  font-size: 11px;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.phone-card .score {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.phone-card .score.muted {
  background: rgba(255, 255, 255, 0.05);
  color: #c7c7cc;
}

.phone-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-nav .ni {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #6e6e73;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.phone-nav .ni .ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #3a3a3c;
}
.phone-nav .ni.active { color: var(--brand); }
.phone-nav .ni.active .ico { background: var(--brand); }

/* Responsive */
@media (max-width: 720px) {
  .app-preview .preview-frame {
    min-height: 560px;
    padding: 40px 16px 86px;
  }
  .preview-slide[data-preview="web"] .dashboard-mock {
    transform: scale(0.85);
    transform-origin: center;
  }
  .preview-tabs button {
    font-size: 13px;
    padding: 9px 16px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out-apple), transform 800ms var(--ease-out-apple);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.no-transition,
.reveal.no-transition * { transition: none !important; }
.reveal.d100 { transition-delay: 100ms; }
.reveal.d200 { transition-delay: 200ms; }
.reveal.d300 { transition-delay: 300ms; }
.reveal.d400 { transition-delay: 400ms; }
.reveal.d500 { transition-delay: 500ms; }
.reveal.d700 { transition-delay: 700ms; }
.reveal.d900 { transition-delay: 900ms; }

.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out-apple), transform 600ms var(--ease-out-apple);
}
.word-reveal.in .word { opacity: 1; transform: translateY(0); }

/* ============================================================
   PIN SCROLL #1 (IA)
   ============================================================ */

#pin-ia {
  height: 400vh;
  position: relative;
  background: var(--bg-dark);
}
#pin-ia .pin-target {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 80px 24px 40px;
  overflow: hidden;
}
@media (min-width: 1000px) {
  #pin-ia .pin-target {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
  }
}
#pin-ia .pin-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  order: 2;
  max-width: 560px;
}
@media (min-width: 1000px) {
  #pin-ia .pin-text { order: 2; padding-left: 40px; }
}
#pin-ia .pin-media {
  order: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 70vh;
}

.stage-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms var(--ease-out-apple), transform 500ms var(--ease-out-apple);
  pointer-events: none;
}
.stage-text.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#pin-ia .pin-text-stack {
  position: relative;
  min-height: 400px;
  width: 100%;
}

.stage-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 500ms var(--ease-apple), transform 700ms var(--ease-out-apple);
}
.stage-media.active {
  opacity: 1;
  transform: scale(1);
}
.stage-media .dashboard-mock {
  width: 100%;
  max-width: 560px;
}

#pin-ia .stage-indicator {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}
#pin-ia .stage-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 300ms, transform 300ms;
}
#pin-ia .stage-indicator .dot.active {
  background: var(--brand);
  transform: scale(1.4);
}

/* ============================================================
   BIG QUOTE
   ============================================================ */

.big-quote {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

/* ============================================================
   LIVE DEMO (chat)
   ============================================================ */

#live-demo .head {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
#live-demo .head .subhead { max-width: 720px; }

.demo-card {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.10),
    0 8px 24px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
  position: relative;
  transition: box-shadow 700ms var(--ease-out-apple);
}
.demo-card.pulse {
  box-shadow:
    0 0 0 4px var(--brand-soft),
    0 30px 80px rgba(0,0,0,0.10),
    0 8px 24px rgba(0,0,0,0.05);
}
.demo-card .demo-head {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
  gap: 12px;
}
.demo-card .demo-head .dots { display: flex; gap: 6px; }
.demo-card .demo-head .dots span {
  width: 12px; height: 12px; border-radius: 50%; background: #e5e5ea;
}
.demo-card .demo-head .demo-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-on-light-secondary);
  font-family: var(--font-mono);
}
.demo-card .demo-head .demo-title b {
  color: var(--text-on-light);
  font-weight: 500;
  font-family: var(--font-body);
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 540px;
}
@media (min-width: 800px) {
  .demo-body { grid-template-columns: 60% 40%; }
}

.demo-chat {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 540px;
  scroll-behavior: smooth;
  background: white;
}
.demo-chat .row {
  display: flex;
}
.demo-chat .row.them { justify-content: flex-start; }
.demo-chat .row.us { justify-content: flex-end; }
.demo-chat .bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  animation: bubble-in 400ms var(--ease-out-apple) backwards;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-chat .bubble.them {
  background: #f0f0f3;
  color: var(--text-on-light);
  border-top-left-radius: 6px;
}
.demo-chat .bubble.us {
  background: var(--brand);
  color: white;
  border-top-right-radius: 6px;
}
.demo-chat .typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
  background: #f0f0f3;
  border-radius: 18px;
  border-top-left-radius: 6px;
}
.demo-chat .typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #86868b;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.demo-chat .typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-chat .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.demo-insights {
  background: var(--bg-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--border-light);
}
.demo-insights .insights-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-light-secondary);
}
.demo-insights .insights-label .sparkle {
  width: 14px; height: 14px;
  color: var(--brand);
}
.demo-insights .insights-label .ts {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-on-light-secondary);
  animation: ts-pulse 2s ease-in-out infinite;
}
@keyframes ts-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.score-gauge {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}
.score-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-gauge .track { stroke: #e5e5ea; }
.score-gauge .fill { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 800ms var(--ease-out-apple); }
.score-gauge .value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.score-gauge .value .num { font-size: 44px; line-height: 1; }
.score-gauge .value .lbl {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-on-light-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 980px;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-on-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms var(--ease-out-apple), transform 400ms var(--ease-out-apple);
}
.tag.in { opacity: 1; transform: translateY(0); }
.tag.hot { background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 500; }

.demo-status {
  font-size: 14px;
  padding: 12px 14px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms, transform 400ms;
}
.demo-status.in { opacity: 1; transform: translateY(0); }
.demo-status .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.next-action {
  font-size: 13px;
  color: var(--text-on-light-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.next-action .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-on-light);
}

/* ============================================================
   PIN SCROLL #2 (Pipeline)
   ============================================================ */

#pin-pipeline {
  height: 350vh;
  position: relative;
  background: var(--bg-dark);
}
#pin-pipeline .pin-target {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}
#pin-pipeline .pin-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
#pin-pipeline .pin-head .eyebrow { color: var(--brand); }

.pipeline-board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  transition: transform 700ms var(--ease-out-apple), opacity 700ms var(--ease-out-apple);
}
@media (max-width: 800px) {
  .pipeline-board { grid-template-columns: repeat(3, 1fr); }
  .pipeline-board .col:nth-child(n+4) { display: none; }
}
.pipeline-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.pipeline-col .h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 4px;
}
.pipeline-col .h .nm { font-size: 13px; font-weight: 500; color: #f5f5f7; }
.pipeline-col .h .ct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #86868b;
  background: rgba(255,255,255,0.04);
  padding: 2px 7px;
  border-radius: 6px;
}
.pipeline-card {
  background: linear-gradient(180deg, #1a1a1c 0%, #131315 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 600ms var(--ease-out-apple);
}
.pipeline-card .nm { font-size: 13px; color: #f5f5f7; font-weight: 500; }
.pipeline-card .pr { font-size: 11px; color: #86868b; font-family: var(--font-mono); }
.pipeline-card .row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: #6e6e73;
}
.pipeline-card .row .score-bar {
  width: 40px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.pipeline-card .row .score-bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brand); width: var(--w, 50%);
}
.pipeline-card.glow {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 6px 20px var(--brand-soft);
}

#pin-pipeline .ai-log {
  position: absolute;
  right: 28px; bottom: 28px;
  width: min(380px, 90%);
  background: rgba(20, 20, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-dark-secondary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out-apple), transform 600ms var(--ease-out-apple);
}
#pin-pipeline .ai-log.in { opacity: 1; transform: translateY(0); }
#pin-pipeline .ai-log .lbl {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
#pin-pipeline .ai-log .lbl::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  animation: dot-pulse 1.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
#pin-pipeline .ai-log .line {
  padding: 3px 0;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: log-line 400ms var(--ease-out-apple) forwards;
}
#pin-pipeline .ai-log .line .ts { color: #6e6e73; flex-shrink: 0; }
#pin-pipeline .ai-log .line .text { color: #c7c7cc; }
@keyframes log-line {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

#pin-pipeline .overlay-final {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-apple);
  background: radial-gradient(circle at center, rgba(0,0,0,0.65), transparent 70%);
  z-index: 4;
}
#pin-pipeline .overlay-final.in { opacity: 1; }
#pin-pipeline .overlay-final .txt {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  color: white;
  text-wrap: balance;
  max-width: 900px;
  padding: 0 24px;
}

/* ============================================================
   PROPERTY INTELLIGENCE
   ============================================================ */

#prop-intel .head {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.prop-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 900px) {
  .prop-split { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.prop-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prop-card .photo {
  height: 280px;
  position: relative;
  background: linear-gradient(135deg, #e8e8ed 0%, #f5f5f7 50%, #fafafa 100%);
  overflow: hidden;
}
.prop-card .photo svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.prop-card .info {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prop-card .addr {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
}
.prop-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-on-light-secondary);
  font-size: 14px;
}
.prop-card .tags span:not(:last-child)::after {
  content: " · ";
  margin: 0 4px;
}
.prop-card .price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: var(--text-on-light);
}

.prop-analysis {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.prop-analysis .anal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.prop-analysis .anal-head .sparkle {
  width: 18px; height: 18px;
  color: var(--brand);
}
.prop-analysis .anal-head .ts {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-on-light-secondary);
  font-weight: 400;
  animation: ts-pulse 2s ease-in-out infinite;
}

.anal-block {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease-out-apple), transform 500ms var(--ease-out-apple);
}
.anal-block.in { opacity: 1; transform: translateY(0); }
.anal-block .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-on-light-secondary);
  margin-bottom: 8px;
}

.gauge-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.gauge-row .score-gauge { width: 100px; height: 100px; flex-shrink: 0; }
.gauge-row .score-gauge .value .num { font-size: 26px; }
.gauge-row .score-gauge .value .lbl { font-size: 9px; margin-top: 2px; }
.gauge-row .gauge-text {
  font-size: 13px;
  color: var(--text-on-light-secondary);
}
.gauge-row .gauge-text b { color: var(--text-on-light); font-weight: 500; }

.price-compare {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
}
.price-compare .bar {
  height: 6px;
  background: #e5e5ea;
  border-radius: 4px;
  position: relative;
  margin-top: 8px;
  overflow: hidden;
}
.price-compare .bar .median {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 2px;
  background: var(--text-on-light-secondary);
  left: 50%;
}
.price-compare .bar .fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 100%);
  width: 0;
  border-radius: 4px;
  transition: width 1200ms var(--ease-out-apple);
}
.price-compare .legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-on-light-secondary);
  margin-top: 6px;
}

.time-card {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.time-card .big {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-on-light);
  line-height: 1;
}
.time-card .unit { color: var(--text-on-light-secondary); font-size: 14px; }

.personas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.persona {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.persona .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d0d0d6, #f0f0f3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-on-light);
}

.pitch {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-on-light);
  font-style: italic;
  min-height: 60px;
}
.pitch .caret {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--brand);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.portals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.portal-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 980px;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-on-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.portal-chip .dt {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* SVG connecting lines */
#prop-intel .connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */

#features .head {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: white;
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border-light);
  transition: transform 400ms var(--ease-out-apple), box-shadow 400ms var(--ease-out-apple);
  min-height: 320px;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.feature-card .visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  text-wrap: balance;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-on-light-secondary);
  line-height: 1.5;
}

/* feature visuals */
.fv-chat { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.fv-chat .b { padding: 5px 10px; border-radius: 12px; font-size: 11px; max-width: 70%; }
.fv-chat .b.l { background: #f0f0f3; align-self: flex-start; border-top-left-radius: 4px; }
.fv-chat .b.r { background: var(--brand); color: white; align-self: flex-end; border-top-right-radius: 4px; }
.fv-chat .pulse-ring {
  position: absolute;
  pointer-events: none;
}

.fv-sync {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  border-right-color: transparent;
  animation: spin 2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fv-cal {
  width: 80px; height: 70px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fv-cal .top {
  height: 14px; background: var(--brand);
}
.fv-cal .grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
  padding: 4px;
}
.fv-cal .grid span { background: #f5f5f7; border-radius: 1px; }
.fv-cal .grid span.dot { background: var(--brand); }

.fv-doc {
  width: 56px; height: 70px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
  gap: 4px;
}
.fv-doc .ln { height: 2px; background: #e5e5ea; border-radius: 1px; }
.fv-doc .ln.short { width: 60%; }
.fv-doc .check {
  position: absolute;
  bottom: -8px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.fv-chart {
  width: 100%; height: 80px;
  position: relative;
}
.fv-chart svg { width: 100%; height: 100%; overflow: visible; }

.fv-lock {
  width: 48px; height: 56px;
  position: relative;
}
.fv-lock .body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: var(--brand);
  border-radius: 8px;
}
.fv-lock .shackle {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border: 4px solid var(--brand);
  border-bottom: none;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.fv-lock .body::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
}

/* ============================================================
   PRICING
   ============================================================ */

#pricing .head {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.pricing-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 980px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-light);
}
.pricing-toggle button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 980px;
  cursor: pointer;
  color: var(--text-on-light-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 300ms var(--ease-out-apple);
}
.pricing-toggle button.active {
  background: white;
  color: var(--text-on-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pricing-toggle .badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 400ms var(--ease-out-apple);
}
.pricing-card.featured {
  border-color: var(--brand);
  border-width: 2px;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--brand-soft);
}
@media (max-width: 899px) {
  .pricing-card.featured { transform: none; }
}
.pricing-card .badge-top {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 980px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pricing-card .plan {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pricing-card .desc {
  font-size: 14px;
  color: var(--text-on-light-secondary);
  min-height: 40px;
}
.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  min-height: 80px;
  position: relative;
  overflow: hidden;
}
.pricing-card .price .amt {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: transform 400ms var(--ease-out-apple), opacity 400ms;
}
.pricing-card .price .cur { font-size: 16px; color: var(--text-on-light-secondary); }
.pricing-card .price .unit { font-size: 14px; color: var(--text-on-light-secondary); }
.pricing-card .features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.pricing-card .features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-on-light);
}
.pricing-card .features li svg {
  width: 16px; height: 16px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card .cta {
  margin-top: auto;
  display: flex;
}
.pricing-card .cta .btn { width: 100%; }
.pricing-card .cta .btn.primary { background: var(--brand); color: white; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */

#final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
#final-cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1400px; height: 1400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 60%);
  pointer-events: none;
}
#final-cta > .container { position: relative; z-index: 1; }
#final-cta .eyebrow { color: var(--brand); margin-bottom: 28px; }
#final-cta h1 {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
  max-width: 1100px;
  margin: 0 auto;
}
#final-cta .sub {
  font-size: 22px;
  color: var(--text-on-dark-secondary);
  margin: 28px 0 40px;
}
#final-cta .ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  background: var(--bg-dark);
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  color: var(--text-on-dark-secondary);
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
@media (min-width: 800px) {
  footer .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 60px; }
}
footer .brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-on-dark);
}
footer .brand .name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
footer .brand p {
  font-size: 14px;
  color: var(--text-on-dark-secondary);
  max-width: 320px;
}
footer .col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
footer .col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer .col ul a {
  color: var(--text-on-dark-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms;
}
footer .col ul a:hover { color: var(--text-on-dark); }

footer hr {
  border: none;
  border-top: 1px solid var(--border-dark);
  margin-bottom: 28px;
}

footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  position: relative;
  z-index: 2;
}
footer .bottom .socials {
  display: flex;
  gap: 14px;
}
footer .bottom .socials a {
  color: var(--text-on-dark-secondary);
  text-decoration: none;
}
footer .bottom .socials a:hover { color: var(--text-on-dark); }

footer .giant {
  position: absolute;
  left: 0; right: 0;
  bottom: -28px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 25vw, 360px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--brand-soft) 60%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ============================================================
   Tweaks Panel
   ============================================================ */

#tweaks-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 280px;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  z-index: 200;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: none;
}
#tweaks-panel.open { display: block; }

#tweaks-panel .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
#tweaks-panel .head h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
#tweaks-panel .head button {
  background: none;
  border: none;
  color: var(--text-on-dark-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
#tweaks-panel .group { margin-bottom: 14px; }
#tweaks-panel .group .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-on-dark-secondary);
  margin-bottom: 8px;
}
#tweaks-panel .swatches {
  display: flex;
  gap: 8px;
}
#tweaks-panel .swatches button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 200ms, border-color 200ms;
}
#tweaks-panel .swatches button.active {
  border-color: white;
  transform: scale(1.1);
}
#tweaks-panel .segmented {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
#tweaks-panel .segmented button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-on-dark-secondary);
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms;
}
#tweaks-panel .segmented button.active {
  background: rgba(255,255,255,0.12);
  color: white;
}

/* ============================================================
   Misc helpers
   ============================================================ */

.icon-arrow {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: -2px;
}
