/* ==========================================================================
   Qπote — Bảng viết & Vở Toán 2D / 3D / Oxyz
   Stylesheet chung cho Landing Page (/), Chính sách bảo mật (/privacy)
   và Hỗ trợ (/support)
   ========================================================================== */

:root {
  --bg-paper: #f7faf8;
  --bg-surface: #ffffff;
  --bg-mint: #e4f2ec;
  --bg-mint-deep: #d7ebe3;
  --ink-board: #10302a;
  --accent: #17624f;
  --accent-hover: #114b3c;
  --accent-soft: rgba(23, 98, 79, 0.10);
  --gold: #f6c344;
  --gold-hover: #eab22c;
  --gold-soft: #fef6de;
  --text-main: #10302a;
  --text-muted: #4b635c;
  --border-soft: rgba(23, 98, 79, 0.16);
  --border-strong: rgba(23, 98, 79, 0.30);
  --shadow-sm: 0 4px 14px rgba(16, 48, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 48, 42, 0.10);
  --shadow-lg: 0 24px 56px rgba(16, 48, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-h: 68px;
  --container-w: 1180px;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-paper);
  /* Hoa văn ô ly vở Toán rất nhẹ trên nền giấy sáng */
  background-image:
    radial-gradient(circle at 12% 0%, rgba(215, 235, 227, 0.65) 0%, transparent 42%),
    radial-gradient(circle at 90% 4%, rgba(246, 195, 68, 0.14) 0%, transparent 32%),
    linear-gradient(to right, rgba(23, 98, 79, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 98, 79, 0.042) 1px, transparent 1px),
    linear-gradient(to right, rgba(23, 98, 79, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 98, 79, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--ink-board);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-mint);
  color: var(--ink-board);
  border: 1px solid rgba(23, 98, 79, 0.14);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink-board);
  border: 1px solid rgba(23, 98, 79, 0.28);
  box-shadow: 0 2px 0 rgba(16, 48, 42, 0.12);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--ink-board);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

section[id],
article[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 250, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 98, 79, 0.12);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 250, 248, 0.96);
  box-shadow: 0 8px 24px rgba(16, 48, 42, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-board);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--accent);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(16, 48, 42, 0.18);
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.brand-name .pi {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink-board);
  background: var(--bg-mint);
}

.nav-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(23, 98, 79, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-mint);
  border: 1px solid var(--border-soft);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn.is-active {
  background: var(--ink-board);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 48, 42, 0.22);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--ink-board);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(247, 250, 248, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 16px 20px 22px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.mobile-nav-list .nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 1rem;
}

.mobile-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .header-actions .lang-switch {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  background: var(--ink-board);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 48, 42, 0.22);
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink-board);
  box-shadow: 0 8px 20px rgba(246, 195, 68, 0.28);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--ink-board);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-board);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-mint);
  color: var(--ink-board);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.87rem;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-soft);
}

.btn-ghost:hover {
  background: var(--bg-mint);
  color: var(--ink-board);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--bg-mint);
  color: var(--ink-board);
  border: 1px solid rgba(23, 98, 79, 0.22);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 98, 79, 0.18);
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 46px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
}

.hero-title {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink-board);
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(246, 195, 68, 0.45);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-platforms-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* iPad Presentation Frame */
.hero-visual {
  position: relative;
}

.ipad-frame {
  position: relative;
  padding: 12px;
  border-radius: 26px;
  background: linear-gradient(145deg, #1b352f 0%, #0d221d 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16, 48, 42, 0.12);
}

.ipad-camera {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.ipad-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #10302a;
  cursor: zoom-in;
}

.ipad-screen img {
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ipad-screen:hover img {
  transform: scale(1.012);
}

.zoom-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(16, 48, 42, 0.84);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.zoom-chip:hover {
  background: var(--ink-board);
  transform: translateY(-1px);
}

.zoom-chip svg {
  width: 14px;
  height: 14px;
}

/* 4 Stat Cards Strip */
.stats-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--ink-board);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 28px 0 24px;
  }
  .ipad-frame {
    padding: 8px;
    border-radius: 18px;
  }
  .ipad-screen {
    border-radius: 12px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   Section Headers & Shared Structure
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-mint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-board);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

@media (max-width: 640px) {
  .section {
    padding: 46px 0;
  }
  .section-head {
    margin-bottom: 26px;
  }
}

/* ==========================================================================
   Bento Grid — 6 Core Features
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.bento-span-7 {
  grid-column: span 7;
}
.bento-span-6 {
  grid-column: span 6;
}
.bento-span-5 {
  grid-column: span 5;
}

.bento-card.is-board {
  background: linear-gradient(155deg, #10302a 0%, #15453b 100%);
  color: #ffffff;
  border-color: rgba(246, 195, 68, 0.26);
}

.bento-card.is-board p,
.bento-card.is-board .bento-desc {
  color: #d3e5de;
}

.bento-card.is-mint {
  background: linear-gradient(155deg, #eef7f3 0%, #e1f0ea 100%);
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mint);
  color: var(--accent);
  border: 1px solid rgba(23, 98, 79, 0.16);
}

.bento-card.is-board .bento-icon {
  background: rgba(246, 195, 68, 0.16);
  color: var(--gold);
  border-color: rgba(246, 195, 68, 0.34);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.bento-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-paper);
  color: var(--ink-board);
  border: 1px solid rgba(23, 98, 79, 0.16);
}

.bento-card.is-board .chip {
  background: rgba(255, 255, 255, 0.10);
  color: #f6faf8;
  border-color: rgba(255, 255, 255, 0.16);
}

.bento-card.is-mint .chip {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .bento-span-7,
  .bento-span-6,
  .bento-span-5 {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .bento-span-7,
  .bento-span-6,
  .bento-span-5 {
    grid-column: span 12;
  }
  .bento-card {
    padding: 22px;
  }
}

/* ==========================================================================
   Interactive Showcase (#screenshots)
   ========================================================================== */

.showcase-section {
  background: linear-gradient(170deg, #0e2a24 0%, #10302a 55%, #16483d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.showcase-section .container {
  position: relative;
  z-index: 1;
}

.showcase-section .section-kicker {
  background: rgba(246, 195, 68, 0.16);
  color: var(--gold);
}

.showcase-section .section-title {
  color: #ffffff;
}

.showcase-section .section-sub {
  color: #c9ddd5;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.showcase-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #dbeae4;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.showcase-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.showcase-tab.is-active {
  background: var(--gold);
  color: var(--ink-board);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(246, 195, 68, 0.25);
}

.showcase-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  opacity: 0.85;
}

.showcase-stage {
  background: rgba(8, 25, 21, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.showcase-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #091c18;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  min-height: 280px;
  cursor: zoom-in;
}

.showcase-frame img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  transition: opacity 0.22s ease;
}

.showcase-frame.is-phone {
  padding: 18px;
  background: radial-gradient(circle at center, rgba(23, 98, 79, 0.35), #091c18 75%);
}

.showcase-frame.is-phone img {
  max-width: 340px;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.showcase-caption-wrap {
  flex: 1 1 380px;
}

.showcase-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.showcase-caption-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.showcase-caption-desc {
  margin: 0;
  font-size: 0.94rem;
  color: #cbe0d8;
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.stage-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.stage-btn svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 680px) {
  .showcase-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .showcase-tab {
    flex-shrink: 0;
  }
  .showcase-stage {
    padding: 12px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   Download Section (#download)
   ========================================================================== */

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dl-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-mint);
  color: var(--ink-board);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-icon svg {
  width: 24px;
  height: 24px;
}

.dl-req {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-mint);
  padding: 4px 10px;
  border-radius: 999px;
}

.dl-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.dl-desc {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dl-actions .btn {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.89rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: #6b4e00;
  border: 1px solid rgba(234, 178, 44, 0.45);
  text-align: center;
}

.apk-info-drawer {
  margin-top: 4px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--bg-paper);
  border: 1px solid var(--border-soft);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.apk-info-drawer p {
  margin: 0 0 8px;
}

.apk-info-drawer p:last-child {
  margin-bottom: 0;
}

.apk-info-drawer a {
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ==========================================================================
   Privacy Pledge Banner
   ========================================================================== */

.pledge-box {
  background: linear-gradient(135deg, #e4f2ec 0%, #f1f8f5 100%);
  border: 1px solid rgba(23, 98, 79, 0.24);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
}

.pledge-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pledge-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 98, 79, 0.14);
  border-radius: 14px;
  padding: 14px 15px;
}

.pledge-item strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 3px;
  color: var(--ink-board);
}

.pledge-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .pledge-box {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .pledge-points {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.01rem;
  color: var(--ink-board);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-mint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--ink-board);
  color: #ffffff;
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(23, 98, 79, 0.08);
  padding-top: 14px;
}

.faq-body p {
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 32px;
  background: var(--ink-board);
  color: #dbeae4;
  padding: 40px 0 28px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand-link {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: #b7d2c8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #e4f2ec;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.email-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.copy-btn.is-light {
  border-color: var(--border-strong);
  background: var(--bg-mint);
  color: var(--ink-board);
}

.copy-btn.is-light:hover {
  background: var(--bg-mint-deep);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #a9c7bc;
}

/* ==========================================================================
   Subpages (/privacy & /support)
   ========================================================================== */

.page-hero {
  padding: 38px 0 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-board);
}

.page-subtitle {
  margin: 0 0 18px;
  font-size: 1.03rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.meta-pill strong {
  color: var(--ink-board);
}

.jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.jump-link {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink-board);
  background: var(--bg-mint);
  border: 1px solid rgba(23, 98, 79, 0.16);
}

.jump-link:hover {
  background: var(--ink-board);
  color: #ffffff;
}

.jump-link.is-gold {
  background: var(--gold-soft);
  border-color: rgba(234, 178, 44, 0.45);
}

.jump-link.is-gold:hover {
  background: var(--gold);
  color: var(--ink-board);
}

.doc-section {
  padding: 18px 0 48px;
}

.doc-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.doc-card h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-mint);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-board);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-lang-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-mint);
  color: var(--accent);
}

.doc-card h3 {
  margin: 22px 0 8px;
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--ink-board);
}

.doc-card p {
  margin: 0 0 10px;
  color: #26413b;
}

.doc-card ul,
.doc-card ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #26413b;
}

.doc-card li {
  margin-bottom: 7px;
}

.summary-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

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

@media (max-width: 560px) {
  .summary-grid-4 {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 22px 18px;
  }
}

/* Support Grids & Shortcut Tables */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-tile {
  background: var(--bg-paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.guide-tile h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-board);
}

.guide-tile p,
.guide-tile ul {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.guide-tile ul {
  padding-left: 18px;
  margin-top: 6px;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #ffffff;
  margin-top: 10px;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.92rem;
}

.shortcut-table th,
.shortcut-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 98, 79, 0.10);
}

.shortcut-table th {
  background: var(--bg-mint);
  color: var(--ink-board);
  font-weight: 700;
}

.shortcut-table tr:last-child td {
  border-bottom: 0;
}

.shortcut-table tbody tr:hover {
  background: rgba(228, 242, 236, 0.35);
}

.support-contact-box {
  background: linear-gradient(135deg, #10302a 0%, #175244 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.support-contact-box h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #ffffff;
}

.support-contact-box p {
  margin: 0;
  color: #cfe4dc;
}

/* ==========================================================================
   Lightbox Modal & Toast
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(9, 24, 20, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-top {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #ffffff;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
}

.lightbox-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-body {
  position: relative;
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-img-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 76vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-caption {
  margin-top: 12px;
  text-align: center;
  max-width: 720px;
  color: #e4f2ec;
}

.lightbox-caption strong {
  display: block;
  font-size: 1.04rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.lightbox-caption span {
  font-size: 0.9rem;
  color: #bfd6ce;
}

@media (max-width: 640px) {
  .lightbox-nav {
    position: absolute;
    bottom: -56px;
  }
  .lightbox-prev {
    left: 22%;
  }
  .lightbox-next {
    right: 22%;
  }
  .lightbox-caption {
    margin-bottom: 60px;
  }
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink-board);
  color: #ffffff;
  border: 1px solid rgba(246, 195, 68, 0.45);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
