/* ══════════════════════════════════════════════════════
   YomiNinja — Styles
   Theme: Ink on Obsidian
   Fonts: Fraunces (display) · Outfit (body) · IBM Plex Mono (code)
   Accent: #c62828 (OCR red)
══════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg:          #090909;
  --surface-1:   #0f0f11;
  --surface-2:   #161619;
  --surface-3:   #1d1d22;
  --border:      #242429;
  --border-soft: #1a1a1f;

  --accent:      #c62828;
  --accent-dim:  rgba(198, 40, 40, 0.12);
  --accent-glow: rgba(198, 40, 40, 0.06);
  --accent-line: rgba(198, 40, 40, 0.4);

  --text-primary:   #e8e3d8;
  --text-secondary: #8c8899;
  --text-muted:     #4e4c5a;
  --text-code:      #a0aec0;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-jp:      'Noto Sans JP', sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --nav-h: 64px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 3px; color: var(--text-code); }
strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

/* ─── FOCUS ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  transition: all 0.18s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}
.btn-primary:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(198,40,40,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--surface-2);
}
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-glow);
}
.btn-nav {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
}
.btn-nav:hover {
  background: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,40,40,0.3);
}
.btn-platform {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.55rem 1.2rem;
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s var(--ease-out);
}
.btn-platform:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-glow);
}
.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1.0625rem;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  transition: gap 0.15s var(--ease-out);
}
.link-arrow:hover { gap: 0.5rem; }

/* ─── TYPOGRAPHY HELPERS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }

/* ─── SECTION SPACING ─── */
.section {
  padding: 6rem 0;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav-header.scrolled {
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo-kanji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-jp);
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.2s;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
  overflow: hidden;
}

/* Background kanji watermark */
.hero-bg-kanji {
  position: absolute;
  top: -2rem;
  right: -4rem;
  font-family: var(--font-jp);
  font-size: 8rem;
  line-height: 1.1;
  letter-spacing: 0.3em;
  word-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  user-select: none;
  width: 60%;
  text-align: right;
  word-break: break-all;
  z-index: 0;
}

/* Subtle gradient from top */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198,40,40,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Hero text */
.hero-text { max-width: 560px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(198,40,40,0); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
h1 em {
  font-style: italic;
  color: rgba(232, 227, 216, 0.65);
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-description strong { color: var(--text-primary); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── ANIMATED OCR DEMO ─── */
.hero-demo {
  position: relative;
}
.demo-window {
  background: #0d1117;
  border: 1px solid #2a2a3a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 24px 80px rgba(0,0,0,0.6),
    0 8px 24px rgba(0,0,0,0.4);
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #13141a;
  border-bottom: 1px solid #1e1e2a;
}
.demo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.demo-dot.red    { background: #ff5f57; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green  { background: #28c840; }
.demo-title-text {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4a4a5e;
  letter-spacing: 0.03em;
}

.demo-content {
  padding: 1.5rem;
  min-height: 240px;
  background: linear-gradient(180deg, #10141e 0%, #0d1117 100%);
}
.demo-scene { position: relative; }

.demo-dialogue {
  background: rgba(10,12,18,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
}
.demo-speaker {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: #5a7a9a;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}
.demo-text-line {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  color: #d0cbbf;
  line-height: 1.8;
  letter-spacing: 0.08em;
}
.demo-line-2 { margin-top: 0.2rem; }

/* Target word highlight */
.target-word {
  color: #e8e3d8;
  position: relative;
  transition: background 0.2s;
}

/* OCR bounding boxes */
.demo-bbox {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 2px;
  pointer-events: none;
}
.demo-bbox-1 {
  top: 10px; left: 0; right: 0; height: 36px;
  animation: bbox-anim 9s ease-in-out infinite;
}
.demo-bbox-2 {
  top: 46px; left: 0; width: 65%; height: 36px;
  animation: bbox-anim 9s ease-in-out infinite;
  animation-delay: 0.15s;
}
@keyframes bbox-anim {
  0%, 5%   { opacity: 0; transform: scaleX(0); transform-origin: left; }
  18%, 70% { opacity: 1; transform: scaleX(1); }
  85%, 100%{ opacity: 0; }
}

/* Cursor */
.demo-cursor {
  position: absolute;
  bottom: 28px;
  left: 78px;
  animation: cursor-anim 9s ease-in-out infinite;
  z-index: 5;
}
@keyframes cursor-anim {
  0%, 25%  { opacity: 0; transform: translate(30px, 20px); }
  40%, 80% { opacity: 1; transform: translate(0, 0); }
  95%, 100%{ opacity: 0; transform: translate(-10px, -10px); }
}

/* Yomitan popup */
.demo-popup {
  position: absolute;
  bottom: 62px;
  left: 0;
  right: 0;
  background: #16161e;
  border: 1px solid #2e2e3e;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: popup-anim 9s ease-in-out infinite;
  z-index: 4;
}
@keyframes popup-anim {
  0%, 38%  { opacity: 0; transform: translateY(6px); }
  50%, 75% { opacity: 1; transform: translateY(0); }
  88%, 100%{ opacity: 0; transform: translateY(-4px); }
}
.popup-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a3a;
}
.popup-kanji {
  font-family: var(--font-jp);
  font-size: 1.3rem;
  color: #e8e3d8;
  font-weight: 400;
}
.popup-reading {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: #7a95b0;
}
.popup-defs { margin-bottom: 0.5rem; }
.popup-def {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #a0a0b8;
  line-height: 1.5;
  font-family: var(--font-body);
}
.popup-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.popup-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.popup-tag {
  padding: 0.15rem 0.45rem;
  background: rgba(198,40,40,0.12);
  border: 1px solid rgba(198,40,40,0.2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.popup-freq {
  font-size: 0.72rem;
  color: #4a8a4a;
  margin-left: auto;
}

/* Status bar */
.demo-statusbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #0d0f14;
  border-top: 1px solid #1a1a24;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #3a3a4e;
}
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a4e;
}
.status-indicator.active {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40,200,64,0.5);
}
.status-text { color: #4a4a5e; }
.status-engine { margin-left: auto; }

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: scroll-cue-fade 2s ease-in-out infinite;
}
@keyframes scroll-cue-fade {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.7; transform: translateX(-50%) translateY(4px); }
}
.scroll-dot {
  animation: scroll-dot-move 2s ease-in-out infinite;
}
@keyframes scroll-dot-move {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   WHAT IS SECTION
═══════════════════════════════════════════════ */
.what-is {
  background: var(--surface-1);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.what-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.what-is-text h2 { margin-bottom: 1.25rem; text-align: left; }
.what-is-text p {
  color: var(--text-secondary);
  font-size: 1.0rem;
  margin-bottom: 1rem;
}
.what-is-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 0.5rem;
}
.stat-card {
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-num span {
  font-size: 1.5rem;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Connecting line */
.steps-list::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 44px;
  bottom: 44px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-line), transparent);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  width: 64px;
  text-align: center;
  padding-top: 0.25rem;
  position: relative;
}
.step-num::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 0.4rem;
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.step-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
}
.step-body p { color: var(--text-secondary); font-size: 0.9375rem; }

/* Step visual boxes */
.step-visual { display: flex; align-items: center; }
.step-vis-box {
  width: 120px;
  height: 80px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.step-vis-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.step-vis-inner {
  width: 60%;
  height: 60%;
  border: 1px dashed var(--accent-line);
  border-radius: 3px;
  position: relative;
}
.step-vis-crosshair::before,
.step-vis-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent);
  opacity: 0.6;
}
.step-vis-crosshair::before {
  top: 50%; left: 0; right: 0;
  height: 1px; transform: translateY(-50%);
}
.step-vis-crosshair::after {
  left: 50%; top: 0; bottom: 0;
  width: 1px; transform: translateX(-50%);
}

.step-vis-ocr .step-vis-line {
  position: absolute;
  left: 16px; right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: scan-line 2s ease-in-out infinite;
}
.step-vis-ocr .step-vis-line.short { top: 55%; width: 55%; right: auto; }
.step-vis-ocr .step-vis-line:first-child { top: 38%; }
@keyframes scan-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}
.step-vis-bbox {
  position: absolute;
  inset: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  animation: bbox-pulse 2s ease-in-out infinite;
}
@keyframes bbox-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; box-shadow: 0 0 8px rgba(198,40,40,0.3); }
}

.step-vis-popup {
  flex-direction: column;
  gap: 0;
  padding: 0.75rem;
  width: 130px;
  height: auto;
  align-items: flex-start;
}
.step-vis-popup-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step-vis-kanji {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  color: var(--text-primary);
}
.step-vis-read {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: #5a7a9a;
}

.how-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════ */
.features { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-left-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-left-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.6rem; font-size: 1rem; }
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.feature-link {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.15s;
}
.feature-link:hover { opacity: 0.75; }
.features-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════
   PERSONAS
═══════════════════════════════════════════════ */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.persona-card {
  padding: 2rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.persona-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.persona-glyph {
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  font-family: var(--font-jp);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.persona-card h3 {
  margin-bottom: 0.75rem;
  position: relative;
}
.persona-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  position: relative;
}
.persona-tools {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}
.persona-tools li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.persona-tools li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   PLATFORMS
═══════════════════════════════════════════════ */
.platforms {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.platform-card {
  padding: 2rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.platform-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.platform-card svg {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.platform-card h3 { margin-bottom: 0.6rem; }
.platform-card > p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.platform-reqs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.platform-reqs li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 0.75rem;
  border-left: 1.5px solid var(--border);
}

/* ═══════════════════════════════════════════════
   COMMUNITY
═══════════════════════════════════════════════ */
.community { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.quote-card {
  padding: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius);
  position: relative;
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(198,40,40,0.1);
  pointer-events: none;
}
.quote-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}
.quote-card footer cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.community-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.community-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.community-link:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-kanji-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-jp);
  font-size: 24rem;
  line-height: 1;
  color: rgba(255,255,255,0.012);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.cta-inner > p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cta-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.cta-meta a { color: var(--text-muted); border-bottom: 1px dotted; transition: color 0.15s; }
.cta-meta a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 1rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.footer-nav h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  border-bottom: 1px dotted;
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-text { max-width: 100%; }
  .hero-demo { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-bg-kanji { font-size: 5rem; opacity: 0.5; }

  .what-is-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .personas-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }

  .step {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
  }
  .step-visual { display: none; }
  .steps-list::before { left: 23px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(9,9,9,0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    z-index: 99;
  }
  .nav-links.open a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 640px) {
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ─── PRINT ─── */
@media print {
  .nav-header, .hero-scroll-cue, .demo-window { display: none; }
  body { background: white; color: black; }
}

/* ══════════════════════════════════════════════════════
   INNER PAGES — shared components
══════════════════════════════════════════════════════ */

/* ─── SCREEN-READER ONLY ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─── BREADCRUMB ─── */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb [aria-current="page"] { color: var(--text-secondary); }

/* ─── PAGE HERO ─── */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 0;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero-content {
  padding-bottom: 3rem;
  max-width: 720px;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-hero-sub {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 580px;
}

/* ─── NARROW CONTAINER ─── */
.container-narrow { max-width: 760px; }

/* ─── REQUIREMENTS TABLE ─── */
.req-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem; margin-top: 0.75rem;
}
.req-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.req-table td:first-child {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); width: 180px;
  white-space: nowrap;
}
.req-table td:last-child { color: var(--text-secondary); }
.req-table tr:last-child td { border-bottom: none; }

/* ─── NOTE BOXES ─── */
.note-box {
  margin-top: 1rem; padding: 0.85rem 1rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.6;
}
.note-box strong { color: var(--text-primary); display: block; margin-bottom: 0.25rem; }
.note-box code { font-size: 0.8rem; }
.note-warning { border-left-color: #f59e0b; }
.note-warning strong { color: #fbbf24; }

/* ─── INSTALL LIST ─── */
.install-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.75rem; }
.install-list li {
  display: flex; gap: 1rem; align-items: flex-start;
}
.install-num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: 50%; font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--accent); margin-top: 2px;
}
.install-list strong { display: block; font-size: 0.9375rem; margin-bottom: 0.3rem; }
.install-list p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin: 0; }
.install-list a { color: var(--accent); }

/* ─── PRE / CODE BLOCKS ─── */
pre {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-code); overflow-x: auto;
  margin: 0.5rem 0; line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   DOWNLOAD PAGE
══════════════════════════════════════════════════════ */
.download-platforms { padding-top: 3.5rem; }
.dl-platform-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dl-platform-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dl-platform-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-secondary);
  flex-shrink: 0;
}
.dl-platform-header h2 {
  font-size: 1.25rem; margin-bottom: 0.1rem;
}
.dl-platform-sub {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.dl-btn { margin-left: auto; flex-shrink: 0; }
.dl-platform-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; padding: 2rem;
}
.dl-platform-body h3 {
  font-size: 0.875rem; font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ─── BUNDLED SECTION ─── */
.bundled { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.bundled-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bundled-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bundled-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); color: var(--accent);
}
.bundled-item h3 { font-size: 0.9375rem; margin-bottom: 0.3rem; }
.bundled-item p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.55; margin: 0; }

/* ─── VERIFY SECTION ─── */
.verify p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.verify a { color: var(--accent); }
.verify-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ─── NEXT STEPS ─── */
.next-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.next-card {
  display: block; padding: 1.75rem;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.next-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.next-num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); display: block; margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}
.next-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.next-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin: 0 0 1rem; }
.next-arrow {
  font-size: 0.9rem; color: var(--accent);
  position: absolute; bottom: 1.25rem; right: 1.5rem;
}

/* ══════════════════════════════════════════════════════
   FAQ PAGE
══════════════════════════════════════════════════════ */
.faq-layout {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 4rem; align-items: start;
}
.faq-sidebar {
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.faq-sidebar ul { display: flex; flex-direction: column; gap: 0.2rem; }
.faq-sidebar a {
  display: block; padding: 0.45rem 0.75rem;
  font-size: 0.875rem; color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}
.faq-sidebar a:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  border-left-color: var(--accent-line);
}

.faq-group { margin-bottom: 3.5rem; }
.faq-group > h2 {
  font-size: 0.75rem; font-family: var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border-soft);
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 0;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-primary); margin: 0;
  line-height: 1.4;
}
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; color: var(--text-muted);
  flex-shrink: 0; transition: transform 0.2s, color 0.2s;
  font-weight: 300; line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg); color: var(--accent);
}
.faq-item[open] summary h3 { color: var(--text-primary); }

.faq-answer {
  padding: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text-primary); }
.faq-answer a { color: var(--accent); }
.faq-answer ul, .faq-answer ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.faq-answer ul { list-style: disc; }
.faq-answer ol { list-style: decimal; }
.faq-answer kbd {
  display: inline-block; padding: 0.15em 0.45em;
  background: var(--surface-3); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.8em;
  color: var(--text-secondary);
}

.faq-cta {
  padding: 2.5rem;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
  margin-top: 1rem;
}
.faq-cta h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.faq-cta p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.faq-cta-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════ */
.about-cols {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: start;
}
.about-text h2 { margin-bottom: 1.25rem; text-align: left; }
.about-text p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1rem; line-height: 1.75; }
.about-text strong { color: var(--text-primary); }

.about-kanji-display {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.about-kanji-big {
  font-family: var(--font-jp); font-size: 8rem; font-weight: 300;
  color: rgba(255,255,255,0.07); line-height: 1;
  user-select: none;
}
.about-kanji-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Developer card */
.about-dev { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.about-dev h2 { margin-bottom: 1.5rem; }
.about-dev p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1rem; }
.about-dev a { color: var(--accent); }

.dev-card {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dev-avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.25rem;
  color: #fff; font-weight: 300; text-transform: uppercase;
}
.dev-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.dev-handle a {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted); border-bottom: 1px dotted;
  transition: color 0.15s;
}
.dev-handle a:hover { color: var(--accent); }

.about-quote {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius);
}
.about-quote p {
  font-style: italic; color: var(--text-secondary);
  font-size: 0.9375rem; margin: 0;
}

/* Timeline */
.timeline {
  display: flex; flex-direction: column;
  gap: 0; position: relative; margin-top: 1.5rem;
}
.timeline::before {
  content: ''; position: absolute;
  left: 80px; top: 20px; bottom: 20px;
  width: 1px; background: linear-gradient(to bottom, var(--accent-line), transparent);
}
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 2rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-soft); position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); text-align: right;
  padding-top: 0.2rem; letter-spacing: 0.04em;
}
.timeline-body h3 { font-size: 0.9375rem; margin-bottom: 0.4rem; }
.timeline-body p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Tech grid */
.about-tech { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tech-item {
  padding: 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.tech-item:hover { border-color: var(--accent-line); }
.tech-item h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.tech-item p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.65; margin: 0; }

/* OSS section */
.oss-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin: 1.25rem 0;
}
.oss-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: var(--text-secondary); font-size: 0.9375rem;
}
.oss-list svg { flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.oss-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.about-oss p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 0.75rem; }

/* Support */
.about-support p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.5rem; }
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.support-card {
  padding: 2rem;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.support-card h3 { margin-bottom: 0.6rem; }
.support-card > p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.support-perks {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.support-perks li {
  font-size: 0.8125rem; color: var(--text-muted);
  padding-left: 1rem; position: relative;
}
.support-perks li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

.support-other h3 { margin-bottom: 1rem; }
.contribute-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.contribute-list li {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.65;
}
.contribute-list a { color: var(--accent); }
.contribute-list strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — INNER PAGES
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bundled-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-sidebar { display: none; }
  .about-cols { grid-template-columns: 1fr; gap: 2rem; }
  .about-kanji-display { display: none; }
}

@media (max-width: 860px) {
  .dl-platform-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .dl-platform-header { flex-wrap: wrap; gap: 1rem; }
  .dl-btn { width: 100%; justify-content: center; }
  .next-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 64px; }
  .timeline-item { grid-template-columns: 64px 1fr; gap: 1.25rem; }
}

@media (max-width: 640px) {
  .bundled-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--nav-h) + 2rem); }
}

/* ══════════════════════════════════════════════════════
   ARTICLE / BLOG PAGES
══════════════════════════════════════════════════════ */

/* Article hero variation */
.article-hero .page-hero-content { max-width: 800px; }
.article-meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.article-tag {
  padding: 0.2rem 0.55rem;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: 3px; font-family: var(--font-mono);
  font-size: 0.68rem; color: var(--accent); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-date {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}

/* Article layout: TOC + body */
.article-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 4rem; align-items: start;
  padding-top: 3.5rem; padding-bottom: 3.5rem;
}

/* Table of contents */
.article-toc {
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.toc-label {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem;
}
.article-toc ol {
  display: flex; flex-direction: column;
  counter-reset: toc; gap: 0.1rem;
}
.article-toc li { counter-increment: toc; }
.article-toc a {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.35rem 0.6rem; font-size: 0.8125rem;
  color: var(--text-muted); border-radius: var(--radius-sm);
  border-left: 2px solid transparent; line-height: 1.4;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); flex-shrink: 0;
  opacity: 0.5;
}
.article-toc a:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  border-left-color: var(--accent-line);
}

/* Article body */
.article-body { max-width: 720px; }
.article-body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  margin-top: 2.5rem; margin-bottom: 1rem;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.0rem; margin-top: 1.75rem; margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.article-body p {
  color: var(--text-secondary); font-size: 0.9375rem;
  line-height: 1.8; margin-bottom: 1rem;
}
.article-body strong { color: var(--text-primary); }
.article-body a { color: var(--accent); transition: opacity 0.15s; }
.article-body a:hover { opacity: 0.8; }
.article-body em { font-style: italic; }

/* Japanese inline spans */
.jp-inline { font-family: var(--font-jp); font-size: 1.05em; }

/* Inline CTA */
.article-cta-inline {
  padding: 0.85rem 1.25rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-sm); font-size: 0.875rem;
  color: var(--text-secondary); margin-bottom: 2rem;
}
.article-cta-inline a { color: var(--accent); font-weight: 500; }

/* Lists in articles */
.article-list {
  display: flex; flex-direction: column; gap: 0.45rem;
  margin: 0.5rem 0 1rem 1.25rem;
  list-style: disc;
}
.article-list li { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.65; }

/* Numbered steps */
.article-steps {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
  counter-reset: steps;
}
.article-steps li {
  counter-increment: steps;
  display: flex; gap: 0.75rem; align-items: flex-start;
  color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6;
}
.article-steps li::before {
  content: counter(steps);
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: 50%; font-family: var(--font-mono);
  font-size: 0.65rem; color: var(--accent); margin-top: 2px;
}
.article-steps strong { color: var(--text-primary); }

/* Tip box */
.article-tip {
  padding: 0.9rem 1.1rem; margin: 1.25rem 0;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  border-left: 2px solid #fbbf24;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.65;
}
.article-tip strong { color: #fbbf24; }

/* Article tables */
.article-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.8125rem; margin: 1rem 0 1.5rem;
}
.article-table th {
  padding: 0.6rem 0.85rem; text-align: left;
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.article-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary); vertical-align: top;
  line-height: 1.5;
}
.article-table td strong { color: var(--text-primary); }
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:hover td { background: var(--surface-2); }
.table-note {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); margin-top: 0.5rem;
}
.table-scroll { overflow-x: auto; }

/* Final article CTA */
.article-cta-final {
  position: relative; overflow: hidden;
  margin-top: 3.5rem; padding: 3rem 2.5rem;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); text-align: center;
}
.article-cta-final .cta-kanji-bg {
  font-size: 16rem; opacity: 0.8;
}
.article-cta-final .section-label { justify-content: center; }
.article-cta-final h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.article-cta-final p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.article-cta-final .cta-actions { justify-content: center; }

/* Related posts */
.related-posts { background: var(--surface-1); border-top: 1px solid var(--border-soft); }
.related-posts .section-label { justify-content: flex-start; }
.related-posts h2 { text-align: left; margin-bottom: 1.75rem; }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.related-card {
  display: block; padding: 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.related-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 0.5rem;
}
.related-card h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; line-height: 1.4; }
.related-card p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.55; margin-bottom: 1.5rem; }
.related-arrow {
  position: absolute; bottom: 1.25rem; right: 1.25rem;
  font-size: 0.9rem; color: var(--accent);
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS PAGE
══════════════════════════════════════════════════════ */
.hiw-pipeline { padding-top: 3.5rem; }
.pipeline-steps { display: flex; flex-direction: column; gap: 0; }

.pipeline-step {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 2.5rem; align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.pipeline-step:last-child { border-bottom: none; }
.pipeline-step-alt { background: none; }

.pipeline-num {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; color: var(--accent);
  width: 56px; text-align: center; padding-top: 0.3rem;
  position: relative;
}
.pipeline-num::before {
  content: '';
  display: block; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
  margin: 0 auto 0.4rem;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.pipeline-content h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.pipeline-content p {
  color: var(--text-secondary); font-size: 0.9375rem;
  line-height: 1.75; margin-bottom: 0.75rem;
}
.pipeline-content p:last-child { margin-bottom: 0; }
.pipeline-content strong { color: var(--text-primary); }
.pipeline-content ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  list-style: disc; display: flex; flex-direction: column; gap: 0.3rem;
}
.pipeline-content ul li { color: var(--text-secondary); font-size: 0.9rem; }

/* Pipeline visuals */
.pipeline-visual { display: flex; align-items: flex-start; padding-top: 0.25rem; }
.vis-capture { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.vis-window {
  width: 120px; background: #0d1117;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.vis-window-bar {
  height: 8px; background: #13141a;
  border-bottom: 1px solid var(--border);
}
.vis-window-body { padding: 0.5rem; height: 60px; position: relative; }
.vis-template-box {
  position: absolute; inset: 8px 8px 16px;
  border: 1px dashed var(--accent-line);
  border-radius: 2px; background: var(--accent-glow);
}
.vis-label {
  font-family: var(--font-mono); font-size: 0.63rem;
  color: var(--text-muted); text-align: center;
  letter-spacing: 0.04em; max-width: 120px;
}

.vis-ocr {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem; min-width: 120px;
}
.vis-ocr-text {
  display: flex; gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 0.5rem 0.75rem;
}
.vis-ocr-char {
  font-family: var(--font-jp); font-size: 1.1rem;
  color: var(--text-primary);
  animation: char-appear 0.4s var(--ease-out) both;
  animation-delay: var(--delay);
}
@keyframes char-appear {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.vis-overlay {
  position: relative; width: 130px; height: 80px;
  border-radius: 6px; overflow: hidden;
}
.vis-game-layer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1421, #141830);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.vis-overlay-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(198,40,40,0.04);
}
.vis-overlay-text {
  font-family: var(--font-jp); font-size: 0.9rem;
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(198,40,40,0.5);
  border-bottom: 1px solid var(--accent-line);
}

.vis-popup {
  background: #16161e; border: 1px solid #2e2e3e;
  border-radius: var(--radius-sm); padding: 0.75rem 0.9rem;
  min-width: 130px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.vis-popup-header {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.vis-popup-kanji { font-family: var(--font-jp); font-size: 1.1rem; }
.vis-popup-read {
  font-family: var(--font-jp); font-size: 0.75rem; color: #7a95b0;
}
.vis-popup-def {
  font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.5rem;
}

/* Two-col layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.two-col p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1rem; }
.two-col strong { color: var(--text-primary); }
.hiw-vs p, .hiw-ws p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1rem; }
.hiw-vs a, .hiw-ws a { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   OCR ENGINES PAGE
══════════════════════════════════════════════════════ */
.ocr-compare { padding-top: 3.5rem; }

/* OCR comparison table extras */
.ocr-table .row-recommended td { background: rgba(198,40,40,0.04); }
.badge-rec {
  display: inline-flex; margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: 3px; font-family: var(--font-mono);
  font-size: 0.6rem; color: var(--accent); letter-spacing: 0.04em;
  vertical-align: middle;
}
.rating { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.05em; }

/* Engine sections */
.ocr-engine-section { padding: 4rem 0; }
.ocr-alt { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.engine-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}
.engine-badge {
  padding: 0.25rem 0.65rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 3px; font-family: var(--font-mono);
  font-size: 0.68rem; color: var(--text-muted);
  letter-spacing: 0.06em; white-space: nowrap;
}
.engine-badge.default { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent); }
.engine-badge.cloud { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #60a5fa; }
.engine-badge.macos { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.2); color: #c084fc; }

.engine-grid {
  display: grid; grid-template-columns: 1fr 260px;
  gap: 3rem; align-items: start;
}
.engine-body h3 {
  font-size: 0.9375rem; margin-top: 1.5rem; margin-bottom: 0.5rem;
}
.engine-body p {
  color: var(--text-secondary); font-size: 0.9375rem;
  line-height: 1.75; margin-bottom: 0.75rem;
}
.engine-body p:last-child { margin-bottom: 0; }
.engine-body strong { color: var(--text-primary); }
.engine-body a { color: var(--accent); }

.engine-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.engine-specs {
  padding: 1.25rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.engine-specs h4 {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem;
}
.engine-specs dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
}
.engine-specs dt {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); white-space: nowrap;
}
.engine-specs dd { font-size: 0.8125rem; color: var(--text-secondary); }

.engine-verdict {
  padding: 1.1rem 1.25rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 2px solid var(--border); border-radius: var(--radius);
  font-size: 0.8125rem;
}
.engine-verdict.good { border-left-color: var(--accent-line); }
.engine-verdict strong { display: block; color: var(--text-primary); margin-bottom: 0.35rem; font-size: 0.8125rem; }
.engine-verdict p { color: var(--text-secondary); line-height: 1.6; margin: 0; font-size: 0.8125rem; }

/* Decision tree */
.decision-tree {
  display: flex; flex-direction: column;
  gap: 0; margin-top: 1.5rem;
}
.decision-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.decision-item:last-child { border-bottom: none; }
.decision-q {
  font-size: 0.9375rem; color: var(--text-primary);
  font-weight: 500; margin-bottom: 0.4rem;
}
.decision-a {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6;
}
.decision-tag {
  color: var(--accent); font-weight: 600; margin-right: 0.25rem;
}
.decision-a strong { color: var(--text-primary); }

.ocr-gpu p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 0.75rem; }
.ocr-gpu strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — PHASE 3
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { display: none; }
  .article-body { max-width: 100%; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .engine-grid { grid-template-columns: 1fr; }
  .engine-sidebar { flex-direction: row; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .pipeline-step { grid-template-columns: auto 1fr; }
  .pipeline-visual { display: none; }
}

@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
  .engine-sidebar { flex-direction: column; }
  .pipeline-step { gap: 1.5rem; }
}

@media (max-width: 640px) {
  .article-layout { padding-top: 2rem; padding-bottom: 2rem; }
  .article-body h2 { font-size: 1.25rem; }
  .article-cta-final { padding: 2rem 1.5rem; }
}

/* ══════════════════════════════════════════════════════
   FEATURES PAGE
══════════════════════════════════════════════════════ */
.feat-section { padding: 4rem 0; }
.feat-alt {
  background: var(--surface-1);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.feat-section-header {
  max-width: 680px; margin-bottom: 3rem;
}
.feat-section-header h2 { margin-bottom: 0.75rem; text-align: left; }
.feat-section-header p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.feat-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feat-detail-card {
  padding: 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 2px solid transparent; border-radius: var(--radius);
  transition: border-left-color 0.2s, transform 0.2s;
}
.feat-detail-card:hover {
  border-left-color: var(--accent);
  transform: translateY(-2px);
}
.feat-detail-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); color: var(--accent);
  margin-bottom: 0.9rem;
}
.feat-detail-card h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.feat-detail-card p {
  color: var(--text-secondary); font-size: 0.8125rem;
  line-height: 1.65; margin-bottom: 0.75rem;
}
.feat-detail-card p:last-of-type { margin-bottom: 0; }
.feat-detail-card a { color: var(--accent); }

@media (max-width: 1024px) { .feat-detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feat-detail-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   CHANGELOG PAGE
══════════════════════════════════════════════════════ */
.changelog-section { padding-top: 3rem; }
.cl-current {
  background: var(--surface-1);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.cl-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.cl-entry:last-of-type { border-bottom: none; }
.cl-version-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.cl-version-info { display: flex; align-items: center; gap: 0.6rem; }
.cl-version-num {
  font-family: var(--font-mono); font-size: 1.0rem;
  color: var(--text-primary); font-weight: 500;
}
.cl-version-badge {
  padding: 0.15rem 0.5rem;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: 3px; font-family: var(--font-mono);
  font-size: 0.65rem; color: var(--accent);
  letter-spacing: 0.06em;
}
.cl-version-badge.minor {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  color: #60a5fa;
}
.cl-version-date {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.cl-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.cl-list li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6;
}
.cl-list li::before {
  display: inline-block; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.65rem;
  margin-top: 3px; padding: 0.1rem 0.4rem;
  border-radius: 3px; letter-spacing: 0.04em;
}
.cl-feat::before {
  content: 'new';
  background: rgba(59,130,246,0.1); color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.cl-fix::before {
  content: 'fix';
  background: rgba(34,197,94,0.08); color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}
.cl-list strong { color: var(--text-primary); }
.cl-gh-link {
  display: inline-block; margin-top: 0.75rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); border-bottom: 1px dotted;
  transition: color 0.15s;
}
.cl-gh-link:hover { color: var(--accent); }
.cl-github-link {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cl-github-link p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }
.cl-github-link a { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   DICTIONARY SETUP PAGE
══════════════════════════════════════════════════════ */
.dict-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 1.25rem 0;
}
.dict-card {
  padding: 1.25rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.dict-card:hover { border-color: var(--accent-line); }
.dict-card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.5rem;
}
.dict-card h3 { font-size: 0.9375rem; }
.dict-badge {
  padding: 0.15rem 0.45rem; flex-shrink: 0;
  border-radius: 3px; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.06em;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-muted);
}
.dict-badge.required {
  background: var(--accent-dim); border-color: var(--accent-line);
  color: var(--accent);
}
.dict-card p {
  color: var(--text-secondary); font-size: 0.8125rem;
  line-height: 1.6; margin-bottom: 0.75rem;
}
.dict-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted);
}
.dict-meta a { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   PRIVACY POLICY PAGE
══════════════════════════════════════════════════════ */
.prose h2 {
  font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-soft);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
.prose p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.8; margin-bottom: 0.85rem; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--accent); }
.prose ul {
  margin: 0.5rem 0 1rem 1.25rem; list-style: disc;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.prose ul li { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   JAPANESE IMMERSION TOOLS — stack trio
══════════════════════════════════════════════════════ */
.stack-trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin: 1.5rem 0 2rem;
}
.stack-item {
  padding: 1.5rem;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stack-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); color: var(--accent);
  margin-bottom: 0.9rem;
}
.stack-item h3 { margin-bottom: 0.5rem; }
.stack-item p {
  color: var(--text-secondary); font-size: 0.8125rem;
  line-height: 1.65; margin-bottom: 0.5rem;
}
.stack-item p:last-child { margin-bottom: 0; }
.stack-item em { font-style: normal; color: var(--text-muted); font-size: 0.8rem; }
.stack-item a { color: var(--accent); }

@media (max-width: 860px) {
  .stack-trio { grid-template-columns: 1fr; }
  .dict-cards { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   SUPPORTED GAMES PAGE
══════════════════════════════════════════════════════ */
.compat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 1rem;
}
.compat-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.compat-card:hover { border-color: var(--accent-line); }
.compat-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.compat-yes { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.compat-no  { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.compat-warn { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.compat-card h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.compat-card p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.65; margin-bottom: 0.6rem; }
.compat-card p:last-child { margin-bottom: 0; }
.compat-examples {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding-left: 0.75rem; border-left: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.compat-note { font-size: 0.75rem !important; color: var(--text-muted) !important; }
.compat-note a { color: var(--accent); }

.limits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 1rem;
}
.limit-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.limit-item h3 { font-size: 0.9375rem; margin-bottom: 0.4rem; }
.limit-item p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.6; margin: 0; }
.limit-item strong { color: var(--text-primary); }

.font-mods { background: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.font-mods h2 { margin-bottom: 0.75rem; }
.font-mods > .container > p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.font-mod-examples {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 1.5rem;
}
.font-mod-item {
  padding: 1.25rem; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.font-mod-item h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.font-mod-item p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════════════
   ANKI MINING PAGE — pipeline diagram
══════════════════════════════════════════════════════ */
.pipeline-diagram {
  display: flex; align-items: center;
  gap: 0.5rem; flex-wrap: wrap;
  padding: 1.5rem; margin: 1.5rem 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow-x: auto;
}
.pipe-step {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
  padding: 0.75rem; min-width: 80px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.pipe-step.highlight {
  background: var(--accent-dim); border-color: var(--accent-line);
}
.pipe-icon {
  font-size: 1.25rem; color: var(--text-secondary);
  line-height: 1;
}
.pipe-step.highlight .pipe-icon { color: var(--accent); }
.pipe-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-muted); letter-spacing: 0.04em;
  text-align: center; line-height: 1.3;
}
.pipe-arrow {
  font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   BLOG HUB PAGE
══════════════════════════════════════════════════════ */
.blog-index { padding-top: 3rem; }
.blog-featured { margin-bottom: 2.5rem; }
.blog-featured-card {
  display: block; padding: 2.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); position: relative;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.blog-featured-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.blog-featured-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.blog-featured-tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.blog-featured-card h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  margin-bottom: 0.75rem; font-weight: 400;
}
.blog-featured-card p {
  color: var(--text-secondary); font-size: 1rem;
  line-height: 1.7; margin-bottom: 1.25rem; max-width: 680px;
}
.blog-read-more { color: var(--accent); font-weight: 500; font-size: 0.9rem; }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  display: flex; flex-direction: column;
  padding: 1.5rem; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.blog-card-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.6rem;
}
.blog-card h3 { font-size: 0.9375rem; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }
.blog-card .blog-read-more { font-size: 0.8125rem; margin-top: auto; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — FINAL BATCH
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .compat-grid { grid-template-columns: 1fr 1fr; }
  .limits-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .font-mod-examples { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .compat-grid { grid-template-columns: 1fr; }
  .limits-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .font-mod-examples { grid-template-columns: 1fr; }
  .pipeline-diagram { justify-content: center; }
}
@media (max-width: 640px) {
  .blog-featured-card { padding: 1.5rem; }
}
