/* ---------- Fonts (self-hosted Inter, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f9f9fb;
  --surface: #ffffff;
  --surface-soft: #eeeef9;
  --text: #15151f;
  --text-muted: #5c5c70;
  --text-faint: #8e8ea3;
  --accent: #5b3df5;
  --accent-2: #7b5cff;
  --line: #e4e4ec;
  --btn-bg: #15151f;
  --btn-fg: #ffffff;
  --shadow: 0 30px 60px -20px rgba(30, 20, 90, 0.25);
  --radius: 22px;
  --max: 1200px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --logo-light: block;
  --logo-dark: none;
}

:root[data-theme="dark"] {
  --bg: #0e0e16;
  --surface: #171723;
  --surface-soft: #1c1c2c;
  --text: #f3f3f8;
  --text-muted: #a5a5bd;
  --text-faint: #7a7a92;
  --accent: #9a85ff;
  --accent-2: #b6a6ff;
  --line: #262636;
  --btn-bg: #f3f3f8;
  --btn-fg: #0e0e16;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --logo-light: none;
  --logo-dark: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e16;
    --surface: #171723;
    --surface-soft: #1c1c2c;
    --text: #f3f3f8;
    --text-muted: #a5a5bd;
    --text-faint: #7a7a92;
    --accent: #9a85ff;
    --accent-2: #b6a6ff;
    --line: #262636;
    --btn-bg: #f3f3f8;
    --btn-fg: #0e0e16;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --logo-light: none;
    --logo-dark: block;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(var(--gutter), 5vw, 64px);
  padding-right: clamp(var(--gutter), 5vw, 64px);
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; z-index: 100; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---------- Header ---------- */
.site-header { padding: 28px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 56px; width: auto; }
.brand-logo-light { display: var(--logo-light); }
.brand-logo-dark { display: var(--logo-dark); }
.site-nav { display: flex; gap: 36px; font-weight: 600; }
.site-nav a { position: relative; padding: 4px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero-title {
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  display: flex;
  flex-direction: column;
}
.hero-title .accent { color: var(--accent); }
.hero-lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.9vw, 24px);
  color: var(--text-muted);
  max-width: 32ch;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; margin-top: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 24px;
  font-weight: 600; font-size: 17px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 20px 32px; border-radius: 16px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn-arrow { font-size: 20px; line-height: 1; }
.btn-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
.btn-link:hover { border-color: var(--text); }

/* Hero art */
.hero-art { justify-self: end; width: 100%; max-width: 540px; }
.art-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.art-glow {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(104, 76, 255, .18), transparent 70%);
  filter: blur(10px);
}
.art-card {
  position: absolute;
  width: 72%; aspect-ratio: 1 / 1;
  border-radius: 20%;
}
.art-card-back {
  background: linear-gradient(135deg, #16c6ff 0%, #2a5bff 55%, #1e40e6 100%);
  transform: translate(-12%, -8%) rotate(-14deg);
  box-shadow: 0 40px 70px -30px rgba(30, 80, 255, .5);
}
.art-card-front {
  background: var(--surface);
  transform: translate(8%, 6%) rotate(8deg);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.6);
}
.art-card-front img { width: 72%; height: auto; transform: rotate(-8deg); }
.orb { position: absolute; border-radius: 50%; }
.orb-purple {
  width: 11%; aspect-ratio: 1; top: 12%; right: 6%;
  background: radial-gradient(circle at 35% 35%, #c9a6ff, #7a3dff 60%, #5420c9);
  box-shadow: 0 14px 24px -10px rgba(90, 40, 220, .6);
  animation: float 6s ease-in-out infinite;
}
.orb-cyan {
  width: 6%; aspect-ratio: 1; bottom: 12%; left: 6%;
  background: radial-gradient(circle at 35% 35%, #bdf4ff, #28c7ff 60%, #0aa4e0);
  box-shadow: 0 10px 18px -8px rgba(20, 160, 230, .6);
  animation: float 5s ease-in-out infinite reverse;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.art-caption {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.section-lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 62ch;
}

#next { border-top: 1px solid var(--line); }
.next-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.next-date {
  border-left: 1px solid var(--line);
  padding-left: 48px;
  min-width: 260px;
  margin-top: 32px;
}
.next-date-label { color: var(--text-muted); font-size: 15px; }
.next-date-value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0; }
.next-date-note { color: var(--text-muted); font-size: 15px; }

.section-about { padding-top: 0; }
.about-card {
  background: var(--surface-soft);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.about-body p { color: var(--text-muted); font-size: clamp(17px, 1.5vw, 20px); }

.faq { margin-top: 40px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform .2s ease;
}
.faq-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { padding: 0 0 24px; }
.faq-answer p { font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-muted); font-size: 15px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-contact { margin-left: auto; margin-right: 40px; font-weight: 500; }
.footer-contact:hover, .back-to-top:hover { color: var(--text); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: fixed; right: 20px; bottom: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.3);
  z-index: 50;
}
.theme-toggle:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 420px; }
  .next-grid { grid-template-columns: 1fr; }
  .next-date { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; }
  .about-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav { gap: 20px; font-size: 15px; }
  .brand-logo { height: 44px; }
  .hero-actions { gap: 20px; }
  .btn-primary { padding: 16px 24px; width: 100%; justify-content: space-between; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  * { transition: none !important; }
}
