:root {
  --bg: #0d1117;
  --bg-alt: #11161d;
  --card: #161c24;
  --border: #262d38;
  --text: #d7dde5;
  --text-dim: #8b95a3;
  --accent: #4ea1ff;
  --accent-soft: rgba(78, 161, 255, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, var(--accent-soft), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--accent);
  font-weight: 500;
  margin: 0.5rem 0 1.5rem;
}

.hero-summary {
  color: var(--text-dim);
  max-width: 46rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0b1220; }
.btn-primary:hover { background: #6db3ff; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1.75rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}

.card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.93rem; }

.card-link { display: block; transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card-cta { display: inline-block; margin-top: 0.9rem; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Chips */
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Error page */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-page .container { max-width: 32rem; }
.error-page h1 { font-size: 4rem; color: #fff; }
