:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-blue: #eef3fd;
  --surface-green: #edf8f1;
  --ink: #202124;
  --muted: #5f6368;
  --line: #e0e3e7;
  --blue: #1a73e8;
  --green: #188038;
  --yellow: #f9ab00;
  --red: #d93025;
  --shadow: 0 20px 60px rgba(60, 64, 67, 0.12);
  --shadow-soft: 0 12px 36px rgba(60, 64, 67, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 55%, #f8fafd 100%);
}

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

.mono,
pre,
code {
  font-family: "IBM Plex Mono", monospace;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}

.orb-blue {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -60px;
  background: rgba(26, 115, 232, 0.35);
}

.orb-green {
  width: 260px;
  height: 260px;
  top: 320px;
  right: -90px;
  background: rgba(24, 128, 56, 0.2);
}

.orb-yellow {
  width: 220px;
  height: 220px;
  bottom: 120px;
  left: 18%;
  background: rgba(249, 171, 0, 0.18);
}

.site-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(60, 64, 67, 0.08);
}

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

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: white;
  box-shadow: inset 0 0 0 1px #edf0f2;
}

.brand-mark .bar {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.bar.blue {
  background: var(--blue);
}

.bar.green {
  background: var(--green);
}

.bar.yellow {
  background: var(--yellow);
}

.bar.red {
  background: var(--red);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: white !important;
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.2);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  padding: 76px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.content-card h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.lead,
.section-heading p,
.feature-card p,
.content-card p,
.content-card li,
.deploy-card p,
.note-list p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.22);
}

.button-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
}

.product-frame {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
  border: 1px solid #dfe5ef;
  box-shadow: var(--shadow);
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.frame-tabs,
.frame-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.frame-tabs {
  flex-wrap: wrap;
}

.frame-tab,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d9e1eb;
  background: white;
  color: var(--muted);
  font-size: 0.88rem;
}

.frame-tab {
  cursor: pointer;
  font: inherit;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.frame-tab.is-active {
  background: #e8f0fe;
  border-color: #d2e3fc;
  color: var(--blue);
}

.pill-blue {
  background: #e8f0fe;
  border-color: #d2e3fc;
  color: var(--blue);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e6f4ea;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(24, 128, 56, 0.14);
}

.dashboard-card,
.preview-card,
.feature-card,
.content-card,
.config-panel,
.config-notes,
.deploy-card,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
}

.dashboard-main {
  padding: 22px;
  background: linear-gradient(180deg, #fff 0%, #fafdff 100%);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mini-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.health-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e6f4ea;
  color: var(--green);
  font-size: 0.9rem;
}

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

.mini-panel {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
}

.mini-panel p,
.mini-panel small {
  margin: 0;
  color: var(--muted);
}

.mini-panel strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.65rem;
}

.activity-card {
  margin-top: 18px;
  padding: 12px;
  border-radius: 20px;
  background: var(--surface);
}

.activity-row {
  display: grid;
  grid-template-columns: 14px 1.2fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
}

.activity-row + .activity-row {
  margin-top: 6px;
}

.activity-row small {
  color: var(--muted);
}

.preview-panel {
  display: none;
}

.preview-panel.is-active {
  display: block;
}

.preview-card {
  padding: 22px;
}

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.preview-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-note {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
}

.preview-note strong {
  display: block;
  margin-bottom: 8px;
}

.preview-note p {
  margin: 0;
}

.preview-card-code {
  overflow: hidden;
  background: #1f1f1f;
  color: #f8f9fa;
}

.preview-card-code .pill {
  background: rgba(255, 255, 255, 0.08);
  color: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.14);
}

.preview-card-code pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-green {
  background: var(--green);
}

.status-blue {
  background: var(--blue);
}

.status-yellow {
  background: var(--yellow);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f3f4;
  color: var(--ink);
  font-size: 0.85rem;
}

.frame-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.frame-button {
  min-height: 42px;
}

.section-strip,
.section-split,
.cta-band {
  margin-top: 28px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading.narrow {
  max-width: 640px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.feature-grid,
.section-split,
.config-layout,
.deploy-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.content-card,
.config-panel,
.config-notes,
.deploy-card {
  padding: 24px;
}

.feature-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.feature-icon.blue {
  background: #e8f0fe;
}

.feature-icon.green {
  background: #e6f4ea;
}

.feature-icon.yellow {
  background: #fef7e0;
}

.feature-card h3,
.config-notes h3,
.deploy-card h3 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

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

.tone-blue {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef3fd 100%);
}

.detail-list,
.timeline {
  margin: 18px 0 0;
  padding-left: 20px;
}

.detail-list li + li,
.timeline li + li {
  margin-top: 10px;
}

.alt {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
  border: 1px solid #e4eaf2;
}

.config-layout {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.config-panel {
  overflow: hidden;
  background: #1f1f1f;
  color: #f8f9fa;
}

.config-panel pre,
.deploy-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.config-notes {
  background: white;
}

.note-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.note-list strong {
  display: block;
  margin-bottom: 6px;
}

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

.deploy-card pre {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #f8f9fa;
  color: #1f1f1f;
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1024px) {
  .hero,
  .feature-grid,
  .section-split,
  .config-layout,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats,
  .dashboard-grid,
  .preview-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, var(--max-width));
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1,
  .section-heading h2,
  .content-card h2,
  .cta-band h2 {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
  }

  .feature-card,
  .content-card,
  .config-panel,
  .config-notes,
  .deploy-card,
  .product-frame,
  .dashboard-main,
  .preview-card,
  .cta-band {
    padding: 20px;
  }

  .frame-header,
  .preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-row {
    grid-template-columns: 14px 1fr;
  }

  .activity-row small,
  .activity-row strong {
    grid-column: 2;
  }
}
