@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #06090f;
  --bg-elevated: rgba(11, 17, 28, 0.92);
  --bg-panel: rgba(8, 13, 22, 0.94);
  --line: rgba(150, 177, 255, 0.14);
  --line-strong: rgba(122, 255, 215, 0.32);
  --text: #eef3ff;
  --muted: #97a6c1;
  --brand: #78d7ff;
  --brand-2: #7affd7;
  --accent: #90a2ff;
  --warm: #ffad70;
  --danger: #ff7272;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: min(1180px, calc(100vw - 40px));
  --title-font: "Space Grotesk", sans-serif;
  --body-font: "Space Grotesk", sans-serif;
  --mono-font: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 18%, rgba(122, 215, 255, 0.16), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(144, 162, 255, 0.15), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(122, 255, 215, 0.08), transparent 22%),
    linear-gradient(180deg, #05080e 0%, #060a12 50%, #0a1018 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 84%);
  pointer-events: none;
}

a {
  color: var(--brand);
}

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

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(4, 7, 12, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__inner {
  min-height: 82px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brandmark__glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(122, 215, 255, 0.16), rgba(144, 162, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: var(--brand-2);
  font-family: var(--mono-font);
  font-weight: 600;
}

.brandmark__text {
  font-family: var(--title-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav,
.footer-links,
.hero-actions,
.button-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.headline {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--title-font);
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-copy,
.hero-copy,
.card-copy,
.page-lead,
.footer-copy {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button--solid {
  color: #041018;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.button--outline {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.button--ghost {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.82rem;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 18px rgba(122, 255, 215, 0.8);
}

.hero {
  padding: 54px 0 24px;
}

.hero-grid {
  position: relative;
}

.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.65;
}

.hero-grid::before {
  width: 260px;
  height: 260px;
  left: -60px;
  top: 28px;
  background: radial-gradient(circle, rgba(122, 255, 215, 0.22), transparent 70%);
}

.hero-grid::after {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 20px;
  background: radial-gradient(circle, rgba(144, 162, 255, 0.18), transparent 70%);
}

.hero-grid,
.section-grid,
.page-grid,
.apps-grid,
.pricing-grid,
.contact-grid,
.action-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.hero-panel,
.glass-card,
.showcase-panel,
.story-card,
.product-card,
.page-hero,
.page-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 17, 28, 0.96), rgba(8, 13, 22, 0.92));
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero-panel::before,
.glass-card::before,
.showcase-panel::before,
.story-card::before,
.product-card::before,
.page-hero::before,
.page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(120, 215, 255, 0.12), transparent 38%, rgba(144, 162, 255, 0.12));
  pointer-events: none;
}

.hero-panel,
.glass-card,
.showcase-panel,
.story-card,
.product-card,
.page-hero,
.page-card {
  padding: 28px;
}

.hero-panel:hover,
.glass-card:hover,
.showcase-panel:hover,
.story-card:hover,
.product-card:hover,
.page-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 255, 215, 0.22);
}

.hero-command {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.9rem;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-command__prompt {
  color: var(--brand);
}

.hero-copy {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

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

.meta-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.meta-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-card strong {
  font-size: 1rem;
}

.terminal-shell,
.code-fragment {
  border-radius: 24px;
  border: 1px solid rgba(120, 215, 255, 0.18);
  background: rgba(4, 8, 14, 0.92);
  overflow: hidden;
  animation: floaty 8s ease-in-out infinite;
}

.terminal-shell__bar,
.code-fragment__bar,
.intro-terminal__bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-shell__bar span,
.code-fragment__bar span,
.intro-terminal__bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.terminal-shell__bar span:nth-child(1),
.code-fragment__bar span:nth-child(1),
.intro-terminal__bar span:nth-child(1) {
  background: #ff7b72;
}

.terminal-shell__bar span:nth-child(2),
.code-fragment__bar span:nth-child(2),
.intro-terminal__bar span:nth-child(2) {
  background: #f6cc62;
}

.terminal-shell__bar span:nth-child(3),
.code-fragment__bar span:nth-child(3),
.intro-terminal__bar span:nth-child(3) {
  background: #39d98a;
}

.terminal-shell__screen,
.code-fragment__screen,
.intro-terminal__screen {
  margin: 0;
  padding: 24px;
  color: #dfe7ff;
  font-family: var(--mono-font);
  font-size: 0.94rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.terminal-shell__screen .token-keyword,
.code-fragment__screen .token-keyword {
  color: var(--warm);
}

.terminal-shell__screen .token-string,
.code-fragment__screen .token-string {
  color: var(--brand);
}

.terminal-shell__screen .token-fn,
.code-fragment__screen .token-fn {
  color: var(--brand-2);
}

.terminal-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.terminal-stat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono-font);
  font-size: 0.86rem;
}

.scroll-cue::after {
  content: "v";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  animation: bob 1.8s ease-in-out infinite;
}

.section {
  padding: 22px 0;
}

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

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

.section-grid--two,
.apps-grid,
.pricing-grid,
.contact-grid,
.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card h3,
.product-card h3,
.page-card h3,
.glass-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.08;
}

.story-list,
.list-clean {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.story-list li + li,
.list-clean li + li {
  margin-top: 8px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
}

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

.mini-steps {
  display: grid;
  gap: 12px;
}

.mini-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mini-step__index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(120, 215, 255, 0.12);
  color: var(--brand-2);
  font-family: var(--mono-font);
  font-weight: 600;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-tag {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price-tag span {
  font-size: 1rem;
  color: var(--muted);
}

.page-shell {
  padding: 34px 0 48px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.page-flow {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.split-callout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer {
  padding: 32px 0 44px;
}

.footer-copy {
  margin: 8px 0 0;
}

.intro-terminal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 10, 0.96);
  z-index: 50;
  transition: opacity 680ms ease, visibility 680ms ease;
}

.intro-terminal.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-terminal__window {
  width: min(960px, 100%);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(4, 8, 14, 0.96);
  box-shadow: var(--shadow);
}

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

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

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .hero-meta,
  .showcase-grid,
  .split-callout,
  .section-grid--three,
  .section-grid--two,
  .apps-grid,
  .pricing-grid,
  .contact-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: min(100vw - 24px, 1180px);
  }

  .hero-panel,
  .glass-card,
  .showcase-panel,
  .story-card,
  .product-card,
  .page-hero,
  .page-card,
  .terminal-shell__screen,
  .code-fragment__screen,
  .intro-terminal__screen {
    padding: 20px;
  }

  .site-header__inner {
    min-height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .intro-terminal,
  [data-reveal],
  .scroll-cue::after {
    transition: none;
    animation: none;
  }
}
