/* Base + Theme */
* { box-sizing: border-box; }

:root {
  color-scheme: light dark;
  --accent: #7A5AF8; /* bold, elegant purple */
  --bg: #0f0d1b;
  --surface: #151326;
  --text: #EDEDF7;
  --muted: #B6B4C9;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F7FB;
    --surface: #FFFFFF;
    --text: #14121F;
    --muted: #4E4A67;
    --border: rgba(12,12,18,0.08);
    --shadow: 0 10px 30px rgba(10,10,20,0.08);
  }
}

html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 480px at 70% -10%, rgba(122,90,248,0.18), transparent 55%), var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
h1, .display { font-family: "Playfair Display", Georgia, serif; }

a { color: var(--accent); text-decoration: none; }
.text-link { text-decoration: underline; text-underline-offset: 3px; }

/* Layout */
.site-header {
  position: sticky; top: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in hsl, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; }
.brand-img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.nav { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.nav a { color: var(--text); opacity: 0.9; }
.nav a:hover { opacity: 1; }
.nav .cta { color: var(--bg); background: var(--accent); padding: 8px 14px; border-radius: 10px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--border); padding: 6px 10px; border-radius: 10px; font-size: 18px; }

.hero { padding: 88px 20px 40px; position: relative; }
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.avatar { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); width: min(260px, 55vw); height: auto; }
@media (min-width: 1024px) { .avatar { width: 320px; } }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 20px 0 8px; }
.tag { color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.lead { max-width: 820px; margin: 14px auto 26px; font-size: 1.1rem; color: var(--text); opacity: 0.92; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); background: color-mix(in hsl, var(--surface) 88%, transparent); box-shadow: var(--shadow); }
.button:hover { transform: translateY(-1px); transition: transform .2s ease; }
.button.primary { background: var(--accent); color: #0b0915; border-color: transparent; }
.button.ghost { background: transparent; }

.section { padding: 56px 20px; position: relative; }
.container { max-width: 1100px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 26px; } }

.card {
  background: linear-gradient(180deg, color-mix(in hsl, var(--surface) 92%, transparent), color-mix(in hsl, var(--surface) 92%, transparent));
  border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 22px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 4px 0 12px; font-size: clamp(24px, 3.6vw, 32px); }
.card h3.title { margin: 2px 0 6px; font-size: clamp(20px, 3vw, 26px); }
.card.highlight { border-color: color-mix(in hsl, var(--accent) 35%, var(--border)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.card.glass { backdrop-filter: saturate(1.1) blur(14px); background: color-mix(in hsl, var(--surface) 65%, transparent); }
.card.media img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }

.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.bullets { padding-left: 18px; }
.bullets li { margin: 6px 0; }
.bullets.tight li { margin: 2px 0; }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in hsl, var(--surface) 88%, transparent); }

.meta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.meta-k { color: var(--muted); font-size: .86rem; }
.meta-v { font-weight: 600; }

.xp-role { font-weight: 700; font-size: 1.1rem; }
.xp-meta { color: var(--muted); margin-bottom: 6px; }
.note { color: var(--muted); }

.contact { text-align: center; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.site-footer { text-align: center; color: var(--muted); padding: 40px 20px; border-top: 1px solid var(--border); }

/* Background Numbers (7 & 4 homage) */
.bg-numbers { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-num { position: absolute; font-family: "Playfair Display", Georgia, serif; font-weight: 700; color: var(--accent); opacity: 0.06; filter: blur(2px); line-height: 1; }
.bg-num.n7 { top: -40px; left: 2vw; font-size: clamp(140px, 22vw, 420px); transform: rotate(-6deg); }
.bg-num.n4 { bottom: -20px; right: 1vw; font-size: clamp(140px, 20vw, 380px); transform: rotate(8deg); }

/* Section stacking context above background */
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Small screens adjustments */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { padding: 12px 14px; backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* hide desktop nav on mobile; use fullscreen overlay */
  .nav { display: none; }
  .nav .cta { text-align: center; }
  .hero { padding: 56px 16px 28px; }
  .lead { font-size: 1rem; padding: 0 6px; }
  .section { padding: 36px 16px; }
  .card { padding: 16px; border-radius: 14px; }
  .meta-row { gap: 10px; }
  .contact-links { gap: 8px; }
}

/* Mobile full-screen menu overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 100000; background: var(--bg); display: none; padding: 84px 20px 20px; display: none; }
.mobile-menu.open { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { color: var(--text); font-size: 1.2rem; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.mobile-menu a.cta { background: var(--accent); color: #0b0915; border-color: transparent; text-align: center; }

/* Mobile menu close button */
.mobile-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 20px;
}
.mobile-close:active { transform: scale(0.98); }
