:root {
  --bg: #08111f;
  --bg-soft: #0d1728;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #aab7c7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff5a5f;
  --accent-2: #ff8a65;
  --success: #66d19e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
  /* Sticky bar height (padding + logo); mobile drawer starts below this */
  --nav-sticky-height: 84px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 90, 95, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 138, 101, 0.14), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #091322 42%, #060d18 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 24, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(255, 90, 95, 0.3);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.brand-mark::after {
  inset: 14px;
  border-radius: 5px;
  opacity: 0.65;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

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

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 20px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
}

.nav-mobile.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-mobile.is-open .nav-mobile-backdrop {
  opacity: 1;
}

.nav-mobile-sheet {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + var(--nav-sticky-height));
  right: 0;
  bottom: 0;
  width: min(100%, 340px);
  padding: 16px 20px 32px;
  background: linear-gradient(180deg, #0a1525 0%, #060d18 100%);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.nav-mobile.is-open .nav-mobile-sheet {
  transform: translateX(0);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-link {
  padding: 14px 4px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile-link:hover {
  color: #fff;
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.nav-mobile-btn {
  width: 100%;
  justify-content: center;
}

body.nav-open {
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
  cursor: pointer;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 18px 40px rgba(255, 90, 95, 0.28);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero {
  padding: 72px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffb29f, #ff6468);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #ff5a5f, #ff8a65);
  border-radius: 2px;
  opacity: 0.9;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #ffb29f 60%, #ff6468 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtagline {
  margin-top: 16px;
  font-size: 18px;
  color: #e6edf6;
  letter-spacing: -0.01em;
}

.hero-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 640px;
  margin: 22px 0 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 32px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #dfe7f1;
  font-size: 13px;
}

.example {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.example:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 90, 95, 0.16), transparent 28%);
  pointer-events: none;
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mock-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.mock-title {
  font-size: 15px;
  font-weight: 600;
}

.mock-badge {
  font-size: 12px;
  color: #ffe0da;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 90, 95, 0.14);
  border: 1px solid rgba(255, 90, 95, 0.24);
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.24), rgba(255, 138, 101, 0.18));
  color: white;
  font-weight: 700;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.step-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

section {
  padding: 34px 0;
}

.section-header {
  margin-bottom: 24px;
  max-width: 720px;
}

.section-label {
  color: #ffb3a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.section-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.24), rgba(255, 138, 101, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contrast-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.contrast-card small {
  display: block;
  color: #ffb3a3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 11px;
}

.contrast-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.contrast-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
}

.platform {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.platform-main {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
}

.platform-main h3 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.platform-main p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: #e8eef6;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-row:first-child {
  border-top: 0;
}

.feature-row span {
  color: var(--success);
  font-weight: 700;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.mini-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.mini-card.highlight {
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.18), rgba(255, 138, 101, 0.12));
  border: 1px solid rgba(255, 90, 95, 0.4);
  box-shadow: 0 20px 50px rgba(255, 90, 95, 0.15);
}

.mini-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.audience-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.audience-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.footer-cta {
  margin: 36px 0 56px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.16), rgba(255, 138, 101, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-cta h3 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.footer-cta p {
  margin: 0;
  color: #e6edf6;
  max-width: 700px;
  line-height: 1.6;
}

footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.simple-page {
  padding: 72px 0 120px;
}

.simple-page h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 16px;
}

.simple-page .back {
  margin-top: 28px;
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
}

.simple-page .back:hover {
  color: var(--text);
}

/* —— Page: AI (uses shared tokens from :root) —— */
.inpage-nav-wrap {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 24, 0.35);
}

.inpage-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 12px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.inpage-nav a:hover {
  color: var(--text);
}

.page-ai .hero-grid--split {
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
}

.page-ai .hero h1 {
  font-size: clamp(44px, 6vw, 68px);
  max-width: 700px;
}

.page-ai .hero-copy {
  max-width: 620px;
}

.hero-card--flush {
  max-width: none;
  margin: 0;
}

.page-ai .panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.page-ai .pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.page-ai .pipe-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 140px;
}

.page-ai .pipe-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.page-ai .pipe-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-ai .pipe-arrow {
  color: #ffb3a3;
  font-size: 22px;
  font-weight: 700;
}

.page-ai .mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.page-ai .mini-item {
  font-size: 12px;
  color: #dfe7f1;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-ai .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.page-ai .card--feature h3 {
  font-size: 20px;
}

.page-ai .card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.page-ai .centerpiece {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.16), rgba(255, 138, 101, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-ai .centerpiece h2 {
  margin-bottom: 12px;
}

.page-ai .centerpiece p {
  margin: 0;
  color: #e6edf6;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hero-grid,
  .platform,
  .grid-4,
  .grid-3,
  .contrast-grid,
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .page-ai .hero-grid--split,
  .page-ai .pipeline,
  .page-ai .grid-2,
  .page-ai .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-ai .pipeline {
    gap: 10px;
  }

  .page-ai .pipe-arrow {
    display: none;
  }

  .page-ai .centerpiece {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .platform,
  .grid-4,
  .grid-3,
  .contrast-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .footer-cta h3 {
    font-size: 28px;
  }
  .page-ai h1 {
    font-size: 40px;
  }
}
