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

:root {
  --bg: #0c0c0e;
  --bg-card: #131316;
  --bg-card-featured: #16161a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #f0f0f2;
  --text-muted: #7a7a8a;
  --text-dim: #4a4a5a;
  --accent: #7c6fff;
  --accent-dim: rgba(124,111,255,0.12);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.12);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.btn-nav {
  font-size: 13px;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  color: var(--text) !important;
  transition: background 0.15s, border-color 0.15s;
}

.btn-nav:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.24);
}

/* Hero */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 10rem 2.5rem 6rem;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--text); }

/* Sections */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.15s, border-color 0.15s;
}

.project-card:hover { background: var(--bg-card-featured); border-color: var(--border-hover); }

.project-card.featured {
  grid-column: span 2;
  background: var(--bg-card-featured);
}

.card-top { display: flex; flex-direction: column; gap: 0.75rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.badge-live {
  background: var(--green-dim);
  color: var(--green);
}

.card-category {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.project-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-bottom { display: flex; flex-direction: column; gap: 0.75rem; }

.card-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-detail span {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.15s;
}

.card-link:hover { opacity: 0.75; }

.card-link.coming-soon {
  color: var(--text-dim);
  cursor: default;
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}

.stack-group-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-tags span {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* CTA */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Footer */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

footer span {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 8rem 1.25rem 4rem; }
  section { padding: 3rem 1.25rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .stack-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* featured card — clickable demo chips */
.card-detail.demos { gap: 0.5rem; }
.demo-chip {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(124,111,255,0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.demo-chip:hover { background: rgba(124,111,255,0.2); border-color: rgba(124,111,255,0.5); }
.try-hint { color: var(--text-dim) !important; cursor: default; }

/* gap strip */
.gap-strip {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}
.gap-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-align: center;
}
.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.gap-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.gap-ico {
  font-size: 14px;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}
.gap-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.gap-bridge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.gap-bridge-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,111,255,0.4), transparent);
}
.gap-bridge-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  max-width: 520px;
  flex-shrink: 0;
  line-height: 1.55;
}

/* services section */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.6rem; transition: border-color 0.15s, background 0.15s; }
.service-card:hover { border-color: var(--border-hover); background: var(--bg-card-featured); }
.service-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* engagement / how I work */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.engage-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.6rem; }
.engage-card:first-child { border-color: rgba(124,111,255,0.4); background: var(--bg-card-featured); }
.engage-tag { position: absolute; top: -10px; left: 1.6rem; font-size: 11px; font-family: var(--mono); color: var(--accent); background: var(--bg); border: 1px solid rgba(124,111,255,0.4); padding: 0.15rem 0.6rem; border-radius: 5px; }
.engage-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.engage-price { font-size: 13px; font-family: var(--mono); color: var(--accent); margin-bottom: 0.85rem; }
.engage-card p:not(.engage-price) { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .service-grid, .engage-grid { grid-template-columns: 1fr; }
}
