/* WabiFace LP — dark navy + gold flake palette */
:root {
  --bg: #0b0e16;
  --bg-soft: #131826;
  --bg-card: #1a2030;
  --gold: #d4af37;
  --gold-soft: #e8c869;
  --gold-dim: rgba(212, 175, 55, 0.4);
  --ink: #f5f1e8;
  --ink-mute: #a8a59a;
  --line: rgba(212, 175, 55, 0.18);
  --serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; display: block; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }
.nav nav { display: flex; gap: 32px; align-items: center; }
.nav nav a { font-size: 14px; font-weight: 400; color: var(--ink-mute); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.lang {
  border: 1px solid var(--gold-dim); padding: 6px 14px;
  border-radius: 20px; color: var(--gold);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 32px 80px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212, 175, 55, 0.08), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(120, 80, 40, 0.06), transparent 55%);
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 600px;
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300; line-height: 1.1;
  margin-bottom: 28px; letter-spacing: -0.01em;
}
.lead {
  font-size: 18px; color: var(--ink-mute);
  margin-bottom: 40px; max-width: 520px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-primary, .btn-secondary {
  padding: 14px 28px; border-radius: 4px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  transition: all .25s ease; display: inline-block;
}
.btn-primary { background: var(--gold); color: #0b0e16; }
.btn-primary:hover { background: var(--gold-soft); color: #0b0e16; transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--gold-dim); color: var(--ink); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-meta { font-size: 13px; color: var(--ink-mute); }

.hero-faces {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 50%; height: 600px; z-index: 1; pointer-events: none;
}
.hf {
  position: absolute; border-radius: 50%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(212, 175, 55, 0.1);
}
.hf-1 { width: 320px; height: 320px; right: 100px; top: 40px; }
.hf-2 { width: 220px; right: 280px; top: 280px; opacity: 0.85; }
.hf-3 { width: 180px; right: 40px; top: 320px; opacity: 0.75; }
.hf-video {
  overflow: hidden;
  background: #000;
}
.hf-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* === Kanji of the day === */
.kanji-today {
  text-align: center;
  max-width: 1100px;
}
.kanji-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 18px;
}
.kanji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 28px;
}
.kanji-tile {
  padding: 32px 12px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  text-align: center;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.kanji-tile:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 24px rgba(212, 175, 55, 0.08);
}
.kanji-tile.is-today {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-dim), 0 16px 40px rgba(0,0,0,0.5), 0 0 32px rgba(212, 175, 55, 0.18);
}
.kanji-tile-glyph {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}
.kanji-tile-romaji {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.kanji-tile-reading {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.kanji-tile-meaning {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  font-style: italic;
}
.kanji-note {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-top: 8px;
  font-style: italic;
}
@media (max-width: 880px) {
  .kanji-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .kanji-tile { padding: 24px 6px 18px; }
  .kanji-tile-glyph { font-size: 48px; margin-bottom: 10px; }
  .kanji-tile-romaji { font-size: 14px; }
  .kanji-tile-reading { font-size: 11px; }
  .kanji-tile-meaning { font-size: 10px; }
}
@media (max-width: 560px) {
  .kanji-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kanji-tile { padding: 28px 12px 22px; }
  .kanji-tile-glyph { font-size: 56px; }
  .kanji-tile-romaji { font-size: 16px; }
  .kanji-tile-reading { font-size: 12px; }
  .kanji-tile-meaning { font-size: 11px; }
}

/* === Section common === */
section { padding: 100px 32px; max-width: 1200px; margin: 0 auto; }
section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; text-align: center;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-sub {
  text-align: center; color: var(--ink-mute);
  margin-bottom: 56px; font-size: 16px;
}

/* === Featured grid === */
.grid { display: grid; gap: 24px; }
.grid-featured { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: 6px; color: var(--gold);
}
.card-body p { font-size: 14px; color: var(--ink-mute); }

/* === All faces === */
.all-faces { background: var(--bg-soft); max-width: none; }
.all-faces > h2, .all-faces > .section-sub,
.all-faces > .grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.grid-all { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.face {
  text-align: center;
  transition: transform .25s ease;
}
.face:hover { transform: translateY(-2px); }
.face img {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.face span { font-size: 12px; color: var(--ink-mute); display: block; }

/* === Story === */
.story { max-width: 760px; text-align: center; }
.story p {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  color: var(--ink); margin-bottom: 24px; line-height: 1.7;
}
.story-sign { color: var(--gold) !important; font-style: italic; margin-top: 32px !important; }

/* === How it works === */
.how { max-width: 1000px; }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.step {
  text-align: center; padding: 32px 24px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-card);
}
.step-num {
  font-family: var(--serif); font-size: 36px;
  color: var(--gold); display: block; margin-bottom: 12px;
}
.step h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: 12px;
}
.step p { color: var(--ink-mute); font-size: 14px; }

/* === Waitlist === */
.waitlist {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  max-width: none; text-align: center;
}
.waitlist > h2, .waitlist > p, .waitlist > form { max-width: 600px; margin-left: auto; margin-right: auto; }
.waitlist > p { color: var(--ink-mute); margin-bottom: 32px; }
.waitlist-form {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 16px;
}
.waitlist-form input[type="email"] {
  flex: 1; min-width: 240px;
  padding: 14px 18px; font-size: 15px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink); font-family: var(--sans);
}
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.waitlist-form button {
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em; background: var(--gold); color: #0b0e16;
  border: none; border-radius: 4px; cursor: pointer;
  font-family: var(--sans); transition: background .2s ease;
}
.waitlist-form button:hover { background: var(--gold-soft); }
.form-note { font-size: 12px; color: var(--ink-mute); }

/* === FAQ === */
.faq { max-width: 800px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
.faq summary {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  cursor: pointer; list-style: none; padding-right: 32px; position: relative;
}
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: -2px;
  color: var(--gold); font-size: 24px; transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-mute); margin-top: 12px; font-size: 15px; }

/* === Footer === */
footer {
  background: #06080d; padding: 60px 32px 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col .logo { font-size: 22px; margin-bottom: 8px; }
.footer-tag { color: var(--ink-mute); font-size: 13px; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--ink-mute);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--ink); }
.copyright {
  text-align: center; font-size: 12px; color: var(--ink-mute);
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* === Legal pages === */
.legal {
  max-width: 760px; padding: 140px 32px 80px;
  font-size: 15px; line-height: 1.8;
}
.legal h1 {
  font-family: var(--serif); font-size: 42px; font-weight: 400;
  margin-bottom: 8px;
}
.legal .meta { color: var(--ink-mute); font-size: 13px; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  text-align: left; margin: 40px 0 16px; color: var(--gold);
}
.legal p { margin-bottom: 16px; color: var(--ink); }
.legal ul { margin: 16px 0 16px 24px; }
.legal li { margin-bottom: 8px; color: var(--ink); }
.legal a { color: var(--gold); text-decoration: underline; }

/* === Responsive === */
@media (max-width: 880px) {
  .hero {
    padding: 110px 24px 60px;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-faces {
    position: relative; right: auto; top: auto; transform: none;
    width: 100%; height: 320px;
    margin-top: 48px;
  }
  .hf-1 { width: 200px; height: 200px; right: auto; left: 50%; top: 20px; transform: translateX(-50%); }
  .hf-2 { width: 120px; height: 120px; right: 12%; top: 170px; }
  .hf-3 { width: 100px; height: 100px; left: 12%; right: auto; top: 190px; }
  .nav-inner { padding: 16px 20px; }
  .nav nav { gap: 18px; }
  .nav nav a { font-size: 13px; }
  section { padding: 70px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .nav nav a:not(.lang) { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .grid-all { grid-template-columns: repeat(2, 1fr); }
  .hero-faces { height: 280px; margin-top: 40px; }
  .hf-1 { width: 170px; height: 170px; top: 0; }
  .hf-2 { width: 100px; height: 100px; right: 8%; top: 140px; }
  .hf-3 { width: 84px; height: 84px; left: 8%; top: 160px; }
}
