:root {
  --bg: #070b12;
  --bg-2: #0c121c;
  --panel: #111924;
  --line: rgba(56, 232, 208, 0.16);
  --text: #e8f0f4;
  --muted: #8aa0ad;
  --cyan: #38e8d0;
  --cyan-dim: rgba(56, 232, 208, 0.12);
  --violet: #7aa2ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --font: "Space Grotesk", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(56, 232, 208, 0.08), transparent 50%),
              radial-gradient(900px 500px at -10% 20%, rgba(122, 162, 255, 0.08), transparent 45%),
              var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 232, 208, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 232, 208, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
}

.nav, main, footer { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid transparent;
  z-index: 5;
}

.logo { display: flex; align-items: center; gap: 12px; letter-spacing: 0.16em; font-size: 12px; }
.logo-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(56, 232, 208, 0.25);
}
.logo-text { color: var(--muted); }

.nav nav { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--cyan) !important;
}
.menu-btn { display: none; width: 36px; height: 36px; }
.menu-btn span { display: block; height: 1px; background: var(--text); margin: 8px 4px; }

.hero { padding: 10vh 7vw 12vh; max-width: 1100px; }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { max-width: 640px; color: var(--muted); margin: 24px 0 36px; font-size: 18px; }

.hero-actions, .contact-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary {
  background: var(--cyan);
  color: #04110e;
  box-shadow: 0 0 24px rgba(56, 232, 208, 0.35);
}
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn:hover { transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 32px; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: 13px; }

section { padding: 8vh 7vw; }
.section-head { margin-bottom: 36px; max-width: 720px; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--muted);
  max-width: 1000px;
}
.about-grid blockquote {
  grid-column: 1 / -1;
  border-left: 2px solid var(--cyan);
  padding: 8px 0 8px 20px;
  color: var(--text);
  font-size: 20px;
}

.skill-grid, .work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.skill-grid article, .work-card {
  background: linear-gradient(180deg, rgba(17, 25, 36, 0.9), rgba(12, 18, 28, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.skill-grid h3 { margin-bottom: 8px; }
.skill-grid p { color: var(--muted); }

.work-list { grid-template-columns: 1fr; }
.work-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; }
.work-visual {
  height: 160px;
  border-radius: 14px;
  background: #0a111a;
  border: 1px solid var(--line);
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.v1 { background: radial-gradient(circle at 20% 20%, rgba(56,232,208,.18), transparent 40%), #0a111a; }
.chart { width: 28%; height: 70%; background: linear-gradient(180deg, var(--cyan), transparent); opacity: 0.7; }
.chart.short { height: 40%; }
.v2 { flex-direction: column; align-items: flex-start; justify-content: center; }
.doc-line { display: block; height: 8px; width: 90%; background: rgba(122,162,255,.35); border-radius: 99px; }
.doc-line.w80 { width: 80%; }
.doc-line.w60 { width: 60%; }
.cursor {
  width: 2px; height: 18px; background: var(--cyan);
  position: absolute; right: 48px; top: 42px;
  animation: blink 1.1s steps(1) infinite;
}
.v3 { flex-direction: column; justify-content: center; }
.mail { height: 18px; width: 100%; background: rgba(56,232,208,.18); border-radius: 6px; }
.mail.dim { opacity: 0.4; width: 78%; }

.tag { color: var(--cyan); font-family: var(--mono); font-size: 12px; margin-bottom: 8px; }
.work-body p { color: var(--muted); margin: 8px 0 14px; }
.work-body ul { padding-left: 18px; color: var(--text); }

.timeline { list-style: none; max-width: 720px; border-left: 1px solid var(--line); padding-left: 28px; }
.timeline li { position: relative; margin-bottom: 32px; }
.timeline li::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  position: absolute; left: -33px; top: 8px;
  box-shadow: 0 0 12px var(--cyan);
}
.timeline time { font-family: var(--mono); color: var(--cyan); font-size: 12px; }
.timeline p { color: var(--muted); }

.contact { text-align: left; }
.contact .lead { margin-bottom: 28px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 7vw 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.mono { font-family: var(--mono); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 860px) {
  .nav nav { display: none; }
  .menu-btn { display: block; }
  .nav.open nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 7vw;
    top: 72px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 16px 20px;
    gap: 14px;
  }
  .about-grid, .skill-grid, .work-card { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
