:root {
  --bg: #07110e;
  --bg-soft: #0b1814;
  --surface: #10211b;
  --surface-strong: #173027;
  --line: rgba(180, 255, 217, 0.16);
  --text: #eefcf5;
  --muted: #9bb8aa;
  --accent: #77f2b5;
  --accent-strong: #29d888;
  --max-width: 1160px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(41, 216, 136, 0.12), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: #04100b;
  background: var(--accent);
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 14, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #04100b;
  background: var(--accent);
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  padding: 0.6rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  border-radius: 10px;
  font: inherit;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(119, 242, 181, 0.55);
}

.button-primary {
  color: #04100b;
  background: var(--accent);
  border-color: var(--accent);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.025);
}

.hero {
  padding: clamp(5rem, 11vw, 9rem) 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.component-hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.lead {
  max-width: 690px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.tag {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.demo-frame,
.placeholder-frame {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(rgba(119, 242, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 242, 181, 0.035) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 28px 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.25);
}

.demo-frame {
  padding: 1.1rem;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.demo-stack {
  display: grid;
  gap: 0.75rem;
}

.demo-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(16, 33, 27, 0.85);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(119, 242, 181, 0.8);
}

.status-dot.manual {
  background: #f6cd69;
  box-shadow: 0 0 16px rgba(246, 205, 105, 0.6);
}

.status-label {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-border {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading p,
.card p,
.content-card p {
  color: var(--muted);
}

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

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

.card,
.content-card {
  min-height: 100%;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23, 48, 39, 0.7), rgba(11, 24, 20, 0.8));
}

.card {
  display: flex;
  flex-direction: column;
}

.card p {
  flex: 1;
}

.card-index {
  margin-bottom: 2rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.text-link:hover {
  color: var(--text);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  counter-reset: flow;
}

.flow-step {
  min-height: 150px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: block;
  margin-bottom: 1.4rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.placeholder-frame {
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.placeholder-frame strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.component-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(119, 242, 181, 0.35);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, rgba(41, 216, 136, 0.12), rgba(16, 33, 27, 0.55));
}

.cta-panel p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .component-content,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.8rem, 17vw, 4.4rem);
  }

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

  .cta-panel,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-frame,
  .placeholder-frame {
    min-height: 320px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
