/* Self-hosted variable fonts (SIL OFL 1.1, see /fonts/LICENSE.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a192f;
  --bg-2: #112240;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(100, 255, 218, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e6f1ff;
  --muted: #a8b2d1;
  --accent: #64ffda;
  --primary: #03433c;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, var(--bg-2) 0%, var(--bg) 60%) fixed;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 10%, rgba(3, 67, 60, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 85% 70%, rgba(100, 255, 218, 0.05) 0%, transparent 40%);
}

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

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero picture { display: block; }
.hero-cover { height: 150px; overflow: hidden; }
.hero-cover picture { height: 100%; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; display: block; }

.hero-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 25, 47, 0.6);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover { border-color: var(--accent); }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  margin: -70px auto 12px;
  display: block;
  position: relative;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-name {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-title {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  margin-top: 2px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 14px auto 0;
  max-width: 36ch;
  padding: 0 16px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 0 16px;
  max-width: 640px;
}
.chips li {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 500 0.95rem 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, #0b6b5f 0%, var(--primary) 100%);
  border-color: rgba(100, 255, 218, 0.35);
  color: #fff;
}

/* Sections */
section { margin-top: 40px; }

h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
}

h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
h3 a { color: var(--text); }
h3 a:hover { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card p + p, .card p + ul, .card ul + p { margin-top: 10px; }
.card p, .card li { color: var(--muted); }
.card strong { color: var(--text); font-weight: 600; }
.card ul { padding-left: 1.1rem; }
.card li + li { margin-top: 8px; }

.card-feature {
  background: var(--card-strong);
  border-color: rgba(100, 255, 218, 0.25);
  margin-bottom: 14px;
}

.kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent) !important;
  margin-bottom: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

.timeline { list-style: none; padding-left: 0 !important; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.timeline span { color: var(--accent); font-weight: 600; white-space: nowrap; }
.stack { margin-top: 16px; font-size: 0.92rem; }

footer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 27, 0.8);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}
.modal-title { margin: 14px 0 12px; font-size: 1rem; }
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}
.qr { background: #fff; border-radius: 12px; padding: 12px; width: 220px; margin: 0 auto; }
.qr svg { width: 100%; height: auto; display: block; stroke: none; }
/* The QR library colours its SVG with inline styles, which the CSP blocks; colour it here instead. */
.qr svg rect { fill: #fff; }
.qr svg path { fill: #0a192f; shape-rendering: crispEdges; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 1.9rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .timeline li + li { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 20;
}
.skip-link:focus { top: 12px; text-decoration: none; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible, .icon-btn:focus-visible { border-radius: 999px; }
