:root {
  --bg: #0a0b10;
  --bg-soft: #11131b;
  --surface: #161922;
  --surface-2: #1c2030;
  --border: #262b3a;
  --text: #e9ebf2;
  --muted: #9aa1b2;
  --accent: #7c8bff;
  --accent-2: #2dd4bf;
  --grad: linear-gradient(110deg, #818cf8 0%, #34d3ee 100%);
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(124,139,255,.16), transparent 60%),
    radial-gradient(50% 45% at 95% 10%, rgba(45,212,191,.12), transparent 60%);
  pointer-events: none; z-index: 0;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10,11,16,.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-dot { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text) !important; background: var(--surface);
}
.nav-cta:hover { border-color: var(--accent); }

/* HERO */
.hero { padding: 96px 24px 64px; max-width: 900px; }
.eyebrow { color: var(--accent-2); font-weight: 600; letter-spacing: .02em; margin-bottom: 18px; font-size: .95rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.7rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { color: var(--muted); font-size: 1.15rem; margin-top: 24px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; transition: transform .15s, box-shadow .2s, border-color .2s; }
.btn-primary { background: var(--grad); color: #06121a; box-shadow: 0 10px 30px -10px rgba(124,139,255,.6); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.hero-stats { list-style: none; display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.25rem; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* SECTIONS */
.section { padding: 72px 24px; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.02em; font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 8px; margin-bottom: 40px; font-size: 1.05rem; }

/* CARDS */
.cards-grid { display: grid; gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: #38405a; box-shadow: var(--shadow); }

.services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service { padding: 28px; }
.service-ic { font-size: 1.8rem; margin-bottom: 14px; }
.service h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .97rem; }

/* PROJECTS */
.projects { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.project { overflow: hidden; display: flex; flex-direction: column; }
.project-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.project:hover .project-shot img { transform: scale(1.04); }
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.project-body h3 { font-size: 1.3rem; }
.project-body p { color: var(--muted); font-size: .96rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li { font-size: .78rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.projects-more { color: var(--muted); margin-top: 30px; text-align: center; font-size: .98rem; }

/* STACK */
.stack-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.stack-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: .95rem; transition: border-color .2s, color .2s; }
.stack-list li:hover { border-color: var(--accent); color: var(--accent); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; transition: transform .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.contact-ic { font-size: 1.6rem; }
.contact-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-value { font-weight: 600; word-break: break-word; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 28px 24px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-inner a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 64px; }
  .hero-stats { gap: 24px; }
}
