:root {
  /* 03-C Phosphor Terminal tokens */
  --bg: #000000;
  --grid: #0e0e0e;
  --panel: #08090b;
  --panel-hi: #0e1014;
  --line: #16181d;
  --border: #2e2e2e;
  --disabled: #3a3a3a;
  --dim: #686d76;
  --body: #9a9ea6;
  --strong: #e8eaee;
  --max: #ffffff;

  /* Intentional single color exception: 11-shade activity heatmap green */
  --g0: #141414;
  --g1: #0e4429;
  --g2: #155d30;
  --g3: #1d7637;
  --g4: #26a641;
  --g5: #39d353;
  --green: #39d353;
  --green-dim: rgba(57, 211, 83, 0.14);
  --green-border: rgba(57, 211, 83, 0.38);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--strong);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, li, dt, dd {
  word-break: auto-phrase;
  line-break: strict;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code, .mono {
  font-family: var(--mono);
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Blinking Cursor ---------- */
.cur {
  display: inline-block;
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- Sticky Header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--max);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.brand .prompt {
  color: var(--dim);
  font-weight: 500;
}

.brand .sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

nav.links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
}

nav.links a {
  color: var(--body);
  transition: color 0.18s;
}

nav.links a:hover {
  color: var(--max);
}

nav.links a.nav-cta {
  color: var(--bg);
  background: var(--max);
  font-weight: 700;
  padding: 7px 14px;
  border: 1px solid var(--max);
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

nav.links a.nav-cta:hover {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

@media (max-width: 860px) {
  .brand .sub { display: none; }
  nav.links a:not(.keep) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 84px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 55% at 76% 45%, rgba(57, 211, 83, 0.11), transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--body);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 14px;
  letter-spacing: 0.04em;
}

.eyebrow .pct-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 10px var(--green);
}

.hero-kpis {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin: 26px 0 14px;
  flex-wrap: wrap;
}

.hero-stat {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--max);
}

.hero-stat span {
  font-size: 0.42em;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 6px;
}

.hero-gauge {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
}

.hero-gauge .bars {
  color: var(--green);
  letter-spacing: 2px;
  font-size: 14px;
}

.hero-gauge .bars i {
  font-style: normal;
  color: var(--border);
}

.hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--max);
  margin: 18px 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
  border-bottom: 2px solid rgba(57, 211, 83, 0.4);
}

.hero .lead {
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.85;
  max-width: 38em;
}

.hero .lead strong {
  color: var(--strong);
  font-weight: 700;
}

/* AI Callout Pill in Hero */
.hero-ai-box {
  margin-top: 22px;
  padding: 14px 18px;
  background: rgba(57, 211, 83, 0.05);
  border: 1px solid var(--green-border);
  border-left: 3px solid var(--green);
  max-width: 38em;
}

.hero-ai-box .cmd {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-ai-box p {
  font-size: 13.5px;
  color: var(--strong);
  margin-top: 4px;
  line-height: 1.65;
}

.hero-ai-box small {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 4px;
}

/* Store CTA Buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid var(--max);
  transition: transform 0.18s, background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 2px;
}

.btn.primary {
  background: var(--max);
  color: var(--bg);
  box-shadow: 0 12px 36px -12px rgba(255, 255, 255, 0.35);
}

.btn.primary:hover {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(57, 211, 83, 0.55);
}

.btn.ghost {
  border-color: var(--border);
  background: var(--panel);
  color: var(--body);
}

.btn.ghost:hover {
  border-color: var(--body);
  color: var(--max);
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.meta-tags span::before {
  content: "[ ";
  color: var(--border);
}

.meta-tags span::after {
  content: " ]";
  color: var(--border);
}

/* ---------- Interactive Terminal Phone in Hero ---------- */
.hero-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-mode-tabs {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.phone-mode-tabs button {
  background: var(--bg);
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.phone-mode-tabs button:hover {
  color: var(--strong);
  border-color: var(--dim);
}

.phone-mode-tabs button.active {
  color: var(--bg);
  background: var(--max);
  border-color: var(--max);
  font-weight: 700;
}

.phone {
  width: 312px;
  height: 636px;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #1b1e24, #07080a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -15px rgba(57, 211, 83, 0.22);
  position: relative;
  user-select: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  color: var(--strong);
  position: relative;
  border: 1px solid #1c1e22;
}

.p-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 11px 20px 4px;
  font-size: 10.5px;
  color: var(--dim);
}

.p-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.p-pane.active {
  display: flex;
}

/* Phone Study Pane */
.p-top {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 0;
  font-size: 11px;
  color: var(--dim);
}

.p-top .esc {
  cursor: pointer;
}
.p-top .esc:hover {
  color: var(--max);
}

.p-card-wrap {
  flex: 1;
  perspective: 1100px;
  cursor: pointer;
  position: relative;
}

.p-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1);
  transform-style: preserve-3d;
}

.p-card-wrap.flipped .p-card-inner {
  transform: rotateY(180deg);
}

.p-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.p-face.back {
  transform: rotateY(180deg);
}

.p-qnum {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.p-word-lg {
  font-size: 32px;
  font-weight: 700;
  color: var(--max);
  letter-spacing: -0.02em;
}

.p-tts-btn {
  margin-top: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.p-tts-btn:hover {
  color: var(--max);
  border-color: var(--border);
}

.p-tap-hint {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.18em;
  text-align: center;
}

.p-word-sm {
  font-size: 15px;
  color: var(--body);
  font-weight: 500;
}

.p-ipa {
  font-size: 12px;
  color: var(--dim);
  margin-top: 3px;
}

.p-meaning {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  color: var(--max);
  margin-top: 6px;
}

.p-ex {
  margin-top: 14px;
  padding-left: 11px;
  border-left: 2px solid var(--border);
  text-align: left;
  width: 100%;
}

.p-ex-en {
  font-size: 12px;
  color: var(--body);
  line-height: 1.65;
}

.p-ex-en b {
  color: var(--max);
  font-weight: 700;
}

.p-ex-ja {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
  line-height: 1.6;
}

.p-meta-line {
  width: 100%;
  text-align: left;
  font-size: 11px;
  color: var(--body);
  margin-top: 8px;
}

.p-meta-line span {
  color: var(--dim);
}

.p-tts-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.p-correct-line {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--dim);
}

.p-correct-line b {
  color: var(--max);
}

.p-ask-bar {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--green);
  cursor: pointer;
  letter-spacing: 0.06em;
  background: rgba(57, 211, 83, 0.04);
  transition: background 0.15s;
}

.p-ask-bar:hover {
  background: rgba(57, 211, 83, 0.12);
}

.p-judge-row {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.p-judge-btn {
  flex: 1;
  padding: 11px 6px;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--body);
  transition: transform 0.1s, opacity 0.15s;
}

.p-judge-btn:active {
  transform: scale(0.97);
}

.p-judge-btn.yes {
  background: var(--max);
  color: var(--bg);
  border-color: var(--max);
  font-weight: 700;
}

/* Phone Ask AI Pane */
.p-ask-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
}

.p-ask-ctx {
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-ask-chat {
  flex: 1;
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
}

.p-ask-q {
  color: var(--max);
  font-weight: 500;
}

.p-ask-q::before {
  content: "% ";
  font-family: var(--mono);
  color: var(--green);
}

.p-ask-a {
  color: var(--body);
}

.p-ask-a::before {
  content: "> ";
  font-family: var(--mono);
  color: var(--dim);
}

.p-ask-chips {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-ask-chip {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--strong);
  background: var(--panel-hi);
  border: 1px solid var(--border);
  padding: 4px 9px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.p-ask-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.p-ask-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}

/* Phone Home Pane */
.p-home-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
}

.p-home-mast {
  color: var(--dim);
  margin-bottom: 18px;
}

.p-home-mast b {
  color: var(--strong);
}

.p-home-today {
  margin-top: 14px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--dim);
  line-height: 1.85;
}

.p-home-today b {
  color: var(--strong);
}

.p-mini-heatmap {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  margin-top: 8px;
}

.p-mini-heatmap i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--g0);
  display: block;
}

.p-home-cta {
  margin-top: auto;
  border: 1px solid var(--strong);
  padding: 12px;
  text-align: center;
  color: var(--strong);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.p-home-cta:hover {
  background: var(--max);
  color: var(--bg);
  font-weight: 700;
}

.p-nav {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 10px 6px 12px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--disabled);
}

.p-nav span {
  flex: 1;
  text-align: center;
}

.p-nav span.on {
  color: var(--max);
}

.phone-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  text-align: center;
}

@media (max-width: 920px) {
  .hero { padding: 44px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Ticker Strip ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: #050608;
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
}

.ticker-track {
  display: inline-block;
  animation: marquee 38s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--body);
}

.ticker-track b {
  color: var(--max);
  font-weight: 700;
}

.ticker-track i {
  font-style: normal;
  color: var(--green);
  margin: 0 20px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section Layout ---------- */
section.sec {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.sec-head {
  margin-bottom: 48px;
}

.sec-cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-cmd::before {
  content: "%";
  color: var(--dim);
}

.sec-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--max);
  letter-spacing: -0.01em;
}

.sec-lede {
  margin-top: 14px;
  color: var(--body);
  max-width: 46em;
  font-size: 16px;
}

/* ---------- Section 01: Coverage ---------- */
.cov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cov-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cov-card.primary {
  border-color: var(--green-border);
  background: linear-gradient(180deg, rgba(57, 211, 83, 0.06), var(--panel) 65%);
}

.cov-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cov-num {
  font-family: var(--mono);
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 700;
  color: var(--max);
  line-height: 1.05;
  margin: 12px 0 8px;
}

.cov-card.primary .cov-num {
  color: var(--green);
}

.cov-bar {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--strong);
  margin-bottom: 16px;
}

.cov-bar span {
  color: var(--border);
}

.cov-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--max);
  margin-bottom: 8px;
}

.cov-card p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.75;
}

.cov-source {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.cov-source code {
  color: var(--body);
}

@media (max-width: 860px) {
  .cov-grid { grid-template-columns: 1fr; }
}

/* ---------- Section 02: On-Device AI Chat (ask) ---------- */
.ai-showcase {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.ai-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px 0;
}

.ai-point {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px 18px;
}

.ai-point .k {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ai-point h3 {
  font-size: 16px;
  color: var(--max);
  margin-bottom: 6px;
}

.ai-point p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.65;
}

.ai-repl-demo {
  background: #030405;
  border: 1px solid var(--border);
  overflow: hidden;
}

.ai-repl-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  background: var(--panel);
}

.ai-repl-bar b {
  color: var(--green);
}

.ai-repl-ctx {
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.ai-repl-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.repl-turn .q {
  color: var(--max);
  font-weight: 700;
  margin-bottom: 6px;
}

.repl-turn .q::before {
  content: "% ";
  font-family: var(--mono);
  color: var(--green);
}

.repl-turn .a {
  color: var(--body);
  padding-left: 16px;
  border-left: 2px solid var(--border);
  font-size: 13.5px;
  line-height: 1.75;
}

.ai-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.7;
}

.ai-note b {
  color: var(--body);
}

@media (max-width: 900px) {
  .ai-showcase { grid-template-columns: 1fr; }
  .ai-points { grid-template-columns: 1fr; }
}

/* ---------- Section 03: Study Logic & Habit ---------- */
.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.logic-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 26px 24px;
}

.logic-card .step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.logic-card h3 {
  font-size: 19px;
  color: var(--max);
  margin-bottom: 10px;
}

.logic-card p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.75;
}

.logic-code {
  margin-top: 16px;
  padding: 12px 14px;
  background: #000;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body);
  line-height: 1.8;
}

.logic-code b {
  color: var(--max);
}

.logic-code .ok {
  color: var(--green);
}

/* Interactive Heatmap Box */
.heatmap-box {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.heatmap-info h3 {
  font-size: 20px;
  color: var(--max);
  margin-bottom: 10px;
}

.heatmap-info p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.75;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.heatmap-legend i {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  display: inline-block;
}

.heatmap-grid-wrap {
  background: #000;
  border: 1px solid var(--line);
  padding: 18px;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  margin-bottom: 10px;
}

.heatmap-header b {
  color: var(--green);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 4px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--g0);
  transition: transform 0.12s;
  cursor: pointer;
}

.heatmap-cell:hover,
.heatmap-cell.is-today {
  transform: scale(1.22);
  outline: 1px solid var(--max);
}

@media (max-width: 860px) {
  .logic-grid { grid-template-columns: 1fr; }
  .heatmap-box { grid-template-columns: 1fr; padding: 22px; }
  .heatmap-grid { gap: 3px; }
}

/* ---------- Section 04: App Screens Gallery ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shot-card {
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.shot-card:hover {
  border-color: var(--body);
  transform: translateY(-3px);
}

.shot-top {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.shot-top .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.14em;
}

.shot-top h3 {
  font-size: 17px;
  color: var(--max);
  margin: 4px 0 6px;
}

.shot-top p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.65;
}

.shot-img-wrap {
  padding: 20px 28px 0;
  background: #030405;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.shot-img-wrap img {
  width: 100%;
  max-width: 240px;
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}

@media (max-width: 960px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shots-grid { grid-template-columns: 1fr; }
}

/* ---------- Section 05: Interactive Wordlist Sample ---------- */
.wl-explorer {
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.wl-list-pane {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.wl-list-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
}

.wl-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.wl-row:last-child {
  border-bottom: none;
}

.wl-row:hover {
  background: var(--panel-hi);
}

.wl-row.active {
  background: rgba(57, 211, 83, 0.08);
  border-left: 3px solid var(--green);
  padding-left: 15px;
}

.wl-row .rk {
  color: var(--dim);
  font-size: 11px;
  width: 42px;
  flex-shrink: 0;
}

.wl-row .en {
  color: var(--max);
  font-weight: 700;
  width: 108px;
  flex-shrink: 0;
}

.wl-row .ja {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--body);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-row .pips {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
}

.wl-detail-pane {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #030405;
}

.wl-d-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.wl-d-word {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--max);
  margin-top: 8px;
}

.wl-d-ipa {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
  margin-top: 4px;
}

.wl-d-meaning {
  font-size: 24px;
  font-weight: 700;
  color: var(--strong);
  margin-top: 10px;
}

.wl-d-ex {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--green);
  background: var(--panel);
}

.wl-d-ex .en {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--strong);
}

.wl-d-ex .ja {
  font-size: 13px;
  color: var(--dim);
  margin-top: 4px;
}

.wl-d-extras {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--body);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-d-extras span.lbl {
  color: var(--dim);
}

.wl-d-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.wl-d-actions button {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--strong);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.wl-d-actions button:hover {
  border-color: var(--max);
  color: var(--max);
}

@media (max-width: 820px) {
  .wl-explorer { grid-template-columns: 1fr; }
  .wl-list-pane { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Section 06: 8 Specs / Features Grid ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.spec-item {
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.spec-item .cmd {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  margin-bottom: 10px;
}

.spec-item h3 {
  font-size: 16.5px;
  color: var(--max);
  margin-bottom: 8px;
}

.spec-item p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.7;
}

@media (max-width: 920px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .specs-grid { grid-template-columns: 1fr; }
}

/* ---------- Section 07: FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
}

details.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

details.faq-item[open] {
  border-color: var(--body);
}

details.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--max);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::before {
  content: "Q.";
  font-family: var(--mono);
  color: var(--green);
  margin-right: 10px;
  font-size: 14px;
  flex-shrink: 0;
}

details.faq-item summary .toggle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-left: auto;
  flex-shrink: 0;
}

details.faq-item[open] summary .toggle::before {
  content: "[ − ]";
}

details.faq-item:not([open]) summary .toggle::before {
  content: "[ + ]";
}

.faq-ans {
  padding: 0 22px 20px 46px;
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.faq-ans strong {
  color: var(--strong);
}

/* ---------- Section 08: Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.support-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 26px;
}

.support-card h3 {
  font-size: 18px;
  color: var(--max);
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 12px;
}

.support-mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  border-bottom: 1px solid var(--green-border);
  margin-top: 4px;
}

.support-links a {
  color: var(--strong);
  border-bottom: 1px solid var(--border);
}

.support-links a:hover {
  color: var(--green);
  border-color: var(--green);
}

@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(57, 211, 83, 0.14), transparent 68%);
  pointer-events: none;
}

.final-cta .wrap {
  position: relative;
}

.final-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin: 0 auto 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.final-cmd {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--max);
  letter-spacing: -0.02em;
}

.final-cmd .p {
  color: var(--dim);
}

.final-cta p {
  color: var(--body);
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 16px;
}

.final-cta .cta {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--dim);
  background: #030405;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  align-items: center;
}

footer.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
}

footer.site-footer a:hover {
  color: var(--max);
}

.disclaimer {
  width: 100%;
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
