﻿:root {
  --page-max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(56px, 8vw, 110px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-ui: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;

  --h1: clamp(36px, 5vw, 58px);
  --h2: clamp(26px, 3vw, 36px);
  --h3: clamp(18px, 1.8vw, 22px);
  --body: clamp(16px, 1.2vw, 18px);
  --micro: 12px;

  --ink-0: rgba(248, 245, 238, 0.98);
  --ink-1: rgba(219, 213, 200, 0.9);
  --ink-2: rgba(219, 213, 200, 0.65);
  --bg-0: #0b0f16;
  --bg-1: #0f1724;
  --bg-2: #141f2f;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

  --accent: #d6b36a;
  --accent-soft: rgba(214, 179, 106, 0.25);
  --accent-cool: #7dd1c6;
  --accent-cool-soft: rgba(125, 209, 198, 0.25);

  --ease: cubic-bezier(.18,.8,.2,1);
  --t-fast: 140ms;
  --t-med: 220ms;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink-0);
  background: radial-gradient(1200px 600px at 70% 10%, rgba(125, 209, 198, 0.15), transparent 60%),
    radial-gradient(900px 520px at 10% 30%, rgba(214, 179, 106, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body[data-theme="light"] {
  --ink-0: rgba(20, 28, 44, 0.95);
  --ink-1: rgba(20, 28, 44, 0.72);
  --ink-2: rgba(20, 28, 44, 0.5);
  --bg-0: #f4f2ed;
  --bg-1: #f0f2f6;
  --bg-2: #e4e9f1;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --stroke: rgba(16, 22, 34, 0.12);
  --shadow: 0 20px 40px rgba(16, 22, 34, 0.16);
}

.bg-grid {
  position: fixed;
  inset: 18px;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  opacity: 0.4;
  z-index: -1;
}

body[data-theme="light"] .bg-grid {
  border-color: rgba(16, 22, 34, 0.2);
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

body[data-theme="light"] .bg-grid::before {
  background: transparent;
}

.container {
  width: min(var(--page-max), calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

h1 {
  font: 600 var(--h1) / 1.12 var(--font-display);
  margin: 0 0 18px;
}

h2 {
  font: 600 var(--h2) / 1.2 var(--font-display);
  margin: 0 0 12px;
}

h3 {
  font: 600 var(--h3) / 1.2 var(--font-ui);
  margin: 0 0 8px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-1);
}

small {
  font-size: var(--micro);
  color: var(--ink-2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin: 16px auto 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-0);
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  box-shadow: var(--shadow);
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

.nav__links {
  display: flex;
  gap: 18px;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-1);
  font-size: 14px;
}

.nav__links a:hover {
  color: var(--ink-0);
}

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

.icon-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--ink-1);
  cursor: pointer;
  font-size: 13px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--ink-0);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink-0);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, rgba(214, 179, 106, 0.95), rgba(198, 160, 96, 0.85));
  color: #19150f;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 30px rgba(214, 179, 106, 0.25);
  font-weight: 600;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(214, 179, 106, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  padding: calc(var(--section-space) * 0.9) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
}

.lead {
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 10px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stat {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.stat__value {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-0);
}

.stat__label {
  font-size: 12px;
  color: var(--ink-2);
}

.hero__panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  box-shadow: var(--shadow);
}

.panel__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.panel__eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

.panel__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-0);
}

.panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-1);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.chip.is-active {
  border-color: rgba(214, 179, 106, 0.55);
  color: var(--ink-0);
  background: rgba(214, 179, 106, 0.18);
}

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

.panel__stack {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.stack-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 22, 0.6);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-theme="light"] .stack-card {
  background: rgba(255, 255, 255, 0.9);
}

.stack-card__type {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--ink-2);
}

.stack-card__title {
  font-weight: 600;
  color: var(--ink-0);
}

.stack-card__meta {
  font-size: 12px;
  color: var(--ink-2);
}

.panel__result {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  padding: 12px;
  background: rgba(12, 16, 22, 0.55);
  min-height: 120px;
}

body[data-theme="light"] .panel__result {
  background: rgba(255, 255, 255, 0.9);
}

.result__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.result__list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-1);
}

.section__head {
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--glass);
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-card p {
  color: var(--ink-1);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(214, 179, 106, 0.35);
  background: rgba(214, 179, 106, 0.12);
  color: var(--ink-0);
  font-size: 12px;
}

.system__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.system__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.system__item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
}

.system__map {
  position: relative;
  height: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: radial-gradient(180px 180px at 70% 30%, rgba(214, 179, 106, 0.2), transparent 70%),
    radial-gradient(220px 220px at 30% 70%, rgba(125, 209, 198, 0.2), transparent 70%),
    rgba(10, 14, 20, 0.6);
  overflow: hidden;
}

body[data-theme="light"] .system__map {
  background: radial-gradient(180px 180px at 70% 30%, rgba(214, 179, 106, 0.2), transparent 70%),
    radial-gradient(220px 220px at 30% 70%, rgba(125, 209, 198, 0.2), transparent 70%),
    rgba(255, 255, 255, 0.7);
}

.map__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 179, 106, 0.4);
  display: grid;
  place-items: center;
  text-align: center;
}

.map__coreGlow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 179, 106, 0.25), transparent 70%);
}

.map__coreLabel {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.map__node {
  position: absolute;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--ink-1);
}

.node--a { left: 12%; top: 18%; }
.node--b { right: 12%; top: 20%; }
.node--c { left: 16%; bottom: 22%; }
.node--d { right: 14%; bottom: 18%; }
.node--e { left: 50%; bottom: 12%; transform: translateX(-50%); }

.map__line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 179, 106, 0), rgba(214, 179, 106, 0.5), rgba(214, 179, 106, 0));
  opacity: 0.7;
}

.line--a { left: 18%; top: 30%; width: 32%; transform: rotate(8deg); }
.line--b { right: 18%; top: 32%; width: 32%; transform: rotate(-8deg); }
.line--c { left: 22%; bottom: 30%; width: 30%; transform: rotate(-8deg); }
.line--d { right: 20%; bottom: 30%; width: 30%; transform: rotate(8deg); }
.line--e { left: 50%; bottom: 22%; width: 30%; transform: translateX(-50%); }

.usecases {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.usecase__content {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.usecase__panel {
  padding: 18px;
}

.usecase__outputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.output {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
}

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

.template-card {
  display: grid;
  gap: 12px;
}

.template-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.template-thumb {
  height: 110px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: linear-gradient(140deg, rgba(214, 179, 106, 0.18), rgba(125, 209, 198, 0.1));
}

.template-meta {
  font-size: 13px;
  color: var(--ink-2);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-1);
}

.pricing__faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0;
}

.pricing__faq summary {
  cursor: pointer;
  color: var(--ink-0);
}

.why {
  position: relative;
}

.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.why__intro p {
  max-width: 520px;
}

.why__statement {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(214, 179, 106, 0.35);
  background: linear-gradient(135deg, rgba(214, 179, 106, 0.18), rgba(255, 255, 255, 0.04));
  color: var(--ink-0);
}

.why__stack {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 16px;
}

.why__stack::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(214, 179, 106, 0), rgba(214, 179, 106, 0.6), rgba(214, 179, 106, 0));
  opacity: 0.6;
}

.why__card {
  position: relative;
  padding: 18px 18px 18px 38px;
  overflow: hidden;
}

.why__card::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(214, 179, 106, 0.95);
  box-shadow: 0 0 18px rgba(214, 179, 106, 0.4);
}

.why__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 140px at 10% 20%, rgba(214, 179, 106, 0.16), transparent 60%),
    radial-gradient(220px 180px at 100% 80%, rgba(125, 209, 198, 0.16), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.why__card h3,
.why__card p {
  position: relative;
  z-index: 1;
}

.why__card p {
  color: var(--ink-1);
}

.cta {
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid var(--stroke);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 48px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer__brand .brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.footer__name {
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer__blurb {
  margin: 0;
  color: var(--ink-2);
}

.footer__title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 14px;
}

.footer__col a:hover {
  color: var(--ink-0);
}

.footer__bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero__grid,
  .system__grid,
  .pricing__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .usecase__content {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
