:root {
  --bg: #070d1a;
  --bg-2: #0b1426;
  --surface: rgba(15, 25, 45, 0.72);
  --surface-strong: rgba(17, 29, 52, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(56, 189, 248, 0.42);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body {
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(59, 130, 246, 0.22), transparent 65%),
    radial-gradient(700px 450px at 85% 5%, rgba(6, 182, 212, 0.16), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 15%, black 35%, transparent 80%);
  z-index: -1;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 13, 26, 0.78);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.brand-ver {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.7);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-glow);
  background: rgba(30, 41, 59, 0.95);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.42);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
  border-radius: 13px;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 9px;
}

.lang-btn {
  min-width: 64px;
  font-size: 12.5px;
  padding: 7px 11px;
}

/* Hero */
.hero {
  padding: 64px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #67e8f9;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  font-size: clamp(32px, 4.3vw, 50px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(95deg, #60a5fa, #22d3ee, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 560px;
  margin-bottom: 26px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
}

.showcase-frame {
  position: relative;
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.32);
  box-shadow: var(--shadow);
}

.showcase-frame img {
  width: 100%;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}

.cursor-track {
  position: absolute;
  left: 14%;
  bottom: -18px;
  right: 14%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 20, 38, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 12px;
  color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.cursor-glide {
  flex: 1;
  height: 2px;
  margin: 0 12px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.85), rgba(74, 222, 128, 0.4));
  position: relative;
  border-radius: 999px;
}

.cursor-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 14px #38bdf8;
  transform: translate(-50%, -50%);
  animation: glideAcross 3.2s ease-in-out infinite;
}

@keyframes glideAcross {
  0%, 15% { left: 8%; }
  50%, 65% { left: 92%; }
  100% { left: 8%; }
}

/* Metrics Strip */
.metrics {
  padding: 36px 0 18px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.metric-val {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.metric-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* Sections */
.section {
  padding: 68px 0;
}

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

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

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

.bento-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.32);
}

.bento-card h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}

.bento-card p {
  font-size: 14px;
  color: var(--muted);
}

.bento-shot {
  margin-top: auto;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  cursor: zoom-in;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.mini-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.mini-tag.new {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.cmp th,
table.cmp td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

table.cmp th:first-child,
table.cmp td:first-child {
  text-align: left;
  font-weight: 500;
}

table.cmp thead th {
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  font-weight: 700;
}

table.cmp th.hl,
table.cmp td.hl {
  background: rgba(37, 99, 235, 0.12);
  color: #ffffff;
  font-weight: 600;
}

table.cmp tr:last-child td {
  border-bottom: none;
}

.ok { color: var(--green); }
.warn { color: var(--amber); }
.no { color: #64748b; }

/* Download Hub */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dl-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.dl-card.recommended {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), var(--shadow);
}

.dl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
}

.dl-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-title h3 {
  font-size: 21px;
}

.dl-meta {
  font-size: 13px;
  color: var(--muted);
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.android-qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
}

.qr-box {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box svg {
  width: 100%;
  height: 100%;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.tip-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 13.5px;
  color: #e2e8f0;
}

.tip-box.info {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.tip-box h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #fde68a;
}

.tip-box.info h4 {
  color: #7dd3fc;
}

.checksum-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
}

.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
  font-size: 12.5px;
}

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

.mono {
  font-family: "Cascadia Code", "Consolas", ui-monospace, monospace;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
}

/* Changelog */
.changelog {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.changelog h4 {
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.changelog ul {
  padding-left: 18px;
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #38bdf8;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--muted);
}

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

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

.footer-links a:hover {
  color: var(--text);
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 22px;
  max-width: 960px;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-box.sm {
  max-width: 400px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 11px 16px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #f8fafc;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Privacy Page */
.prose-card {
  max-width: 860px;
  margin: 42px auto 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.prose-card h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.prose-card h2 {
  font-size: 19px;
  margin: 26px 0 10px;
  color: #7dd3fc;
}

.prose-card p,
.prose-card li {
  font-size: 14.5px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.prose-card ul {
  padding-left: 20px;
}

@media (max-width: 960px) {
  .hero-grid,
  .download-grid,
  .tips-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-7, .span-5, .span-6, .span-4 {
    grid-column: span 12;
  }
  .nav-links {
    display: none;
  }
}
