:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-soft: rgba(10, 20, 34, 0.84);
  --bg-panel: rgba(9, 18, 32, 0.76);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(115, 231, 255, 0.22);
  --text: #f3f7fd;
  --muted: #92a6c3;
  --accent: #73e7ff;
  --accent-2: #8b5cf6;
  --good: #34d399;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 6%, rgba(115, 231, 255, 0.18), transparent 22%),
    radial-gradient(circle at 90% 12%, rgba(139, 92, 246, 0.16), transparent 20%),
    linear-gradient(180deg, #040913 0%, #09121f 45%, #050a12 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 90%);
  opacity: 0.48;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header,
.section,
.signal-band,
.final-cta,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(115,231,255,0.96), rgba(139,92,246,0.88));
  box-shadow: 0 14px 26px rgba(115,231,255,0.2);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 10px;
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 14px;
  opacity: 0.62;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.nav-cta {
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.nav-cta {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(115,231,255,0.34);
}

.hero {
  width: min(calc(100% - 40px), 1400px);
  min-height: 100svh;
  margin: calc(-74px + 0px) auto 0;
  padding: 108px 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding-left: max(0px, calc((100vw - 1400px) / 2));
}

.eyebrow,
.section-kicker,
.tier-kicker,
.proof-title,
.preview-label span,
.module-no {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220,231,246,0.82);
}

.eyebrow::before,
.section-kicker::before,
.preview-label span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 12px rgba(52,211,153,0.84);
}

.hero h1,
.section-head h2,
.signal-band h2,
.final-cta h2 {
  margin: 18px 0 0;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 12.5ch;
  font-size: clamp(54px, 7vw, 96px);
}

.lead,
.section-head p,
.signal-band p,
.final-cta p,
.module-body p,
.workflow-copy p,
.proof-column li,
.tier li,
.site-footer p,
.site-footer span {
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions.compact-actions {
  margin-top: 18px;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-strip span {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  color: rgba(223, 250, 255, 0.88);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
}

.button.primary {
  color: #022027;
  background: linear-gradient(135deg, var(--accent), #c9fff7);
  box-shadow: 0 14px 32px rgba(115,231,255,0.22);
}

.button.secondary {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-points {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.hero-points p,
.module-row li,
.proof-column li,
.tier li {
  margin: 0;
}

.hero-points p {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(230,238,249,0.92);
}

.hero-points p::before,
.module-row li::before,
.proof-column li::before,
.tier li::before,
.workflow-step span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(115,231,255,0.32);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
}

.preview-label {
  position: absolute;
  top: 28px;
  left: 20px;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.preview-label strong {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-frame {
  position: relative;
  margin-left: -20px;
  border-radius: 32px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(12,22,38,0.96), rgba(7,14,24,0.94));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: drift 10s ease-in-out infinite;
}

.preview-frame::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 48%;
  height: 60%;
  background: radial-gradient(circle, rgba(115,231,255,0.22), transparent 70%);
  pointer-events: none;
}

.preview-frame img,
.preview-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #07121e;
  display: block;
}

.preview-frame iframe {
  border: 0;
}

.signal-band,
.section,
.final-cta,
.site-footer {
  margin-top: 34px;
}

.signal-band,
.final-cta {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(10,18,32,0.88), rgba(7,13,23,0.94));
  box-shadow: var(--shadow);
}

.section {
  padding: 18px 0;
}

.section-head {
  max-width: 780px;
}

.section-head h2 {
  font-size: clamp(38px, 4vw, 62px);
  max-width: 14ch;
}

.section-head p {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 16px;
}

.module-list {
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.module-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.module-no {
  padding-top: 4px;
  color: rgba(220,231,246,0.42);
}

.module-body h3,
.tier h3,
.proof-column h3,
.final-cta h2,
.signal-band h2 {
  margin: 0;
}

.module-body h3,
.tier h3 {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.module-row ul,
.proof-column ul,
.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.workflow-grid,
.proof-grid,
.tier-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.workflow-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.workflow-rail,
.workflow-copy,
.proof-column,
.tier {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.workflow-step {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.workflow-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.workflow-step span {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 18px;
}

.workflow-step p,
.proof-column li,
.tier li,
.site-footer p {
  font-size: 14px;
}

.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier {
  display: grid;
  gap: 16px;
}

.tier.is-primary {
  border-color: rgba(115,231,255,0.34);
  background:
    linear-gradient(180deg, rgba(115,231,255,0.08), rgba(9,18,32,0.76)),
    var(--bg-panel);
}

.tier-kicker,
.proof-title {
  color: rgba(220,231,246,0.78);
}

.tier-price {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-column {
  min-height: 100%;
}

.final-cta h2 {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 14ch;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer span {
  margin-top: 6px;
  font-size: 13px;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

body.can-reveal [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.can-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-4deg);
  }
}

@media (max-width: 1120px) {
  .hero,
  .signal-band,
  .final-cta,
  .workflow-grid,
  .tier-grid,
  .proof-grid,
  .module-row,
  .site-footer,
  .site-header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .preview-frame {
    margin-left: 0;
    animation: none;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section,
  .signal-band,
  .final-cta,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-nav {
    display: none;
  }

  .hero {
    width: min(calc(100% - 28px), 1400px);
    padding: 88px 0 28px;
  }

  .hero-strip {
    margin-top: 16px;
  }

  .hero h1,
  .section-head h2,
  .signal-band h2,
  .final-cta h2 {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .signal-band,
  .final-cta,
  .workflow-rail,
  .workflow-copy,
  .proof-column,
  .tier {
    padding: 22px;
  }
}

/* V3 product matrix additions */
.v3-shell .site-header {
  max-width: 1360px;
}

.v3-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
}

.v3-hero h1 {
  max-width: 13.5ch;
}

.product-map {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(115,231,255,0.24), transparent 18%),
    radial-gradient(circle at 20% 18%, rgba(139,92,246,0.24), transparent 22%),
    linear-gradient(145deg, rgba(7,16,28,0.92), rgba(10,19,33,0.68));
  box-shadow: var(--shadow);
}

.product-map::before,
.product-map::after {
  content: "";
  position: absolute;
  inset: 78px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 50%;
}

.product-map::after {
  inset: 145px;
  border-color: rgba(115,231,255,0.2);
}

.map-core,
.map-ring {
  position: absolute;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 24px;
  background: rgba(5,12,23,0.72);
  backdrop-filter: blur(18px);
}

.map-core {
  left: 50%;
  top: 50%;
  width: 250px;
  transform: translate(-50%, -50%);
  text-align: center;
  border-color: rgba(115,231,255,0.34);
}

.map-ring span,
.map-core span {
  color: rgba(220,231,246,0.72);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-ring strong,
.map-core strong {
  font-size: 18px;
  line-height: 1.35;
}

.ring-users { left: 36px; top: 58px; width: 290px; }
.ring-investor { right: 42px; top: 116px; width: 230px; }
.ring-internal { left: 50%; bottom: 54px; width: 340px; transform: translateX(-50%); }

.matrix-grid {
  display: grid;
  gap: 14px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.matrix-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.matrix-row h3,
.suite-item h3 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -0.055em;
}

.matrix-row ul,
.suite-item p,
.ops-board span {
  color: var(--muted);
  line-height: 1.7;
}

.matrix-row ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.primary-row .module-no,
.engine-row .module-no {
  color: var(--accent);
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.suite-item {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  background: rgba(9,18,32,0.72);
}

.suite-item.is-featured {
  background: linear-gradient(180deg, rgba(115,231,255,0.12), rgba(9,18,32,0.76));
  border-color: rgba(115,231,255,0.24);
}

.suite-item span {
  color: var(--accent);
  font-weight: 800;
}

.suite-item strong {
  font-size: 18px;
}

.suite-item a {
  width: fit-content;
  margin-top: auto;
  color: #dffaff;
  border-bottom: 1px solid rgba(115,231,255,0.44);
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ops-board div {
  min-height: 210px;
  padding: 24px 18px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ops-board div:last-child {
  border-right: 0;
}

.ops-board strong,
.ops-board span {
  display: block;
}

.ops-board strong {
  margin-bottom: 16px;
  font-size: 20px;
}

.engine-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.engine-flow span {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  color: rgba(230,238,249,0.92);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .v3-hero,
  .matrix-row,
  .suite-grid,
  .ops-board,
  .engine-flow {
    grid-template-columns: 1fr;
  }

  .product-map {
    min-height: 560px;
  }

  .matrix-row {
    gap: 16px;
  }

  .ops-board div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 720px) {
  .product-map {
    min-height: 620px;
  }

  .map-core,
  .map-ring {
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
  }

  .map-core { top: 230px; text-align: left; }
  .ring-users { top: 30px; }
  .ring-investor { top: 145px; }
  .ring-internal { bottom: 30px; }
}

.v3-hero h1 {
  max-width: 720px;
  font-size: clamp(46px, 4vw, 58px);
  line-height: 1.06;
  text-wrap: balance;
}

.v3-hero h1 span {
  display: block;
}

.v3-hero .lead {
  max-width: 62ch;
}

@media (max-width: 720px) {
  .v3-hero h1 {
    max-width: 9ch;
    font-size: clamp(44px, 14vw, 64px);
  }
}
