:root {
  --bg: #070b16;
  --bg-alt: #0b1122;
  --surface: #10182d;
  --surface-2: #151f39;
  --border: #23304f;
  --text: #e8ecf4;
  --muted: #a7b1c6;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --on-accent: #06101e;
  --gradient: linear-gradient(120deg, var(--cyan), var(--violet));
  --radius: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: #67e8f9;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.97rem;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-list .nav-cta {
  color: var(--on-accent);
  background: var(--gradient);
  font-weight: 600;
}

.nav-list .nav-cta:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
  background: var(--gradient);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .nav-list.is-open {
    display: flex;
  }
  .no-js .nav-list {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    background: none;
    border: 0;
  }
  .no-js .nav-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--gradient);
  color: var(--on-accent);
}

.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--violet);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.22), transparent 70%),
    radial-gradient(closest-side at 30% 60%, rgba(34, 211, 238, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(34, 211, 238, 0.25);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.terminal pre {
  margin: 0;
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
}

.terminal .t-prompt {
  color: var(--violet);
}

.terminal .t-ok {
  color: var(--cyan);
}

.terminal .t-strong {
  color: var(--text);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head p {
  color: var(--muted);
}

.kicker {
  font-family: var(--mono);
  color: var(--violet);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-featured {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  color: var(--cyan);
}

.card-featured .card-icon {
  color: var(--violet);
}

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

.card ul {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gradient);
}

.badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  margin-bottom: 0.9rem;
}

/* AI focus */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.principles li {
  border-left: 3px solid var(--violet);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
}

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

/* Contact */
.contact-box {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.contact-box p {
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.contact-note {
  font-size: 0.92rem;
  margin-top: 1.5rem;
}

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

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-grid p {
  margin: 0.2rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* Legal / simple pages */
.page {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

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

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found .code {
  font-family: var(--mono);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .ai-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }
}
