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

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface2: #111;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f0;
  --muted: #666;
  --accent: #fff;
  --blue: #4f6af0;
  --blue-glow: rgba(79, 106, 240, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.25s, height 0.25s, border-color 0.25s;
}

body.cursor-hover #cursor {
  width: 16px;
  height: 16px;
  background: var(--blue);
}
body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(79, 106, 240, 0.6);
}

/* CANVAS */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

nav,
.hero,
section,
.cta-section,
footer,
.divider {
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  cursor: none;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  cursor: none;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 600;
}

/* BURGER BUTTON */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: none;
  padding: 6px;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE NAV OVERLAY */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#mobile-nav.open {
  display: flex;
}
#mobile-nav.visible {
  opacity: 1;
}
#mobile-nav a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.2s, transform 0.3s, opacity 0.3s;
}
#mobile-nav.visible a {
  transform: translateY(0);
  opacity: 1;
}
#mobile-nav.visible a:nth-child(1) {
  transition-delay: 0.05s;
}
#mobile-nav.visible a:nth-child(2) {
  transition-delay: 0.10s;
}
#mobile-nav.visible a:nth-child(3) {
  transition-delay: 0.15s;
}
#mobile-nav.visible a:nth-child(4) {
  transition-delay: 0.20s;
}
#mobile-nav.visible a:nth-child(5) {
  transition-delay: 0.25s;
}
#mobile-nav a:hover {
  color: var(--text);
}

/* MOBILE NAV CLOSE BUTTON */
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 20px;
  cursor: auto;
  transition: color 0.2s, border-color 0.2s;
  z-index: 110;
}
.mobile-nav-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

#mobile-nav .mobile-cta {
  margin-top: 16px;
  font-size: 16px !important;
  background: var(--text);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 32px;
  font-weight: 600;
}

/* PROGRESS DOTS */
#progress-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s, transform 0.3s;
  cursor: none;
}

.pdot.active {
  background: white;
  transform: scale(1.5);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 106, 240, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* STATS */
.stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* BTN */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px 4px rgba(255, 255, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(79, 106, 240, 0.6);
  box-shadow: 0 0 20px 2px rgba(79, 106, 240, 0.2), 0 4px 20px rgba(0, 0, 0, 0.4);
  background: rgba(79, 106, 240, 0.08);
}

/* SECTIONS */
section {
  padding: 100px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* CAPABILITIES */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cap-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.cap-card:hover {
  background: var(--surface2);
}
.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-glow);
  border: 1px solid rgba(79, 106, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}
.cap-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.cap-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* HIGHLIGHTS */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.highlight-card.full-width {
  grid-column: 1 / -1;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.highlight-card:hover {
  border-color: rgba(79, 106, 240, 0.3);
  transform: translateY(-2px);
}
.highlight-card:hover::before {
  opacity: 1;
}

.highlight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid rgba(79, 106, 240, 0.2);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.highlight-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.highlight-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* PROJECT LINKS */
.project-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.project-link:hover {
  color: var(--text);
  border-color: rgba(79, 106, 240, 0.5);
  background: rgba(79, 106, 240, 0.08);
}

.project-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* HOW I WORK */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 32px;
  position: relative;
}

.process-step:not(:last-child) .step-line {
  position: absolute;
  left: 29px;
  top: 52px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, var(--blue) 0%, transparent 100%);
  opacity: 0.3;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(79, 106, 240, 0.3);
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}

.process-step:hover .step-num {
  background: rgba(79, 106, 240, 0.25);
  border-color: var(--blue);
}

.step-content {
  padding: 8px 0 48px;
}
.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

/* DESIGN SYSTEM PREVIEW */
.ds-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.ds-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.ds-toolbar-dots {
  display: flex;
  gap: 6px;
}
.ds-toolbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ds-toolbar-dots span:nth-child(1) {
  background: #ff5f57;
}
.ds-toolbar-dots span:nth-child(2) {
  background: #febc2e;
}
.ds-toolbar-dots span:nth-child(3) {
  background: #28c840;
}

.ds-toolbar-title {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
}

.ds-theme-switcher {
  display: flex;
  gap: 8px;
}
.ds-theme-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: none;
  transition: border-color 0.2s, transform 0.2s;
}
.ds-theme-btn:hover {
  transform: scale(1.2);
}
.ds-theme-btn.active {
  border-color: white;
}
.ds-theme-btn[data-theme="default"] {
  background: #4f6af0;
}
.ds-theme-btn[data-theme="rose"] {
  background: #f43f5e;
}
.ds-theme-btn[data-theme="emerald"] {
  background: #10b981;
}
.ds-theme-btn[data-theme="amber"] {
  background: #f59e0b;
}

.ds-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ds-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 80px;
  flex-shrink: 0;
}

.ds-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: none;
  transition: all 0.2s;
  font-family: inherit;
}

.ds-btn-primary {
  background: var(--ds-primary, #4f6af0);
  color: white;
}
.ds-btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.ds-btn-secondary {
  background: transparent;
  color: var(--ds-primary, #4f6af0);
  border: 1px solid var(--ds-primary, #4f6af0);
}
.ds-btn-secondary:hover {
  background: rgba(79, 106, 240, 0.1);
  transform: translateY(-1px);
}
.ds-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.ds-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ds-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ds-badge-default {
  background: var(--blue-glow);
  color: var(--ds-primary, #4f6af0);
  border: 1px solid rgba(79, 106, 240, 0.3);
}
.ds-badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ds-badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ds-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ds-input:focus {
  border-color: var(--ds-primary, #4f6af0);
  box-shadow: 0 0 0 3px rgba(79, 106, 240, 0.15);
}

.ds-card-mini {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 140px;
  transition: border-color 0.2s;
}

.ds-card-mini:hover {
  border-color: var(--ds-primary, #4f6af0);
}
.ds-card-mini strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

/* PROJECT SCREENSHOT */
.project-screenshot {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: var(--surface2);
  aspect-ratio: 16 / 9;
  position: relative;
}

.project-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.highlight-card:hover .project-screenshot img {
  transform: scale(1.02);
}

.project-screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-screenshot-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.3;
}

/* STACK — CATEGORIZED */
.stack-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stack-category {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: baseline;
}

.stack-category-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 8px;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

.stack-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: none;
  user-select: none;
}
.stack-tag:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.stack-tag.featured {
  color: var(--text);
  border-color: rgba(79, 106, 240, 0.4);
  background: var(--blue-glow);
}
.stack-tag.selected {
  color: #fff;
  background: rgba(79, 106, 240, 0.25);
  border-color: rgba(79, 106, 240, 0.7);
  transform: scale(1.05);
}
.stack-tag.selected.deselecting {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
  transform: scale(1);
}

/* SKILL TOAST */
#skill-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 400;
  background: rgba(15, 15, 20, 0.92);
  border: 1px solid rgba(79, 106, 240, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
#skill-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* VALUES */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.value-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 120px 48px;
  position: relative;
}
.cta-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(79, 106, 240, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-section p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 24px;
}

/* FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* G KEY HINT — desktop only */
#g-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  animation: hintAppear 0.6s ease 3s forwards;
  cursor: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#g-hint.at-bottom,
#touch-hint.at-bottom {
  opacity: 0 !important;
  pointer-events: none;
  animation: none;
}

@keyframes hintAppear {
  to {
    opacity: 1;
  }
}

#g-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  position: relative;
  overflow: hidden;
}

#g-key-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--blue);
  transition: height 0.05s linear;
}

#g-key span {
  position: relative;
  z-index: 1;
}

/* MOBILE TOUCH HOLD HINT */
#touch-hint {
  display: none;
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  animation: hintAppear 0.6s ease 3s forwards;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#touch-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

#touch-ring-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--blue);
  transition: height 0.05s linear;
}

/* SCROLL TO TOP BUTTON */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 300;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, border-color 0.2s;
  color: var(--muted);
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 106, 240, 0.5);
  color: var(--text);
}

#scroll-top svg {
  width: 18px;
  height: 18px;
}

/* CRAZY MODE */
body.crazy {
  --bg: #0a0008;
  --surface: #0d000d;
  --surface2: #150015;
  --border: rgba(255, 0, 255, 0.15);
  --text: #00ff41;
  --muted: #ff00ff;
  --blue: #ffff00;
  --blue-glow: rgba(255, 255, 0, 0.1);
  font-family: "Press Start 2P", monospace !important;
  image-rendering: pixelated;
}

body.crazy * {
  font-family: "Press Start 2P", monospace !important;
  letter-spacing: 0 !important;
}
body.crazy .hero h1 {
  background: linear-gradient(180deg, #00ff41 0%, #ff00ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: glitch 0.5s infinite;
}
body.crazy .cap-card,
body.crazy .highlight-card,
body.crazy .ds-preview {
  border-radius: 0 !important;
  border: 2px solid #ff00ff !important;
  box-shadow: 4px 4px 0 #ffff00;
}
body.crazy .btn {
  border-radius: 0 !important;
}
body.crazy .btn-primary {
  background: #ffff00;
  color: #000;
  box-shadow: 3px 3px 0 #ff00ff;
}
body.crazy .btn-secondary {
  border: 2px solid #00ff41 !important;
  color: #00ff41;
  box-shadow: 3px 3px 0 #ff00ff;
}
body.crazy nav {
  background: rgba(10, 0, 8, 0.95) !important;
  border-bottom: 2px solid #ff00ff;
}
body.crazy .section-label {
  color: #ff00ff;
}
body.crazy .highlight-tag {
  color: #ffff00;
  background: rgba(255, 255, 0, 0.1);
  border-color: rgba(255, 255, 0, 0.3);
}
body.crazy .step-num {
  color: #ffff00;
  border-color: #ff00ff;
  background: rgba(255, 0, 255, 0.1);
}
body.crazy .stack-tag.featured {
  border-color: rgba(255, 255, 0, 0.4);
  background: rgba(255, 255, 0, 0.07);
}
body.crazy .stack-tag.selected {
  background: rgba(255, 0, 255, 0.25);
  border-color: #ff00ff;
}
body.crazy .pdot.active {
  background: #ff00ff;
}
body.crazy .project-link {
  border-color: rgba(255, 0, 255, 0.4);
  color: #ff00ff;
}

body.crazy #crazy-badge {
  display: none !important;
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
  }
  25% {
    text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    transform: translate(1px, 0);
  }
  50% {
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
  }
  75% {
    text-shadow: -1px 0 #ff00ff, 1px 0 #00ffff;
    transform: translate(-1px, 0);
  }
}

/* PIXEL SPRITE */
#pixel-sprite {
  display: none;
  position: fixed;
  bottom: 80px;
  left: -40px;
  width: 32px;
  height: 32px;
  z-index: 500;
  image-rendering: pixelated;
  font-size: 28px;
}

body.crazy #pixel-sprite {
  display: block;
  animation: spriteWalk 6s linear infinite;
}

@keyframes spriteWalk {
  0% {
    left: -40px;
    transform: scaleX(1);
  }
  49% {
    left: calc(100vw + 40px);
    transform: scaleX(1);
  }
  50% {
    left: calc(100vw + 40px);
    transform: scaleX(-1);
  }
  99% {
    left: -40px;
    transform: scaleX(-1);
  }
  100% {
    left: -40px;
    transform: scaleX(1);
  }
}

/* SCANLINES */
#scanlines {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

body.crazy #scanlines {
  display: block;
}

/* CRAZY BADGE */
#crazy-badge {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  background: #ff00ff;
  color: #000;
  font-size: 9px;
  padding: 8px 16px;
  border: 2px solid #ffff00;
  box-shadow: 3px 3px 0 #ffff00;
  animation: badgePulse 0.5s infinite alternate;
  white-space: nowrap;
}

@keyframes badgePulse {
  from {
    background: #ff00ff;
  }
  to {
    background: #ffff00;
    color: #ff00ff;
  }
}

/* KONAMI TERMINAL */
#konami-terminal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

#konami-terminal.open {
  display: flex;
}

.terminal-window {
  width: 620px;
  max-width: 90vw;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #161616;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-header span:nth-child(1) {
  background: #ff5f57;
}
.terminal-header span:nth-child(2) {
  background: #febc2e;
}
.terminal-header span:nth-child(3) {
  background: #28c840;
}
.terminal-header p {
  font-size: 12px;
  color: #555;
  font-family: monospace;
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 300px;
}
.terminal-line {
  margin-bottom: 4px;
  opacity: 0;
  animation: typeIn 0.3s ease forwards;
}
.terminal-line.prompt::before {
  content: "$ ";
  color: #4f6af0;
}
.terminal-line.output {
  color: #888;
  padding-left: 14px;
}
.terminal-line.highlight {
  color: #4ade80;
  padding-left: 14px;
}
.terminal-line.accent {
  color: #4f6af0;
  padding-left: 14px;
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #4f6af0;
  animation: blink 1s infinite;
  vertical-align: middle;
}
@keyframes typeIn {
  to {
    opacity: 1;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.terminal-close {
  display: block;
  margin: 0 24px 24px;
  padding: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #555;
  font-family: monospace;
  cursor: none;
  transition: background 0.2s;
}

.terminal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #888;
}

/* HERO ROLE TICKER */
.hero-roles {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  height: 22px;
  overflow: hidden;
}

.hero-role-static {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.hero-role-divider {
  opacity: 0.3;
}

.hero-role-ticker {
  overflow: hidden;
  height: 22px;
  position: relative;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  animation: tickerScroll 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ticker-track span {
  height: 22px;
  line-height: 22px;
  white-space: nowrap;
  color: var(--blue);
  font-weight: 500;
}

@keyframes tickerScroll {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-22px); }
  40%, 56% { transform: translateY(-44px); }
  60%, 76% { transform: translateY(-66px); }
  80%, 96% { transform: translateY(-88px); }
  100% { transform: translateY(-110px); }
}

/* CURRENTLY STRIP */
.currently-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  animation: fadeSlideIn 0.8s ease 0.5s both;
}

.currently-label {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.currently-text {
  color: var(--muted);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SPOTLIGHT CURSOR GLOW ON CARDS */
.cap-card,
.highlight-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.cap-card::after,
.highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    300px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(79, 106, 240, 0.08),
    transparent 70%
  );
  pointer-events: none;
}

.cap-card:hover::after,
.highlight-card:hover::after {
  opacity: 1;
}

/* SHIMMER BORDER ON HIGHLIGHT CARDS */
.highlight-card {
  --shimmer-pos: -100%;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    transparent var(--shimmer-pos),
    var(--blue) calc(var(--shimmer-pos) + 30%),
    transparent calc(var(--shimmer-pos) + 60%),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.highlight-card:hover::before {
  opacity: 1;
  animation: shimmerSlide 1.5s ease infinite;
}

@keyframes shimmerSlide {
  0% { --shimmer-pos: -60%; }
  100% { --shimmer-pos: 160%; }
}

/* NAV ACTIVE LINK INDICATOR */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.2s ease, left 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* CUSTOM CONTEXT MENU */
#ctx-menu {
  position: fixed;
  z-index: 10000;
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  min-width: 260px;
  opacity: 0;
  transform: scale(0.95) translateY(-4px);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

#ctx-menu.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ctx-item {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  cursor: none;
  transition: background 0.12s;
  white-space: nowrap;
}

.ctx-item:hover {
  background: rgba(79, 106, 240, 0.12);
}

.ctx-item.ctx-muted {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* FOOTER META */
.footer-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.footer-visitor {
  opacity: 0.5;
}

.footer-time {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* COPY TOAST (reusing skill toast) */
#copy-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 10001;
  background: rgba(15, 15, 20, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #10b981;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── MOBILE FIXES ─────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  section {
    padding: 72px 24px;
  }
  .cap-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .highlights {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 100px 24px 60px;
  }
  .stats {
    gap: 24px;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }
  #cursor,
  #cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
  body *,
  body a,
  body button {
    cursor: auto;
  }
  #g-hint {
    display: none !important;
  }
  #touch-hint {
    display: flex;
  }
  #progress-dots {
    display: none;
  }
  .hero h1 {
    word-break: break-word;
  }
  .stats {
    flex-wrap: wrap;
  }
  .stat-item {
    min-width: 0;
  }
  .ds-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ds-toolbar-title {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ds-body {
    padding: 20px;
  }
  .ds-row {
    gap: 8px;
  }
  .ds-label {
    width: 60px;
    font-size: 10px;
  }
  .ds-input {
    width: 140px;
    min-width: 0;
  }
  .ds-card-mini {
    min-width: 100px;
  }
  .highlight-card {
    padding: 24px;
  }
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 0 16px;
  }
  .step-content {
    padding: 8px 0 32px;
  }
  .step-content p {
    font-size: 13px;
  }
  .cta-section {
    padding: 80px 24px;
  }
  #scroll-top {
    cursor: auto;
  }

  /* Stack categories: stack vertically on mobile */
  .stack-category {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stack-category-label {
    border-right: none;
    padding-right: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }

  /* Hero ticker: stack vertically on mobile */
  .hero-roles {
    flex-direction: column;
    height: auto;
    gap: 4px;
  }
  .hero-role-divider {
    display: none;
  }
  .hero-role-ticker {
    height: 22px;
  }

  /* Currently strip */
  .currently-strip {
    font-size: 11px;
  }

  /* Context menu */
  #ctx-menu {
    display: none !important;
  }

  /* Footer meta */
  .footer-meta {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  nav {
    padding-top: calc(20px + env(safe-area-inset-top));
  }
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}