/* ── WHISPR GLOBAL STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,600&family=IBM+Plex+Mono:wght@300;400&family=Noto+Serif+JP:wght@200;300;400&display=swap');

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

:root {
  --bg:          #08040f;
  --bg2:         #0e0718;
  --bg3:         #130b20;
  --blue-deep:   #1a0a2e;
  --blue-mid:    #3d1a6e;
  --blue-glow:   #7c3aed;
  --blue-soft:   #a855f7;
  --blue-pale:   #d8b4fe;
  --white:       #f5f0ff;
  --muted:       rgba(216,180,254,0.6);
  --line:        rgba(124,58,237,0.22);
  --line-bright: rgba(168,85,247,0.45);
  --serif:       'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --mono:        'IBM Plex Mono', monospace;

  /* Fluid font sizes */
  --text-xs:   clamp(0.78rem,  1.8vw, 0.85rem);
  --text-sm:   clamp(0.9rem,   2vw,   1rem);
  --text-base: clamp(1.05rem,  2.5vw, 1.2rem);
  --text-lg:   clamp(1.2rem,   3vw,   1.5rem);
  --text-xl:   clamp(1.5rem,   4vw,   2rem);
  --text-2xl:  clamp(2rem,     5vw,   3rem);
  --text-hero: clamp(2.8rem,   8vw,   5.2rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════════════
   NAV — Desktop
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: rgba(4,8,16,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  min-height: 72px;
}

/* ── LOGO ── */
.nav-logo {
  display: flex; align-items: center; gap: 0.9rem;
  text-decoration: none; flex-shrink: 0;
}

.logo-img {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(216,180,254,0.3);
  box-shadow: 0 0 16px rgba(124,58,237,0.35), 0 0 32px rgba(124,58,237,0.15);
  background: #1a0a2e;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.logo-img:hover {
  box-shadow: 0 0 24px rgba(124,58,237,0.6), 0 0 48px rgba(124,58,237,0.25);
  border-color: rgba(216,180,254,0.5);
}
.logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-fallback {
  font-family: var(--mono); font-size: 1.2rem; font-weight: 400;
  letter-spacing: 0.25em; color: var(--blue-pale); display: none;
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name {
  font-family: var(--mono); font-size: 1rem; font-weight: 400;
  letter-spacing: 0.38em; color: var(--white);
}
.nav-logo-sub {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.18em; color: var(--muted);
}

/* ── DESKTOP NAV RIGHT ── */
.nav-right {
  display: flex; align-items: center; gap: 1.5rem;
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem; list-style: none;
}
.nav-links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 0.5rem 1rem; border-radius: 0.4rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover  { color: var(--white); background: rgba(124,58,237,0.12); }
.nav-links a.active { color: var(--blue-pale); background: rgba(124,58,237,0.15); }

.nav-listen {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; background: var(--blue-glow); color: var(--white);
  padding: 0.55rem 1.35rem; border-radius: 999px; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nav-listen:hover { background: var(--blue-soft); box-shadow: 0 0 20px rgba(124,58,237,0.55); }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(26,10,46,0.85);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  padding: 0.32rem 0.8rem; border-radius: 999px; border: none;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  background: transparent; color: var(--muted);
}
.lang-btn.active {
  background: var(--blue-glow); color: var(--white);
  box-shadow: 0 0 10px rgba(124,58,237,0.4);
}

/* ══════════════════════════════════════
   HAMBURGER MENU (mobile)
══════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(26,10,46,0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(124,58,237,0.2); border-color: var(--blue-glow); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU DRAWER */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: rgba(4,8,16,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  flex-direction: column;
  padding: 2rem 2rem 3rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 2rem;
}
.mobile-nav-links li {
  border-bottom: 1px solid var(--line);
}
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 1rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 1.1rem 0;
  transition: color 0.2s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--white); }
.mobile-nav-links a.active { color: var(--blue-pale); }
.mobile-nav-links .arrow { font-size: 1rem; opacity: 0.4; }

.mobile-listen {
  display: block; text-align: center;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--blue-glow); color: var(--white);
  padding: 1rem; border-radius: 999px; text-decoration: none;
  margin-bottom: 2.5rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-listen:hover { background: var(--blue-soft); box-shadow: 0 0 20px rgba(124,58,237,0.5); }

.mobile-lang-toggle {
  display: flex; justify-content: center;
  margin-bottom: 2.5rem;
}
.mobile-social {
  display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}

/* ══════════════════════════════════════
   SOCIAL ICONS
══════════════════════════════════════ */
.social-row {
  display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap;
}
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(26,10,46,0.7);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.social-icon:hover {
  background: rgba(124,58,237,0.28);
  border-color: var(--blue-glow); color: var(--white);
  box-shadow: 0 0 18px rgba(124,58,237,0.5);
}
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }

/* ══════════════════════════════════════
   SECTION UTILITIES
══════════════════════════════════════ */
.section-label {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue-soft); margin-bottom: 0.75rem;
}

.section-heading {
  font-size: var(--text-2xl); font-weight: 300;
  line-height: 1.08; color: var(--white); margin-bottom: 2rem;
}

.divider {
  width: 48px; height: 2px;
  background: linear-gradient(to right, var(--blue-glow), transparent);
  margin: 1.5rem 0;
}

/* ── BACK TO HOME ── */
.back-home {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: var(--text-xs); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.back-home:hover { color: var(--blue-pale); }
.back-home svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--mono); font-size: var(--text-xs); letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.85rem 2rem; border-radius: 999px;
  background: var(--blue-glow); color: var(--white); border: none;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--blue-soft); box-shadow: 0 0 24px rgba(124,58,237,0.5); }

.btn-ghost {
  font-family: var(--mono); font-size: var(--text-xs); letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.85rem 2rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(124,58,237,0.15); border-color: var(--blue-glow); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem;
}
.footer-logo { font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.38em; color: var(--white); }
.footer-tagline { font-size: var(--text-sm); font-style: italic; color: var(--muted); text-align: center; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.footer-copy { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; color: rgba(216,180,254,0.35); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  nav { padding: 0.75rem 1.25rem; min-height: 66px; }
  .logo-img { width: 52px; height: 52px; }
  .nav-logo-name { font-size: 0.9rem; }
  .nav-right { gap: 0.75rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-right { align-items: center; }
  .footer-logo { display: none; }
}

@media (max-width: 480px) {
  nav { padding: 0.65rem 1rem; min-height: 62px; }
  .logo-img { width: 46px; height: 46px; }
  .nav-logo-name { font-size: 0.82rem; letter-spacing: 0.25em; }
  .nav-logo-sub { display: none; }
  .lang-toggle { padding: 2px; }
  .lang-btn { padding: 0.28rem 0.65rem; font-size: 0.62rem; }
  body { font-size: clamp(1rem, 3vw, 1.1rem); }
}
