* {
  box-sizing: border-box;
}

:root {
  --bg: #050615;
  --bg-2: #090d2a;
  --surface: rgba(14, 20, 58, 0.66);
  --text: #eaf0ff;
  --muted: #a9b3db;
  --line: rgba(130, 150, 255, 0.28);
  --accent: #65f0d2;
  --accent-2: #8b8bff;
  --good: #42f39e;
  --bad: #ff6b81;
  --shadow: 0 20px 70px rgba(3, 5, 28, 0.45);
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 18% 16%, #11173b 0, #0a0f2a 32%, var(--bg) 80%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
  line-height: 1.5;
}

h1, h2, h3, h4, p, a, li, button {
  margin: 0 0 0.6rem 0;
  font-family: "Space Grotesk", "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
}

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

.hero-shell,
main,
.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid rgba(101, 240, 210, 0.8);
  outline-offset: 2px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.brand {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand {
  font-size: 1.02rem;
}

.nav-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-actions a {
  padding: 0.54rem 0.85rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-actions a:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-shell {
  width: min(1120px, 94vw);
  margin: 1.4rem auto 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 2.4rem;
}

.hero-copy,
.proof-mini {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.eyebrow {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.84rem;
}

.lead {
  color: var(--muted);
  max-width: 68ch;
  margin: 0.9rem 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.hero-kpi p {
  margin: 0;
  padding: 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(146, 165, 255, 0.28);
  background: rgba(9, 14, 40, 0.55);
  font-size: 0.87rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 157, 255, 0.5);
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(130deg, rgba(102, 145, 255, 0.25), rgba(128, 255, 205, 0.16));
  color: #f7fbff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(7, 9, 27, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.ghost {
  border-color: rgba(140, 151, 255, 0.38);
  background: rgba(10, 16, 40, 0.52);
}

.button.full {
  width: 100%;
}

.proof-mini { margin-top: 2.2rem; }
.proof-mini h2 { margin-bottom: 0.5rem; }

.section-kicker { color: var(--accent-2); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }

.live-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.95rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.log-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.tag {
  font-size: 0.8rem;
  border: 1px solid rgba(141, 166, 255, 0.35);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: #dbe5ff;
}

.log-stream {
  min-height: 170px;
  background: rgba(4, 8, 26, 0.72);
  border-radius: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(122, 142, 218, 0.16);
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  font-size: 0.88rem;
  color: #d9e2ff;
  display: grid;
  gap: 0.4rem;
}

.log-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.24rem 0;
}

.log-step {
  min-width: 9.6ch;
  color: #9eb0ff;
  font-weight: 700;
}

.log-text {
  flex: 1;
}

.log-count {
  width: 3.4rem;
  text-align: right;
  color: #c2cbfb;
}

.log-line.pass { color: var(--good); }
.log-line.fail { color: var(--bad); }

.receipt {
  margin-top: 0.9rem;
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed rgba(143, 160, 248, 0.5);
  background: rgba(7, 13, 38, 0.75);
}

.receipt-title { font-weight: 700; margin-bottom: 0.35rem; }

.receipt pre {
  margin: 0.5rem 0 0;
  background: rgba(4, 6, 23, 0.8);
  border-radius: 0.65rem;
  border: 1px dashed rgba(131, 153, 255, 0.35);
  padding: 0.6rem;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.section {
  margin: 2.8rem 0;
}

.section h2 {
  margin-bottom: 1rem;
}

.section-subtitle {
  margin-top: -0.5rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.section-highlight {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0.9rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-card {
  border: 1px solid rgba(142, 165, 255, 0.28);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.95rem;
}

.metric-value {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-copy {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.feature-card,
.pricing-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.95rem;
  padding: 1rem;
  min-height: 190px;
}

.feature-card p,
.pricing-card p {
  color: var(--muted);
}

.pricing-card { padding: 1.2rem; }
.pricing-card ul { margin-top: 0.65rem; color: var(--muted); padding-left: 1.2rem; }

.pricing-card.secondary {
  border-color: rgba(131, 255, 225, 0.36);
}

.section-alt {
  background: linear-gradient(140deg, rgba(111, 102, 255, 0.12), rgba(5, 13, 41, 0.6));
  border: 1px solid rgba(150, 170, 255, 0.28);
  border-radius: 1rem;
  padding: 1.2rem;
}

.timeline {
  display: grid;
  gap: 0.8rem;
  counter-reset: runway-step;
}

.step {
  border: 1px solid rgba(149, 165, 255, 0.33);
  background: rgba(7, 14, 40, 0.56);
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  transform: translateY(12px);
  opacity: 0.6;
  transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
}

.step.show {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.step span {
  display: inline-block;
  width: 1.9rem;
  height: 1.9rem;
  text-align: center;
  line-height: 1.9rem;
  border-radius: 50%;
  background: rgba(119, 159, 255, 0.34);
  font-weight: 700;
  margin-right: 0.5rem;
}

.step p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(126, 146, 252, 0.34);
  border-radius: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--surface);
}

th, td {
  text-align: left;
  padding: 0.88rem;
  border-bottom: 1px solid rgba(130, 154, 255, 0.2);
  vertical-align: top;
}

th { background: rgba(16, 24, 62, 0.74); }

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid rgba(131, 153, 255, 0.28);
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(8, 16, 49, 0.46);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #e9f0ff;
}

summary::marker {
  color: var(--accent-2);
}

details p {
  margin-top: 0.6rem;
  color: var(--muted);
}

footer {
  text-align: center;
  margin: 3.4rem auto 2rem;
  width: min(1120px, 94vw);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(153, 169, 239, 0.2);
  padding-bottom: 2rem;
}

footer p {
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch' seed='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
  z-index: -1;
}

.ambient-glow {
  pointer-events: none;
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.44;
  z-index: -1;
}

.top-left {
  top: -140px;
  left: -110px;
  background: radial-gradient(circle, rgba(90, 130, 255, 0.48), transparent 60%);
}

.bottom-right {
  right: -120px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(95, 255, 206, 0.32), transparent 60%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .cards,
  .cards-3,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-actions { justify-content: center; }
  .hero-kpi { grid-template-columns: 1fr; }
  .log-head { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .cards,
  .cards-3,
  .metrics-grid,
  .hero {
    grid-template-columns: 1fr;
  }
  .top-nav { justify-content: center; text-align: center; }
  .top-nav .brand { order: 1; }
  .nav-actions { justify-content: center; }
  .hero-copy,
  .proof-mini {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
