:root {
  --bg: #091417;
  --bg-soft: #0f2126;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(193, 225, 231, 0.25);
  --text: #eff8f8;
  --muted: #b2c8cc;
  --primary: #38e2b5;
  --primary-ink: #052620;
  --accent: #ffb86f;
  --danger: #ff7f7f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 12% 10%, #15343b 0, transparent 42%),
    radial-gradient(circle at 88% 18%, #193e36 0, transparent 36%),
    linear-gradient(170deg, #0d1b1f, var(--bg) 55%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.58;
  overflow-x: hidden;
  --mx: 0;
  --my: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100vw - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 25, 0.78);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--primary), #8bf2d4);
  box-shadow: 0 0 0 6px rgba(56, 226, 181, 0.16);
}

.top-links {
  display: inline-flex;
  gap: 0.9rem;
}

.top-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.top-links a:hover {
  color: var(--text);
}

.top-actions {
  display: inline-flex;
  gap: 0.55rem;
}

.link-chip,
.button-mini {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.button-mini {
  background: linear-gradient(120deg, var(--accent), #ffd59b);
  color: #2d1800;
  border-color: transparent;
}

.hero {
  padding: 4.5rem 0 3.2rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0.15px;
  font-size: clamp(2.05rem, 4.7vw, 4.1rem);
  max-width: 16ch;
}

.hero-lead {
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 58ch;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.45rem;
  color: #d7e8ea;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54rem;
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--primary), #8bf2d4);
  box-shadow: 0 0 0 5px rgba(56, 226, 181, 0.14);
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.93rem;
  padding: 0.74rem 1.08rem;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(130deg, var(--primary), #97f5da);
  color: var(--primary-ink);
  box-shadow: 0 14px 30px rgba(56, 226, 181, 0.25);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.caption {
  margin-top: 0.72rem;
  color: #8fb0b5;
  font-size: 0.86rem;
}

.hero-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.84rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  padding: 0.3rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-ref {
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.tab.is-active {
  color: #06271f;
  background: var(--primary);
  border-color: transparent;
}

.panel-body {
  min-height: 320px;
}

.code-frame {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(160, 202, 209, 0.23);
  background: #071318;
  padding: 0.95rem;
  overflow: auto;
}

.code-frame code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: #c9f7e8;
  line-height: 1.52;
}

.vscode-mock {
  border: 1px solid rgba(160, 202, 209, 0.24);
  border-radius: 14px;
  background: #091a1f;
  padding: 0.92rem;
}

.vscode-file,
.vscode-line {
  color: #7eb7bf;
  font-size: 0.76rem;
}

.vscode-line {
  margin-top: 0.22rem;
}

.vscode-issue-title {
  margin: 0.72rem 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffd1d1;
}

.vscode-issue-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.issue-tags {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.issue-tags span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
  color: #d9e8ea;
}

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

.signal-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem;
}

.signal-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.signal-copy {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.section {
  padding: 2.25rem 0;
}

.ai-era-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.ai-copy {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.ai-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.ai-copy ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: #d4e6e9;
}

.ai-graph {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(56, 226, 181, 0.2), rgba(255, 255, 255, 0.02) 55%),
    rgba(5, 16, 20, 0.8);
  overflow: hidden;
}

.graph-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid rgba(56, 226, 181, 0.55);
  background: rgba(56, 226, 181, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 0 24px rgba(56, 226, 181, 0.28);
}

.node {
  position: absolute;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 27, 32, 0.86);
  color: #d6e8ea;
  font-size: 0.72rem;
  padding: 0.24rem 0.52rem;
  white-space: nowrap;
}

.node-a {
  left: 12%;
  top: 14%;
}

.node-b {
  left: 42%;
  top: 8%;
}

.node-c {
  right: 10%;
  top: 24%;
}

.node-d {
  right: 8%;
  bottom: 18%;
}

.node-e {
  left: 36%;
  bottom: 8%;
}

.node-f {
  left: 7%;
  bottom: 28%;
}

.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-lines path {
  fill: none;
  stroke: rgba(119, 240, 209, 0.42);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  animation: flow 12s linear infinite;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.54rem, 2.8vw, 2.45rem);
  line-height: 1.12;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

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

.note-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.note-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.34;
}

.note-card p {
  margin: 0.58rem 0 0;
  color: var(--muted);
}

.timeline {
  margin-top: 1rem;
  border-left: 1px solid rgba(193, 225, 231, 0.36);
  padding-left: 1rem;
  display: grid;
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.8rem;
}

.step-no {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.step h3 {
  margin: 0;
  font-size: 1rem;
}

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

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

.trust-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.trust-card h3 {
  margin: 0;
  font-size: 0.99rem;
}

.trust-card ul {
  margin: 0.62rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.cta-block {
  margin: 1.4rem auto 2.8rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-block h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.cta-block p {
  margin: 0.7rem 0 0;
  max-width: 70ch;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: #9fb8bc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: #b5cacc;
}

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

.mesh {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(46px);
  z-index: -3;
  opacity: 0.38;
  animation: floaty 10s ease-in-out infinite alternate;
  transform: translate(calc(var(--mx) * 8px), calc(var(--my) * 8px));
}

.mesh-a {
  background: #3de2bf;
  top: -130px;
  right: -120px;
}

.mesh-b {
  background: #ffcb8f;
  bottom: -160px;
  left: -120px;
  animation-delay: 0.8s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none;
}

@keyframes floaty {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(24px) scale(1.08);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -160;
  }
}

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

  .top-links {
    display: none;
  }

  .signal-strip,
  .pain-grid,
  .trust-grid,
  .ai-era-grid {
    grid-template-columns: 1fr;
  }

  .panel-body {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(1160px, calc(100vw - 1.2rem));
  }

  .topbar {
    padding: 0.65rem 0.7rem;
    border-radius: 18px;
  }

  .top-actions {
    gap: 0.4rem;
  }

  .hero {
    padding-top: 2.9rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.65rem);
  }

  .step {
    grid-template-columns: 48px 1fr;
  }

  .cta-block {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
