:root {
  --bg: #0b0f1a;
  --bg-soft: rgba(14, 20, 36, 0.92);
  --card-border: rgba(77, 163, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(77, 163, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #0b0f1a 0%, #0a0d16 100%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(77, 163, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 30%, rgba(77, 163, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 70%, rgba(77, 163, 255, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 80%, rgba(77, 163, 255, 0.1) 0 2px, transparent 3px),
    linear-gradient(rgba(77, 163, 255, 0.06), rgba(77, 163, 255, 0.06)),
    linear-gradient(rgba(77, 163, 255, 0.04), rgba(77, 163, 255, 0.04));
  background-size:
    auto,
    auto,
    auto,
    auto,
    1px 100%,
    100% 1px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    24% 0,
    0 62%;
  background-repeat: no-repeat;
  opacity: 0.35;
}

body::after {
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(77, 163, 255, 0.05) 30% 31%, transparent 31% 100%),
    linear-gradient(210deg, transparent 0 60%, rgba(77, 163, 255, 0.04) 60% 61%, transparent 61% 100%);
  opacity: 0.45;
}

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

a:hover,
a:focus-visible {
  color: #80beff;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px 32px;
}

.container {
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 44px 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 22px;
}

.lead {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.lead.secondary {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding-left: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.7);
}

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

.projects a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(77, 163, 255, 0.22);
  background: var(--accent-soft);
}

.site-footer {
  width: min(100%, 900px);
  margin: 22px auto 0;
  padding: 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.not-found {
  align-items: center;
  text-align: center;
}

.not-found .container {
  width: min(100%, 720px);
}

.not-found .card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 28px 16px 24px;
  }

  .card,
  .hero {
    padding: 24px;
    border-radius: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
