:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --card: #131a2e;
  --card-hover: #17203a;
  --border: #1e2740;
  --text: #e8edf7;
  --muted: #97a3bd;
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --accent: #22d3ee;
  --radius: 16px;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 10px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(59,130,246,.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); border-color: var(--primary); }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 14px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; text-align: center; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.22), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.pill {
  display: inline-block; padding: 7px 16px; margin-bottom: 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; font-size: 14px; color: var(--muted);
}
.hero-title { font-size: clamp(38px, 6vw, 66px); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; }
.grad { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 620px; margin: 24px auto 0; font-size: 19px; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.badge {
  padding: 8px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* Grid + cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); background: var(--card-hover); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 24px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(34,211,238,.14));
  border: 1px solid var(--border);
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card.feature { text-align: left; }

/* Tech stack chips */
.stack { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  padding: 12px 22px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--text);
  transition: border-color .2s, transform .2s, color .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* CTA */
.cta { padding: 100px 0; text-align: center; background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; }
.cta-inner p { margin: 16px auto 34px; max-width: 560px; font-size: 18px; color: var(--muted); }

/* Footer */
.footer { background: var(--bg-alt); padding-top: 60px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 340px; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom p { color: var(--muted); font-size: 14px; text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.btn-primary { margin: 12px 0; width: auto; }
  .nav-toggle { display: flex; }
}
