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

:root {
  --color-bg: #0d0d0d;
  --color-surface: #151515;
  --color-surface-2: #1c1c1c;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-hover: rgba(255, 255, 255, 0.14);
  --color-text: #e8e6e1;
  --color-muted: #7a7875;
  --color-subtle: #3d3d3a;
  --color-accent: #4f8ef7;
  --color-accent-dim: rgba(79, 142, 247, 0.1);
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-w: 640px;
  --nav-h: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  padding: 0 2rem;
  background: rgba(13, 13, 13, 0.88);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 12px;
  color: var(--color-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-text); }

/* MAIN */
.main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HERO */
.hero {
  padding: 88px 0 80px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadein 0.7s ease forwards;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero h1 span { color: var(--color-accent); }

.hero p {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 500px;
  margin-bottom: 14px;
  line-height: 1.85;
}

.hero p.subtle {
  font-style: italic;
  color: var(--color-subtle);
  font-size: 14px;
  margin-bottom: 0;
}

/* SECTIONS */
.section {
  padding: 52px 0;
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible { opacity: 1; transform: translateY(0); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.section p {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 500px;
  line-height: 1.85;
}

/* METRICS */
.metrics-row {
  display: flex;
  align-items: center;
  padding: 36px 0;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
}

.metric:first-child { padding-left: 0; }

.metric-value {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.metric-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  background: var(--color-surface);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}

.tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

/* STACK */
.stack-intro { margin-bottom: 32px; }

.stack-group { margin-bottom: 28px; }
.stack-group:last-child { margin-bottom: 0; }

.stack-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.stack-item {
  background: var(--color-surface);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}

.stack-item:hover { background: var(--color-surface-2); }

.stack-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.stack-type {
  font-size: 11px;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

/* CONTACT */
.contact-intro { margin-bottom: 24px; }

.contact-list { display: flex; flex-direction: column; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-muted);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s, border-color 0.2s;
}

.contact-item:last-child { border-bottom: none; }

.contact-item:hover {
  color: var(--color-accent);
  border-color: var(--color-border-hover);
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.contact-item:hover svg { opacity: 1; }

/* FOOTER */
.footer {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 24px 2rem 36px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
}

/* ANIMATION */
@keyframes fadein {
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-subtle); border-radius: 2px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav { padding: 0 1.25rem; }
  .nav-links { gap: 16px; }
  .main { padding: 0 1.25rem; }
  .hero { padding: 56px 0 60px; }
  .metrics-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .metric { padding: 0; }
  .metric-divider { width: 40px; height: 1px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 20px 1.25rem 32px; }
}
