:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --fg: #e8eef7;
  --fg-dim: #9aa7bd;
  --accent: #6aa9ff;
  --accent-2: #8d7bff;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(141, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(106, 169, 255, 0.18), transparent 60%),
    var(--bg);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 24px rgba(106, 169, 255, 0.45);
}

.brand-name { font-size: 1.05rem; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--fg); }

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 96px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #b8c6df 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--fg-dim);
  margin: 0 0 28px;
  max-width: 56ch;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid var(--border);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0f1d;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); }

.hero-fog {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background:
    radial-gradient(closest-side, rgba(255,255,255,0.08), transparent 70%),
    radial-gradient(closest-side, rgba(106,169,255,0.10), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.projects {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.section-head { margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-head p { margin: 0; color: var(--fg-dim); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--fg-dim); }

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(106,169,255,0.12);
  border: 1px solid rgba(106,169,255,0.25);
  padding: 4px 8px;
  border-radius: 999px;
}

.card-placeholder { opacity: 0.75; }
.card-placeholder .card-tag {
  color: var(--accent-2);
  background: rgba(141,123,255,0.12);
  border-color: rgba(141,123,255,0.25);
}

.card-link {
  margin-top: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.card-link:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

@media (max-width: 540px) {
  .site-header { padding: 16px 18px; }
  .hero { padding: 48px 18px 72px; }
  .projects { padding: 16px 18px 64px; }
}
