:root {
  --bg: #0b0d12;
  --bg-elev: #12151d;
  --line: #222736;
  --text: #e8eaf0;
  --muted: #9aa2b5;
  --accent: #7c5cff;
  --accent-2: #38d9c4;
  --radius: 14px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,13,18,.9), rgba(11,13,18,.6));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px;
}
.brand-text { font-size: 15px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); }
@media (max-width: 560px) { .brand-text, .nav a:not(.nav-cta) { display: none; } }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.hero { padding: 72px 0 56px; max-width: 760px; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2);
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.05; }
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px 0 0; font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #8d72ff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3a4156; background: rgba(255,255,255,.04); }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-head p { margin: 8px 0 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #353c52; }
.card-art { height: 160px; position: relative; }
.card-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.art-1 { background: linear-gradient(135deg, #7c5cff, #2f2a6b); }
.art-2 { background: linear-gradient(135deg, #38d9c4, #11504a); }
.art-3 { background: linear-gradient(135deg, #ff7a59, #6b2f2a); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(56,217,196,.3); padding: 3px 8px; border-radius: 999px;
}
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-link { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

.about-grid { display: grid; gap: 18px; max-width: 760px; }
.about-grid p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.skill-group { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.skill-group h3 { font-size: 1rem; margin-bottom: 12px; color: var(--accent-2); }
.skill-group li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.skill-group li:last-child { border-bottom: 0; }

.contact-card {
  text-align: center; padding: 48px 24px;
  background: radial-gradient(ellipse at top, rgba(124,92,255,.18), transparent 60%), var(--bg-elev);
  border: 1px solid var(--line); border-radius: 20px;
}
.contact-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.contact-card p { color: var(--muted); margin: 12px auto 26px; max-width: 480px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 28px 20px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
