:root {
  --bg: #08090c;
  --surface: #0f1014;
  --card: #14151a;
  --card-hover: #191a20;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(200, 97, 42, 0.25);
  --text: #e4e4e8;
  --text-secondary: #a0a0a8;
  --muted: #5c5c64;
  --accent: #c8612a;
  --accent-dim: rgba(200, 97, 42, 0.1);
  --code-bg: #0c0d10;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(200, 97, 42, 0.06),
      transparent
    ),
    var(--bg);
}

body::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 2px;
  content: "";
  opacity: 0.6;
  background: linear-gradient(
    90deg,
    transparent 10%,
    var(--accent) 50%,
    transparent 90%
  );
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ─── */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero > * {
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
}

.hero > :nth-child(1) {
  animation-delay: 0.1s;
}

.hero > :nth-child(2) {
  animation-delay: 0.25s;
}

.hero > :nth-child(3) {
  animation-delay: 0.4s;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.wik {
  color: var(--text);
}

.ai {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(200, 97, 42, 0.35);
}

.tagline {
  margin-top: 24px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sub {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── Sections ─── */

.section {
  padding: 80px 0;
}

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

.kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-body {
  max-width: 600px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── Steps ─── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.step {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.step:hover {
  border-color: var(--border-accent);
  background: var(--card-hover);
}

.step-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.step h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ─── Code block ─── */

.install {
  display: inline-block;
  margin: 24px 0 20px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.install code {
  font-family: inherit;
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
}

.code-header {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.code-file {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.code-block pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.75;
  color: #b8b8c0;
}

.code-block .k { color: #c792ea; }
.code-block .s { color: #ecc48d; }
.code-block .t { color: var(--accent); }
.code-block .f { color: #82aaff; }
.code-block .c { color: #5c5c64; font-style: italic; }
.code-block .v { color: #f78c6c; }
.code-block .o { color: #89ddff; }

/* ─── Grid / Cards ─── */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--card-hover);
}

.card h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ─── CTA / Waitlist ─── */

.section-cta {
  text-align: center;
}

.section-cta .section-body {
  margin: 16px auto 0;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 28px auto 0;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--muted);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.waitlist-form button {
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.waitlist-form button:hover {
  opacity: 0.88;
}

.waitlist-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waitlist-form button[disabled] {
  cursor: wait;
  opacity: 0.5;
}

.waitlist-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.waitlist-status.is-error {
  color: #e55b4a;
}

/* ─── Footer ─── */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.footer-mark span {
  color: var(--accent);
  opacity: 0.6;
}

.footer p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ─── Utilities ─── */

.hp-field,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Animations ─── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .steps,
  .grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .code-block pre {
    padding: 16px;
  }

  .code-block code {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > * {
    opacity: 1;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
