@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&family=Noto+Serif+JP:wght@300;400&display=swap');

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

:root {
  --ink:       #0b0c1a;
  --ink2:      #12132a;
  --ink3:      #1a1c35;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --gold:      #e8c87a;
  --gold2:     #f0d998;
  --muted:     rgba(255,255,255,0.38);
  --soft:      rgba(255,255,255,0.65);
  --bright:    rgba(255,255,255,0.92);
  --accent:    #7c9ef8;
  --accent2:   #a5bfff;
  --accent-bg: rgba(124,158,248,0.1);
  --teal:      #5ecfb1;
  --radius:    18px;
  --r-sm:      10px;
  --max-w:     1080px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--soft);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Nebula ── */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}
.nebula-1 { width: 550px; height: 550px; background: #3a5bde; top: -180px; right: -80px; }
.nebula-2 { width: 420px; height: 420px; background: #1e3d8f; bottom: 5%; left: -120px; }
.nebula-3 { width: 300px; height: 300px; background: #2a4a8f; top: 50%; right: 8%; }

/* ── Canvas stars ── */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page { position: relative; z-index: 1; }

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,12,26,0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-bg);
  border: 1px solid rgba(124,158,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--bright);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--bright); }
.nav-links .nav-back {
  color: var(--muted);
  font-size: 12px;
  opacity: 0.6;
}
.nav-links .nav-back:hover { opacity: 1; color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  color: var(--soft);
}

/* ── Section base ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 52px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}
.section-line { flex: 1; height: 1px; background: var(--border2); }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 52px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--soft); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  .nav-links { gap: 20px; }
  .nav-links .nav-back { display: none; }
  .section { padding: 56px 24px; }
  footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}

/* ── Shared starfield JS initialiser ── */
/* (stars canvas drawn via stars.js) */
