:root {
  --bg: #08111f;
  --bg-soft: rgba(255,255,255,0.05);
  --card: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.12);
  --text: #f5f7fb;
  --muted: rgba(245,247,251,0.72);
  --cyan: #6ee7f9;
  --blue: #4f8cff;
  --green: #6cf3c6;
  --shadow: 0 18px 50px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #06101c 0%, #0a1322 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 84px 0; position: relative; }
.eyebrow, .section-tag {
  display: inline-flex; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(110,231,249,.25);
  background: rgba(110,231,249,.08); color: #b7f7ff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1, .section h2 { margin: 0 0 16px; line-height: 1.05; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 760px; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead, .section-heading p, .glass-card p, .project-card p, .cta-card p { color: var(--muted); line-height: 1.8; }
.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px);
  background: rgba(6, 16, 28, 0.72); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--green)); color: #041018; font-weight: 800;
}
.nav { display: flex; gap: 24px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); padding: 8px 12px; border-radius: 12px; }
.hero-grid, .two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 16px;
  border: 1px solid var(--line); transition: .25s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #eef7ff, #95f4ff); color: #07111c; border: 0; font-weight: 700; }
.btn-secondary { background: rgba(255,255,255,0.04); color: var(--text); }
.stats-grid, .projects-grid, .stack-grid { display: grid; gap: 18px; }
.stats-grid { margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card, .glass-card, .project-card, .cta-card, .code-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.stat-card { padding: 22px; }
.stat-card strong { display: block; font-size: 1.5rem; margin-bottom: 8px; }
.stat-card span { color: var(--muted); }
.code-panel { padding: 24px; overflow: auto; }
.code-panel pre { margin: 0; font-size: .95rem; line-height: 1.8; }
.code-comment { color: #8ba6c9; }
.code-key { color: #81f1ff; }
.code-string { color: #93ffbf; }
.glass-card, .cta-card { padding: 32px; }
.clean-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.clean-list li { padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,0.18); border: 1px solid var(--line); color: var(--muted); }
.section-heading { margin-bottom: 26px; max-width: 720px; }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { padding: 28px; transform: translateY(18px); opacity: 0; transition: .6s ease; }
.project-card.visible, .glass-card.visible, .cta-card.visible { transform: translateY(0); opacity: 1; }
.project-tag { color: #b3f6ff; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.project-card h3, .glass-card h3 { margin: 10px 0 12px; font-size: 1.35rem; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  padding: 9px 12px; border-radius: 999px; font-size: .86rem;
  background: rgba(110,231,249,0.1); border: 1px solid rgba(110,231,249,0.16); color: #d7fbff;
}
.chip-soft { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spaced { margin-top: 16px; }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; transform: translateY(18px); opacity: 0; transition: .6s ease; }
.site-footer { padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-wrap { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
.bg-orb {
  position: fixed; border-radius: 999px; filter: blur(60px); opacity: .24; pointer-events: none; z-index: 0;
}
.orb-1 { width: 320px; height: 320px; background: #2f7fff; top: 8%; left: -90px; }
.orb-2 { width: 280px; height: 280px; background: #17d8a3; right: -70px; top: 30%; }
main, .site-header, .site-footer { position: relative; z-index: 1; }
.reveal { transform: translateY(18px); opacity: 0; transition: .6s ease; }
.reveal.visible { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .cta-card, .projects-grid, .stack-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 78px; left: 1rem; right: 1rem; display: none; flex-direction: column; padding: 16px;
    background: rgba(8, 17, 31, 0.96); border: 1px solid var(--line); border-radius: 18px;
  }
  .nav.is-open { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; }
}
