:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --surface: #161a23;
  --border: #232836;
  --text: #e7ecf3;
  --muted: #8a93a6;
  --accent: #7c5cff;
  --accent-2: #19d4c4;
  --accent-3: #ff7ab6;
  --ok: #51e898;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 40px -12px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(25,212,196,0.12), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(124,92,255,0.7);
}

.brand-name { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }

.links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}

.links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}

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

.links .cta {
  color: var(--text);
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(25,212,196,0.18));
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.hero { padding: 40px 0 24px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(81,232,152,0.55);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(81,232,152,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(81,232,152,0); }
  100% { box-shadow: 0 0 0 0 rgba(81,232,152,0); }
}

h1 {
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 9s ease-in-out infinite;
}

@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.lede {
  max-width: 640px;
  font-size: 18px;
  color: #c5cad6;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5b3eff);
  border-color: transparent;
  box-shadow: 0 8px 30px -10px rgba(124,92,255,0.65);
}

.btn.primary:hover { filter: brightness(1.05); }

.btn .btn-icon { transition: transform 200ms ease; }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn.ghost { background: transparent; }
.btn.ghost:hover { border-color: #303749; }

.terminal {
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0e1118;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--muted);
}

.terminal-body {
  margin: 0;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #d8dee9;
  overflow-x: auto;
}

.terminal-body .prompt { color: var(--accent-2); margin-right: 8px; }
.terminal-body .ok { color: var(--ok); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 64px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #2f3548;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,0.2), rgba(25,212,196,0.2));
  border: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--accent-2);
}

.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.stack { margin: 56px 0; }
.stack h2 { font-size: 26px; margin: 0 0 20px; letter-spacing: -0.01em; }

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stack-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: #c5cad6;
}

.kbd {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(25,212,196,0.08);
  border: 1px solid rgba(25,212,196,0.22);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 10px;
}

.hello { margin: 56px 0 24px; }
.hello h2 { font-size: 26px; margin: 0 0 20px; letter-spacing: -0.01em; }

.hello-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.hello-grid div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 17px;
  transition: transform 200ms ease, border-color 200ms ease, color 200ms ease;
}

.hello-grid div small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hello-grid div:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-2);
}

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 28px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #c5cad6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .links { gap: 14px; font-size: 14px; }
  main { padding: 24px 20px 60px; }
}
