:root {
  color-scheme: dark;
  --bg: #080a12;
  --panel: rgba(17, 22, 37, 0.78);
  --panel-border: rgba(126, 155, 255, 0.25);
  --text: #edf2ff;
  --muted: #b3c0e7;
  --accent: #7e9bff;
  --accent-2: #45d4ff;
  --shadow: 0 20px 45px rgba(4, 8, 20, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 15% 20%, #162041 0%, var(--bg) 48%),
    linear-gradient(165deg, #090d18 0%, #07090f 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.bg-glow {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(69, 212, 255, 0.17), transparent 35%),
    radial-gradient(circle at 20% 85%, rgba(126, 155, 255, 0.18), transparent 33%);
  filter: blur(4px);
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(126, 155, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 155, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(1040px, 92vw);
  margin-inline: auto;
}

.hero {
  padding: 6.25rem 0 3.5rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 600;
}

h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
}

h2 {
  margin: 0.5rem 0 1.2rem;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  color: var(--muted);
  font-weight: 500;
}

.lead {
  margin: 0;
  max-width: 70ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #d7e3ff;
}

main {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.75rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
}

.panel p {
  margin: 0;
  color: #d2def8;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.project-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(126, 155, 255, 0.22);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(165deg, rgba(22, 29, 48, 0.86), rgba(14, 19, 32, 0.9));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(69, 212, 255, 0.7);
  box-shadow: 0 12px 24px rgba(6, 13, 33, 0.48);
}

.project-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0.5rem 0 0;
  font-size: 0.93rem;
  color: #c7d4f8;
}

.focus-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #d7e1fb;
  columns: 2;
  gap: 1.4rem;
}

.focus-list li {
  margin: 0 0 0.4rem;
  break-inside: avoid;
}

footer {
  border-top: 1px solid rgba(126, 155, 255, 0.28);
  padding: 1.2rem 0 2rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  color: #dce8ff;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .hero {
    padding-top: 4.4rem;
  }

  .focus-list {
    columns: 1;
  }
}
