:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --panel: rgba(17, 25, 45, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #34d399;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow { position: fixed; z-index: -1; pointer-events: none; filter: blur(90px); opacity: .45; border-radius: 50%; }
.bg-glow--a { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--accent-2); }
.bg-glow--b { width: 460px; height: 460px; bottom: -200px; left: -160px; background: var(--accent); opacity: .3; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.7);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; color: var(--text); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo__mark { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); color: var(--text); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b1020; border: none; box-shadow: 0 8px 30px rgba(34,211,238,.25); }
.btn--primary:hover { box-shadow: 0 12px 36px rgba(139,92,246,.35); }
.btn--ghost { background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.07); }
.btn--small { padding: 8px 16px; font-size: .875rem; color: var(--text) !important; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 88px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.02); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(52,211,153,.2);} 50% { box-shadow: 0 0 0 8px rgba(52,211,153,.05);} }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 22px 0 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero__cta { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.35rem; font-weight: 700; }
.hero__facts span { font-size: .85rem; color: var(--muted); }

.window {
  background: rgba(8, 12, 26, .85); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(34,211,238,.06) inset; overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.window__bar span:nth-child(1) { background: #f87171; } .window__bar span:nth-child(2) { background: #fbbf24; } .window__bar span:nth-child(3) { background: #34d399; }
.window__bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.window pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: .8rem; line-height: 1.65; color: #cbd5e1; overflow-x: auto; }
.c-k { color: #c084fc; } .c-t { color: #67e8f9; } .c-f { color: #93c5fd; } .c-s { color: #86efac; } .c-b { color: #fbbf24; }

/* sections */
.section { padding: 72px 0; }
.section__head { margin-bottom: 36px; }
.section__index { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-top: 8px; }
.section__sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, border-color .2s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at 0 0, rgba(34,211,238,.09), transparent 45%); opacity: 0; transition: opacity .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.35); }
.card:hover::before { opacity: 1; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(139,92,246,.18)); color: var(--accent); border: 1px solid var(--line); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* about */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.about__text p { color: var(--muted); font-size: 1.04rem; }
.about__text strong { color: var(--text); }
.about__card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.about__card dl { margin: 0; }
.about__card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about__card dl > div:last-child { border-bottom: none; }
.about__card dt { color: var(--muted); font-size: .9rem; }
.about__card dd { margin: 0; text-align: right; font-weight: 500; font-size: .95rem; }

/* skills */
.skill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.skill__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.skill h3 { font-size: 1.15rem; }
.skill__head .mono { color: var(--accent); font-size: .85rem; }
.bar { height: 6px; border-radius: 999px; background: rgba(148,163,184,.15); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.tags li { font-family: var(--mono); font-size: .78rem; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #cbd5e1; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step__num { display: inline-block; color: var(--accent); font-size: .85rem; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(139,92,246,.12)), var(--panel);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 8px 0 14px; }
.contact__text p { color: var(--muted); margin: 0; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 12px; background: rgba(8,12,26,.55); border: 1px solid var(--line); }
.contact__label { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__list a, .contact__list span:not(.contact__label) { font-size: 1.05rem; font-weight: 500; color: var(--text); }
.contact__list a:hover { color: var(--accent); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 48px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero__facts { gap: 22px; }
  .contact { padding: 24px; }
}
