:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #151923;
  --border: #232937;
  --text: #e6e8ee;
  --muted: #8b93a7;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #04201c;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -6px rgba(94, 234, 212, .5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo-mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 7px;
  border-radius: 6px;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s; }

/* Hero */
.hero { padding: 96px 0 112px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  opacity: .5;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { color: var(--accent); font-size: 13px; margin-bottom: 16px; letter-spacing: .02em; }
h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; }
.gradient { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #121620; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.red { background: #ff5f57; } .yellow { background: #febc2e; } .green { background: #28c840; }
.terminal-title { margin-left: 10px; font-size: 12px; color: var(--muted); }
.terminal-body { padding: 20px; font-size: 13.5px; line-height: 1.75; min-height: 270px; white-space: pre-wrap; color: var(--text); }
.terminal-body .p { color: var(--accent); }
.terminal-body .c { color: var(--muted); }
.terminal-body .ok { color: #4ade80; }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-bottom: 32px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(94, 234, 212, .4); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(94, 234, 212, .08);
  color: var(--accent); margin-bottom: 18px; font-size: 15px;
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.step { border-top: 1px solid var(--border); padding-top: 22px; }
.step-num { color: var(--accent); font-size: 13px; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; }

/* Stack */
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li {
  font-family: "JetBrains Mono", monospace; font-size: 14px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-email { color: var(--accent); font-size: 16px; border-bottom: 1px dashed rgba(94, 234, 212, .4); padding-bottom: 2px; }
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 15px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 234, 212, .15); }
.form-note { font-size: 13px; color: var(--muted); }

/* Footer */
.footer { padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 20px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}
