:root {
  --bg: #07070a;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --panel: rgba(15, 15, 22, 0.88);
  --text: #f5f7fb;
  --muted: #a7adbd;
  --line: rgba(255, 255, 255, 0.08);
  --red: #ff4d6d;
  --red-deep: #b81f46;
  --purple: #6f2bd9;
  --glow: rgba(255, 77, 109, 0.42);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --radius: 24px;
  --content-width: 1248px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 77, 109, 0.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 77, 109, 0.24), transparent 26%),
    radial-gradient(circle at 20% 18%, rgba(111, 43, 217, 0.08), transparent 22%),
    linear-gradient(180deg, #09090c 0%, #050507 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.25;
}

.ember-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ember {
  position: absolute;
  bottom: -3rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 202, 176, 0.95) 0%, rgba(255, 77, 109, 0.85) 45%, rgba(255, 77, 109, 0) 75%);
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.4);
  opacity: 0.45;
  animation: ember-rise linear infinite;
}

.ember-1 { left: 8%; animation-duration: 18s; animation-delay: -2s; }
.ember-2 { left: 18%; animation-duration: 24s; animation-delay: -8s; width: 0.28rem; height: 0.28rem; }
.ember-3 { left: 29%; animation-duration: 20s; animation-delay: -11s; }
.ember-4 { left: 44%; animation-duration: 26s; animation-delay: -5s; width: 0.34rem; height: 0.34rem; }
.ember-5 { left: 58%; animation-duration: 19s; animation-delay: -14s; }
.ember-6 { left: 71%; animation-duration: 23s; animation-delay: -7s; width: 0.3rem; height: 0.3rem; }
.ember-7 { left: 84%; animation-duration: 21s; animation-delay: -12s; }
.ember-8 { left: 93%; animation-duration: 27s; animation-delay: -4s; width: 0.26rem; height: 0.26rem; }

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  backdrop-filter: blur(16px);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 77, 109, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(18, 8, 12, 0.96), rgba(10, 7, 9, 0.78));
  border: 1px solid rgba(255, 77, 109, 0.09);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 30rem;
  padding-right: 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(255, 77, 109, 0.12);
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 30rem;
  padding-right: 0.5rem;
}

.top-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
  flex: 0 1 auto;
  padding: 0.35rem 0.45rem;
  padding-left: 1rem;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.05);
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.14), rgba(120, 20, 42, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.18), 0 0 18px rgba(255, 77, 109, 0.08);
}

.section {
  position: relative;
  padding: 4.5rem 0;
  scroll-margin-top: 6.5rem;
}

.section + .section {
  margin-top: 1rem;
  padding: 5rem 2.25rem;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 109, 0.28), transparent);
}

.section + .section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 77, 109, 0.05);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.02), rgba(255, 77, 109, 0));
  pointer-events: none;
}

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow,
.mini-label,
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.eyebrow,
.stat-label,
.brand-text span:last-child,
.section-heading p,
.lede,
.glass-card p,
.callout-card p,
.site-footer p,
.pill-row span,
.top-nav a {
  color: var(--muted);
}

.hero h1,
.section h2,
.glass-card h3,
.callout-card h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 9ch;
  margin-top: 0.65rem;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 1.4rem 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 12px 30px rgba(184, 31, 70, 0.32);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.signal-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.signal-row li,
.pill-row span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
}

.panel-glow {
  position: absolute;
  inset: 14% 12%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(28px);
}

.panel-card,
.glass-card,
.callout-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.9), rgba(11, 11, 17, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-card {
  padding: 1.1rem;
}

.panel-card::before,
.glass-card::before,
.callout-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 35%, transparent 70%, rgba(255, 77, 109, 0.07));
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: #d9deea;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff5f7b;
  box-shadow: 0 0 14px #ff5f7b;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem 0;
}

.stat-grid article,
.terminal-strip,
.glass-card,
.callout-card {
  border-radius: 18px;
}

.stat-grid article {
  padding: 1rem;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-grid strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
}

.terminal-strip {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  color: #ffb8c4;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.16);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading.narrow {
  margin-bottom: 1.2rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-top: 0.4rem;
}

.section-heading p,
.section > div > p,
.glass-card p,
.callout-card p {
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.glass-card {
  padding: 1.4rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.glass-card:hover,
.glass-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.18);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 77, 109, 0.06);
}

.glass-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.icon-card .card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: #ffd6df;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.16), rgba(255, 77, 109, 0.06));
  border: 1px solid rgba(255, 77, 109, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 20px rgba(255, 77, 109, 0.08);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.split-section > div:first-child {
  padding-right: 0.75rem;
}

.stacked-cards {
  display: grid;
  gap: 1rem;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(20, 20, 28, 0.95), rgba(10, 10, 15, 0.95)),
    linear-gradient(135deg, rgba(255, 77, 109, 0.08), transparent 45%);
}

.mini-label {
  color: #ff9fb2;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tool-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.92), rgba(10, 10, 15, 0.96));
  color: #e8ebf3;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tool-badge img {
  width: 1rem;
  height: 1rem;
  margin-right: 0.7rem;
  border-radius: 4px;
  object-fit: contain;
  filter: none;
}

.tool-badge:hover,
.tool-badge:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 109, 0.24);
  background: linear-gradient(180deg, rgba(24, 18, 24, 0.94), rgba(12, 10, 15, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 16px 36px rgba(0,0,0,0.28), 0 0 0 1px rgba(255, 77, 109, 0.06);
}

.stack-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.stack-note strong {
  color: var(--text);
}

.callout-section {
  padding-bottom: 5.5rem;
}

.callout-card {
  padding: 2rem;
  text-align: center;
}

.callout-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 12ch;
  margin: 0.4rem auto 1rem;
}

.callout-card p {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.callout-actions {
  justify-content: center;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer {
  padding: 0 0 2rem;
  text-align: center;
}

@keyframes ember-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0;
  }
  10% {
    opacity: 0.45;
  }
  50% {
    transform: translate3d(0.8rem, -45vh, 0) scale(1);
    opacity: 0.35;
  }
  100% {
    transform: translate3d(-0.6rem, -105vh, 0) scale(1.1);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .three-up {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .split-section > div:first-child {
    padding-right: 0;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 0.9rem 0.95rem 1rem;
  }

  .brand {
    flex: 0 0 auto;
    padding-right: 0;
  }

  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0.65rem;
    padding: 0.65rem;
  }

  .top-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.9rem;
    padding: 0.75rem 0.55rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .section {
    padding: 3rem 0;
    scroll-margin-top: 1rem;
  }

  .section + .section {
    padding: 3.2rem 1rem;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text span:last-child {
    display: none;
  }

  .top-nav {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .signal-row,
  .hero-actions,
  .pill-row,
  .tool-badge-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-badge {
    justify-content: flex-start;
  }

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

  .button {
    width: 100%;
  }
}
