:root {
  --bg: #070d1d;
  --bg-soft: #111d36;
  --ink: #ecf4ff;
  --ink-muted: #adc0e3;
  --brand: #36ebb0;
  --brand-2: #59c9ff;
  --accent: #ffd47a;
  --card: rgba(14, 25, 47, 0.74);
  --stroke: rgba(169, 198, 255, 0.25);
  --stroke-strong: rgba(210, 230, 255, 0.38);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(circle at 12% 18%, #173b73, transparent 48%),
    radial-gradient(circle at 88% 7%, #0d6378, transparent 36%),
    linear-gradient(120deg, var(--bg), #0b1631 46%, #0f1f3e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  box-shadow: 0 0 14px rgba(89, 201, 255, 0.8);
  z-index: 20;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 78%);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  width: 340px;
  height: 340px;
  background: rgba(45, 226, 165, 0.22);
  top: -100px;
  right: -100px;
}

.ambient-b {
  width: 300px;
  height: 300px;
  background: rgba(87, 182, 255, 0.2);
  bottom: -100px;
  left: -90px;
}

.ambient-c {
  width: 220px;
  height: 220px;
  background: rgba(255, 212, 122, 0.2);
  top: 36%;
  left: 49%;
}

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

.topbar {
  width: min(1280px, calc(100vw - 40px));
  margin: 20px auto 0;
  padding: 14px 22px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(8, 21, 44, 0.78), rgba(8, 21, 44, 0.54));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.topbar nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.topbar a.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(89, 201, 255, 0.7);
}

.topbar a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

main {
  width: min(1280px, calc(100vw - 40px));
  margin: 24px auto 70px;
  display: grid;
  gap: 22px;
}

.hero {
  border: 1px solid rgba(170, 200, 255, 0.2);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 50px);
  background: linear-gradient(140deg, rgba(11, 33, 66, 0.76), rgba(11, 25, 47, 0.68));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(54, 235, 176, 0.28), transparent 70%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

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

.hero-copy {
  max-width: 760px;
  color: var(--ink-muted);
  font-size: 1.16rem;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), #79ffd3);
  color: #022718;
  box-shadow: 0 10px 26px rgba(45, 226, 165, 0.32);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-console {
  border: 1px solid var(--stroke-strong);
  border-radius: 18px;
  background: linear-gradient(175deg, rgba(4, 12, 25, 0.86), rgba(7, 18, 37, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 14px;
  align-self: end;
}

.console-head {
  margin: 0 0 8px;
  font-family: "Chakra Petch", monospace;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.console-lines {
  display: grid;
  gap: 8px;
}

.console-lines p {
  margin: 0;
  border: 1px solid rgba(130, 184, 255, 0.2);
  border-radius: 10px;
  background: rgba(6, 14, 29, 0.72);
  color: var(--ink-muted);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: "Chakra Petch", monospace;
}

.console-lines span {
  color: var(--accent);
  font-weight: 700;
}

.stat-band {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  border-top: 1px solid rgba(180, 209, 255, 0.18);
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat-band article {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  background: rgba(8, 17, 35, 0.68);
}

.stat-band strong {
  display: block;
  color: var(--brand);
  font-size: 1.6rem;
  font-family: "Chakra Petch", sans-serif;
}

.stat-band p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.panel {
  border: 1px solid rgba(170, 200, 255, 0.2);
  border-radius: 24px;
  padding: clamp(18px, 2vw, 30px);
  background: linear-gradient(145deg, rgba(14, 25, 47, 0.66), rgba(10, 21, 41, 0.58));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  gap: 12px;
}

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

.card {
  border: 1px solid rgba(175, 205, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(9, 20, 41, 0.74), rgba(8, 18, 36, 0.56));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

.card h3 {
  margin: 0 0 6px;
  color: var(--brand-2);
  font-size: 1.08rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.result-card {
  display: block;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand);
  font-weight: 800;
  margin-right: 8px;
}

.flow-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-muted);
  display: grid;
  gap: 10px;
}

.flow-note {
  margin-top: 12px;
  border: 1px solid rgba(255, 212, 122, 0.3);
  border-radius: 12px;
  background: rgba(255, 212, 122, 0.08);
  color: #ffe6b2;
  padding: 10px;
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-2), rgba(89, 201, 255, 0.15));
}

.timeline article {
  position: relative;
  border: 1px solid rgba(169, 198, 255, 0.2);
  border-radius: 14px;
  padding: 12px 12px 12px 16px;
  background: linear-gradient(165deg, rgba(9, 20, 41, 0.72), rgba(9, 20, 41, 0.52));
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 1.07rem;
  color: var(--ink);
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.timeline .dot {
  position: absolute;
  left: -19px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(54, 235, 176, 0.8);
}

.command-wrap {
  display: grid;
  gap: 12px;
}

.command-block {
  border: 1px solid rgba(170, 200, 255, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(170deg, rgba(6, 15, 32, 0.72), rgba(9, 20, 41, 0.58));
  display: grid;
  gap: 8px;
}

.command-block .label {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
}

.command-block code {
  font-family: "Chakra Petch", monospace;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.copy-btn {
  justify-self: start;
  border: 1px solid var(--stroke);
  color: var(--ink);
  background: linear-gradient(120deg, rgba(87, 182, 255, 0.2), rgba(54, 235, 176, 0.14));
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  background: linear-gradient(120deg, rgba(87, 182, 255, 0.3), rgba(54, 235, 176, 0.2));
  transform: translateY(-1px);
}

.tips {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(8, 18, 38, 0.68);
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chips span:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-1px);
}

.path-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.social-proof {
  background: linear-gradient(145deg, rgba(16, 33, 61, 0.8), rgba(12, 24, 47, 0.78));
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quote-grid blockquote {
  margin: 0;
  border: 1px solid rgba(169, 198, 255, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 18, 38, 0.56);
}

.quote-grid p {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
}

.quote-grid cite {
  color: var(--brand-2);
  font-style: normal;
  font-size: 0.88rem;
}

.cta-panel {
  border-color: rgba(54, 235, 176, 0.34);
  background: radial-gradient(circle at 15% 10%, rgba(54, 235, 176, 0.12), transparent 35%),
    linear-gradient(150deg, rgba(14, 30, 54, 0.85), rgba(9, 20, 41, 0.86));
}

.cta-panel p {
  margin-top: 0;
  color: var(--ink-muted);
}

details {
  border: 1px solid var(--stroke);
  background: rgba(8, 18, 38, 0.6);
  border-radius: 12px;
  padding: 10px 12px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  color: var(--ink-muted);
}

footer {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto 30px;
  color: var(--ink-muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.14s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.2s;
}

.reveal:nth-of-type(5) {
  animation-delay: 0.26s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 1.8rem;
  }
}
