:root {
  --bg: #08111e;
  --bg-elevated: rgba(13, 24, 41, 0.82);
  --bg-card: rgba(20, 31, 50, 0.86);
  --border: rgba(148, 177, 213, 0.16);
  --border-strong: rgba(148, 177, 213, 0.28);
  --text: #eef4ff;
  --muted: #9fb0ca;
  --accent: #51f0a8;
  --accent-warm: #ff7448;
  --accent-gold: #ffc96b;
  --shadow: 0 28px 80px rgba(2, 8, 18, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(81, 240, 168, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 116, 72, 0.14), transparent 28%),
    linear-gradient(180deg, #09111b 0%, #08111e 34%, #06111a 100%);
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  left: -10rem;
  top: 8rem;
  background: rgba(81, 240, 168, 0.22);
}

.ambient-right {
  right: -6rem;
  top: 18rem;
  background: rgba(255, 116, 72, 0.2);
}

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

.site-header {
  width: min(1180px, calc(100vw - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(22px);
  background: rgba(8, 16, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #07111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

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

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.team-card a:hover,
.team-card a:focus-visible {
  color: var(--text);
}

.header-cta,
.button,
.message-action,
.sim-tab {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta {
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.header-cta:hover,
.button:hover,
.message-action:hover,
.sim-tab:hover {
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  padding: 5.5rem 0 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3.4rem, 6vw, 6rem);
  max-width: 13ch;
}

.hero-text,
.section-heading p,
.feature-card p,
.workflow-card p,
.command-card p,
.team-card p,
.launch-card p,
.launch-note span {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.96rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  color: #08111e;
  background: linear-gradient(135deg, var(--accent), #7df6ff);
  box-shadow: 0 16px 28px rgba(81, 240, 168, 0.18);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 2.3rem 0 0;
}

.hero-stats li,
.hero-panel,
.feature-card,
.workflow-card,
.code-board,
.simulator-shell,
.command-card,
.launch-card,
.team-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  padding: 1.35rem;
  border-radius: var(--radius-xl);
}

.hero-panel-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(81, 240, 168, 0.5);
  animation: pulse 1.8s infinite;
}

.phone-frame {
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 14, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-header strong {
  display: block;
  font-size: 0.98rem;
}

.phone-header small {
  color: var(--muted);
}

.phone-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--accent);
}

.message-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1rem;
}

.message-card {
  border-radius: 22px;
  padding: 1rem 1rem 1.05rem;
}

.message-card-system {
  background: rgba(255, 255, 255, 0.045);
}

.message-card-alert {
  background:
    linear-gradient(180deg, rgba(255, 116, 72, 0.16), rgba(255, 116, 72, 0.04)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 116, 72, 0.16);
}

.message-card-close {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(85, 135, 255, 0.14);
  border: 1px solid rgba(85, 135, 255, 0.2);
}

.message-title,
.message-badge,
.message-subtitle,
.message-card p,
.message-card h2,
.message-card dl {
  margin: 0;
}

.message-title,
.message-badge {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-card-alert h2 {
  margin-top: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.15;
}

.message-subtitle {
  margin-top: 0.35rem;
  color: #ffbeaa;
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.message-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.28rem;
}

.message-grid dd {
  font-size: 1rem;
  font-weight: 700;
}

.message-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.message-action {
  padding: 0.82rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.close-check {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, #507fff, #86b0ff);
}

.ticker-strip {
  margin: 0 -1rem;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-track {
  display: inline-flex;
  gap: 2.8rem;
  min-width: max-content;
  padding: 1rem 0;
  white-space: nowrap;
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: ticker 26s linear infinite;
}

.section {
  padding: 5rem 0 0;
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 15ch;
}

.section-heading p:last-child {
  margin-top: 1rem;
}

.feature-grid,
.workflow-grid,
.command-grid,
.team-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.workflow-card,
.command-card,
.team-card,
.launch-card,
.simulator-shell {
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.feature-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.feature-card h3,
.workflow-card h3,
.launch-card h3,
.team-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

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

.code-board {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-board-topline {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
}

.code-board-topline span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.code-board pre {
  margin: 0;
  padding: 1.4rem;
  overflow-x: auto;
  font-family: "IBM Plex Sans", monospace;
  color: #b8ffd8;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 1rem;
}

.simulator-controls {
  display: grid;
  gap: 0.8rem;
}

.sim-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 700;
}

.sim-tab.is-active {
  background: rgba(81, 240, 168, 0.12);
  border-color: rgba(81, 240, 168, 0.34);
}

.simulator-display {
  min-height: 100%;
}

.simulator-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}

.simulator-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.simulator-preview {
  border-radius: 20px;
  padding: 1.4rem;
  background: rgba(6, 13, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.4;
}

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

.command-card code {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.36rem 0.56rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--accent-gold);
  background: rgba(255, 201, 107, 0.1);
}

.launch-layout {
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: 1rem;
}

.launch-card ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.launch-card code {
  color: #b4f9da;
}

.launch-note {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(81, 240, 168, 0.08);
  border: 1px solid rgba(81, 240, 168, 0.16);
}

.launch-note strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-heading);
}

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

.team-role {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  font-weight: 700;
}

.team-card a {
  color: #93f8c4;
  font-weight: 600;
}

.team-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(81, 240, 168, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(81, 240, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(81, 240, 168, 0);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero,
  .simulator-grid,
  .launch-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .workflow-grid,
  .command-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: 11ch;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 1rem;
    border-radius: 26px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-stats,
  .feature-grid,
  .workflow-grid,
  .command-grid,
  .team-grid,
  .message-grid {
    grid-template-columns: 1fr;
  }

  .message-actions {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-top: 4rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
