/* =============================================
   KODE-X — MASTER STYLESHEET
   Dark neon, anime-cinematic, gaming-grade
   ============================================= */

/* --- RESET & ROOT --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #030508;
  --dark: #080c12;
  --dark2: #0d1117;
  --dark3: #111820;
  --border: rgba(255,255,255,0.07);
  --text: #e0e8f0;
  --text-muted: #7a8a9a;
  --accent: #00f5ff;
  --accent2: #c84bff;
  --gold: #ffd700;
  --red: #ff3a3a;
  --green: #00ff88;

  --font-head: 'Orbitron', 'Noto Sans JP', monospace;
  --font-body: 'Rajdhani', 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --glow-size: 60px;
  
  scroll-behavior: smooth;
}

html { font-size: 16px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #00f5ff44; border-radius: 4px; }

/* --- PARTICLES CANVAS --- */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* --- TRANSLATE BAR --- */
#translate-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(3,5,8,0.95);
  border-bottom: 1px solid rgba(0,245,255,0.15);
  backdrop-filter: blur(10px);
  padding: 6px 20px;
}
.translate-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.translate-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  white-space: nowrap;
}
#google_translate_element { display: none; }
.lang-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.lang-pill {
  background: rgba(0,245,255,0.06);
  border: 1px solid rgba(0,245,255,0.2);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-pill:hover {
  background: rgba(0,245,255,0.15);
  color: var(--accent);
  border-color: var(--accent);
}

/* --- NAVBAR --- */
#navbar {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 999;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0 20px;
}
#navbar.scrolled {
  background: rgba(3,5,8,0.97);
  box-shadow: 0 1px 0 rgba(0,245,255,0.1);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  cursor: pointer;
}
.logo-k { color: #fff; }
.logo-ode { color: var(--text-muted); }
.logo-x {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-cta {
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 4px;
}
.nav-links a.nav-cta:hover {
  background: var(--accent);
  color: var(--black);
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* --- CONTAINER --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* --- SECTION LABELS / TITLES --- */
.section-label {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.8;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 60px;
}

/* ============================
   HERO SECTION
   ============================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.4), transparent);
  animation: scanline 6s linear infinite;
  z-index: 0;
}
@keyframes scanline { to { top: 110%; } }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.7;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.title-line1, .title-line2, .title-line3 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.0;
  display: block;
}
.title-line1 { font-size: clamp(48px, 9vw, 130px); color: #fff; }
.title-line2 {
  font-size: clamp(48px, 9vw, 130px);
  background: linear-gradient(90deg, #00f5ff, #c84bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-line3 { font-size: clamp(48px, 9vw, 130px); color: var(--gold); text-shadow: 0 0 60px rgba(255,215,0,0.4); }

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 300;
}
.hero-subtitle em { color: var(--accent); font-style: normal; }

.hero-chars-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.hero-char:hover { transform: translateY(-8px); }
.hero-char img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--col);
  box-shadow: 0 0 20px color-mix(in srgb, var(--col) 30%, transparent);
  filter: brightness(0.9) saturate(1.2);
}
.hero-char span {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--col);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f5ff, #00a0cc);
  color: #000;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,245,255,0.4);
}
.pulse-btn { animation: pulse-glow 3s ease-in-out infinite; }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(0,245,255,0.3); }
  50% { box-shadow: 0 0 50px rgba(0,245,255,0.7), 0 0 80px rgba(0,245,255,0.3); }
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.hero-tagline-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 4px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 18px;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   STORY SECTION
   ============================ */
#story {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
#story::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,75,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.story-p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.story-p strong { color: var(--text); }
.story-p.big-first::first-letter {
  float: left;
  font-family: var(--font-head);
  font-size: 72px;
  line-height: 0.7;
  margin-right: 12px;
  margin-top: 10px;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent);
}
.story-quote {
  font-family: var(--font-jp);
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: rgba(0,245,255,0.04);
  border-radius: 0 8px 8px 0;
  margin-top: 32px;
}

/* Octagon Ring */
.octagon-ring {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}
.oct-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 0 30px var(--accent);
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 50%;
  background: rgba(0,245,255,0.05);
}
.oct-node {
  position: absolute;
  top: 50%; left: 50%;
  transform:
    translate(-50%, -50%)
    rotate(var(--ang))
    translateY(-150px)
    rotate(calc(-1 * var(--ang)));
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--col);
  text-shadow: 0 0 12px var(--col);
  white-space: nowrap;
  animation: orbit-pulse 4s ease-in-out infinite;
  animation-delay: calc(var(--ang) / 360deg * -4s);
}
@keyframes orbit-pulse {
  0%,100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* VS strip */
.vs-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  flex-wrap: wrap;
}
.vs-item { text-align: center; }
.vs-bad {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
  margin-bottom: 6px;
}
.vs-good {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--green);
  text-shadow: 0 0 20px var(--green);
  margin-bottom: 6px;
}
.vs-desc { font-size: 13px; color: var(--text-muted); }
.vs-divider {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
  opacity: 0.4;
}

/* ============================
   ARCHETYPES SECTION
   ============================ */
#archetypes {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
}
#archetypes::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.3), transparent);
}

.archetype-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.archetype-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--col, #00f5ff), transparent);
}
.archetype-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.archetype-card.reverse {
  grid-template-columns: 1fr 400px;
}
.archetype-card.reverse .arch-img-wrap {
  order: 2;
}
.archetype-card.reverse .arch-content {
  order: 1;
}

.arch-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.arch-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  filter: saturate(1.1) brightness(0.95);
  transition: filter 0.3s;
}
.archetype-card:hover .arch-img { filter: saturate(1.3) brightness(1.05); }

.arch-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--col) 40%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.arch-content { padding: 8px 0; }
.arch-number {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -20px;
}
.arch-archetype {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.arch-name {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 40px currentColor;
}
.arch-power {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.arch-lore {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.arch-lore em { font-style: normal; color: var(--text); }

.arch-traits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.trait-group { display: flex; gap: 12px; align-items: flex-start; }
.trait-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  width: 48px;
  flex-shrink: 0;
  padding-top: 4px;
}
.trait-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.arch-pairs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.pair-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.pair-tag {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}
.pair-tag.attract {
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.3);
  color: var(--accent);
}
.pair-tag.clash {
  background: rgba(255,58,58,0.1);
  border: 1px solid rgba(255,58,58,0.3);
  color: var(--red);
}

.arch-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--col) 10%, transparent);
  border: 1px solid var(--col);
  color: var(--col);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.arch-book-btn:hover {
  background: var(--col);
  color: #000;
}

/* ============================
   CALCULATOR SECTION
   ============================ */
#calculator {
  padding: 120px 0;
  position: relative;
  background: var(--black);
}
#calculator::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,245,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.calc-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.calc-header { text-align: center; margin-bottom: 40px; }
.calc-icon {
  font-size: 48px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 0 30px var(--accent);
  animation: rotate-hex 8s linear infinite;
}
@keyframes rotate-hex {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.calc-header h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}
.calc-header p { font-size: 15px; color: var(--text-muted); }

.calc-field { margin-bottom: 24px; }
.calc-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.calc-field input[type="date"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  color-scheme: dark;
}
.calc-field input[type="date"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,245,255,0.1);
}
.gender-toggle { display: flex; gap: 12px; }
.gender-btn {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.gender-btn.active {
  background: rgba(0,245,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
}
.gender-btn:hover:not(.active) { border-color: rgba(255,255,255,0.3); color: var(--text); }

.calc-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #0080aa);
  border: none;
  border-radius: 8px;
  padding: 16px;
  color: #000;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  margin-top: 8px;
}
.calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,245,255,0.4);
}

/* Result */
.calc-result { margin-top: 32px; text-align: center; }
.calc-result.hidden { display: none; }
.result-flash {
  animation: flash-in 0.5s ease-out;
}
@keyframes flash-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.result-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-icon { font-size: 40px; margin-bottom: 8px; }
.result-name {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.result-archetype {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-power {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.result-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.result-img-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid currentColor;
}
.result-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Lore panel */
.calc-lore {
  padding: 8px 0;
}
.calc-lore h4 {
  font-family: var(--font-head);
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}
.calc-lore p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.calc-lore-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lore-stat { text-align: center; flex: 1; }
.lore-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
}
.lore-txt { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

/* ============================
   COACHES SECTION
   ============================ */
#coaches {
  padding: 120px 0;
  background: var(--dark);
}
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.coach-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.coach-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.coach-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 8%;
  transition: transform 0.4s;
}
.coach-card:hover .coach-img-wrap img { transform: scale(1.04); }
.coach-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: color-mix(in srgb, var(--col) 15%, rgba(0,0,0,0.8));
  border: 1px solid var(--col);
  color: var(--col);
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 3px;
  padding: 5px 12px;
  border-radius: 20px;
}
.coach-content { padding: 28px; }
.coach-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.coach-code {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.coach-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.coach-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.coach-specialties span {
  font-size: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--text-muted);
}
.coach-cta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,245,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.coach-cta:hover { border-color: var(--accent); }

/* ============================
   BOOKS SECTION
   ============================ */
#books {
  padding: 120px 0;
  background: var(--black);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.book-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.book-card:hover {
  border-color: var(--col);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px color-mix(in srgb, var(--col) 15%, transparent);
}
.book-cover-wrap { position: relative; }
.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.book-char-img {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 90%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.85) saturate(1.2);
  transition: filter 0.3s;
}
.book-card:hover .book-char-img { filter: brightness(1) saturate(1.4); }
.book-title-overlay {
  position: absolute;
  top: 16px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px #000;
  line-height: 1.3;
  z-index: 2;
}
.book-title-overlay span {
  display: block;
  font-size: 22px;
  color: var(--col);
  text-shadow: 0 0 20px var(--col);
}
.book-info { padding: 20px; }
.book-name {
  font-family: var(--font-head);
  font-size: 13px;
  color: #fff;
  margin-bottom: 8px;
}
.book-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.book-dl-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: color-mix(in srgb, var(--col) 10%, transparent);
  border: 1px solid var(--col);
  color: var(--col);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.book-dl-btn:hover {
  background: var(--col);
  color: #000;
}

/* ============================
   AFFILIATE SECTION
   ============================ */
#affiliate {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
}
#affiliate::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.aff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.aff-sub-title {
  font-family: var(--font-head);
  font-size: 28px;
  color: #fff;
  margin-bottom: 32px;
}
.aff-options { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
.aff-option {
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.aff-opt-icon { font-size: 28px; margin-bottom: 8px; }
.aff-option h4 {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 12px;
}
.aff-option p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.aff-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.aff-list li { font-size: 14px; color: var(--text-muted); }

.aff-creator {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255,215,0,0.03);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius);
}
.creator-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.creator-name {
  font-family: var(--font-head);
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.creator-title {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.aff-creator-text p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Form */
.aff-form-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}
.aff-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), transparent);
}
.aff-form-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}
.aff-form-card > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,245,255,0.1);
}
.form-field select { color: var(--text); cursor: pointer; }
.form-field select option { background: #111; }
.btn-primary.full-width { width: 100%; justify-content: center; margin-top: 8px; }

.form-success {
  text-align: center;
  padding: 32px;
}
.form-success.hidden { display: none; }
.success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0,255,136,0.1);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success h4 { font-family: var(--font-head); font-size: 20px; color: #fff; margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--text-muted); }

/* ============================
   FOOTER
   ============================ */
#footer {
  padding: 80px 0 40px;
  background: var(--dark2);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 320px;
}
.footer-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}
.footer-links h4,
.footer-types h4 {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links ul,
.footer-types ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-types a {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-types a:hover { color: var(--accent); }

.footer-book-call {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px;
  margin: 8px 0 32px;
  background: linear-gradient(135deg, rgba(0,245,255,0.06), rgba(200,75,255,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.footer-book-call-text h4 {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #fff;
}
.footer-book-call-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
}
.footer-book-call-text p a,
.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}
.footer-book-call-text p a:hover,
.footer-copy a:hover { text-decoration: underline; }
.footer-book-call-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-ip-notice {
  padding: 28px 32px;
  margin: 8px 0 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.footer-ip-notice h4 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-ip-notice p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  max-width: 900px;
}
.footer-ip-notice p strong { color: rgba(255,255,255,0.65); }
.footer-ip-list-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 8px !important;
}
.footer-ip-list {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.footer-ip-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  position: relative;
  padding-left: 14px;
}
.footer-ip-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 8px;
  top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  color: rgba(255,255,255,0.1);
  letter-spacing: 3px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1200px) {
  .archetype-card,
  .archetype-card.reverse {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
  .arch-img { height: 380px; }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  
  .story-grid { grid-template-columns: 1fr; }
  .octagon-ring { display: none; }
  
  .archetype-card,
  .archetype-card.reverse {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .archetype-card.reverse .arch-img-wrap { order: 0; }
  .archetype-card.reverse .arch-content { order: 0; }
  .arch-img { height: 320px; }
  
  .calc-wrapper { grid-template-columns: 1fr; }
  .coaches-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .aff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  #hero { padding-top: 140px; }
  .hero-chars-strip { gap: 8px; }
  .hero-char img { width: 56px; height: 56px; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .translate-inner { gap: 8px; }
  .lang-pills { display: none; }
  .footer-book-call { flex-direction: column; text-align: center; padding: 24px; }
  .footer-book-call-text p { max-width: 100%; }
  .footer-ip-notice { padding: 20px; }
  .footer-ip-list { grid-template-columns: repeat(2, auto); }
}

/* ============================
   SIGNS CAROUSEL (GALLERY)
   ============================ */
#gallery {
  padding: 120px 0 140px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
#gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  opacity: 0.4;
}
.carousel-wrap {
  position: relative;
  margin-top: 40px;
}
.carousel-track-outer {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}
.carousel-track-outer::before,
.carousel-track-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}
.carousel-track-outer::before {
  left: 0;
  background: linear-gradient(90deg, var(--black), transparent);
}
.carousel-track-outer::after {
  right: 0;
  background: linear-gradient(270deg, var(--black), transparent);
}
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: carousel-scroll 40s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-slide {
  position: relative;
  width: 260px;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.4s, border-color 0.4s;
}
.carousel-slide:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--slide-col, var(--accent));
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 10%, transparent 100%);
}
.carousel-slide-arche {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--slide-col, var(--accent));
  text-transform: uppercase;
  margin-bottom: 4px;
}
.carousel-slide-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.carousel-slide-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px var(--slide-col, var(--accent));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.carousel-slide:hover .carousel-slide-glow { opacity: 0.35; }

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .carousel-slide { width: 180px; height: 260px; }
  .carousel-track-outer::before,
  .carousel-track-outer::after { width: 60px; }
}

/* ============================
   NEW SIGNS BOOK SECTION
   ============================ */
#new-signs-book {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--black) 0%, #0a0612 50%, var(--black) 100%);
  position: relative;
}
.book-feature-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
.book-feature-cover-wrap {
  position: relative;
}
.book-feature-link {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s, box-shadow 0.4s;
}
.book-feature-link:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(200,75,255,0.25);
}
.book-feature-cover {
  width: 100%;
  display: block;
}
.book-feature-download-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent2);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 8px 14px;
  border-radius: 100px;
}
.book-feature-content h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  margin-bottom: 18px;
  font-weight: 900;
}
.book-feature-content p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.book-feature-content p strong { color: var(--text); }
.book-feature-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .book-feature-grid { grid-template-columns: 1fr; }
  .book-feature-cover-wrap { max-width: 340px; margin: 0 auto; }
}

/* ============================
   ANIMATIONS & UTILS
   ============================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s ease-out both; }

/* Neon line decoration */
.section-neon-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 0 auto 40px;
  border-radius: 2px;
}
