:root {
  --bg-dark: #070b14;
  --bg-dark-elevated: #0f172a;
  --bg-light: #fbfbfd;
  --bg-card: #ffffff;
  --bg-soft: #f3f5fa;
  --text-dark: #0f172a;
  --text-muted: #526075;
  --text-light: #f8fafc;
  --text-light-muted: rgba(248, 250, 252, 0.72);
  --accent: #2563eb;
  --accent-bright: #38bdf8;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --border-light: rgba(15, 23, 42, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.07);
  --shadow-hero: 0 36px 90px rgba(0, 0, 0, 0.55);
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
}

/* ==================== NAVBAR ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.nav.nav-light {
  background: rgba(251, 251, 253, 0.85);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

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

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

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

.lang-switch {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-light .lang-switch {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--border-light);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.48);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost-light {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  background: radial-gradient(1200px 680px at 15% -10%, rgba(37, 99, 235, 0.38), transparent 60%),
              radial-gradient(900px 600px at 88% 8%, rgba(139, 92, 246, 0.32), transparent 60%),
              radial-gradient(700px 500px at 50% 100%, rgba(14, 165, 233, 0.2), transparent 65%),
              var(--bg-dark);
  color: var(--text-light);
  padding: 76px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 54px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
  color: #bae6fd;
  margin-bottom: 22px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light-muted);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13.5px;
  color: rgba(248, 250, 252, 0.76);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-stack {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 590px;
}

.hero-shot {
  position: absolute;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-hero);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
}

.hero-shot-main {
  width: 268px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-shot-left {
  width: 215px;
  left: 0;
  top: 76px;
  transform: rotate(-6deg);
  z-index: 2;
  opacity: 0.92;
}

.hero-shot-right {
  width: 215px;
  right: 0;
  top: 96px;
  transform: rotate(6deg);
  z-index: 2;
  opacity: 0.92;
}

.hero-phone-stack:hover .hero-shot-left {
  transform: translateX(-12px) rotate(-8deg);
}

.hero-phone-stack:hover .hero-shot-right {
  transform: translateX(12px) rotate(8deg);
}

/* ==================== METRIC STRIP ==================== */
.metrics-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 96px 0;
}

.section-dark {
  background: radial-gradient(900px 520px at 80% 10%, rgba(56, 189, 248, 0.16), transparent 60%),
              radial-gradient(800px 520px at 10% 90%, rgba(139, 92, 246, 0.18), transparent 60%),
              var(--bg-dark);
  color: var(--text-light);
}

.section-soft {
  background: var(--bg-soft);
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  color: var(--accent-bright);
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  font-size: 17px;
  color: var(--text-muted);
}

.section-dark .section-head p {
  color: var(--text-light-muted);
}

/* ==================== INTERACTIVE GALLERY ==================== */
.device-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.device-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-tab.active {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-track.mode-iphone {
  grid-auto-columns: minmax(240px, 270px);
}

.gallery-track.mode-ipad {
  grid-auto-columns: minmax(340px, 420px);
}

.gallery-track.mode-duo {
  grid-auto-columns: minmax(420px, 560px);
}

.gallery-card {
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1120;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.22);
}

.gallery-card img {
  width: 100%;
  height: auto;
}

/* ==================== BENTO FEATURES ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

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

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--bg-soft);
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.bento-dark {
  background: linear-gradient(155deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.bento-dark p {
  color: rgba(248, 250, 252, 0.76);
}

.bento-dark .bento-icon {
  background: rgba(255, 255, 255, 0.12);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-dark);
}

.bento-dark .chip {
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
}

/* ==================== SUPER MEMORY FLOW ==================== */
.ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.flow-steps {
  display: grid;
  gap: 16px;
}

.flow-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.flow-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.5);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flow-step h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.flow-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-light-muted);
}

.ai-cards-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ai-cards-preview img {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-hero);
  cursor: zoom-in;
}

/* ==================== PRICING ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(165deg, #0b1120 0%, #1e293b 100%);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.22);
}

.price-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  margin-bottom: 14px;
}

.price-card.featured .price-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.price-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.price-desc {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.price-card.featured .price-desc {
  color: var(--text-light-muted);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
  font-size: 14.5px;
  flex: 1;
}

.price-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  margin-right: 9px;
}

/* ==================== ANDROID BANNER ==================== */
.platform-banner {
  margin-top: 40px;
  padding: 26px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==================== SUBPAGE LEGAL / GUIDE ==================== */
.doc-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.doc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
}

.doc-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.doc-body {
  padding: 46px 0 80px;
  max-width: 820px;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.doc-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.doc-card p, .doc-card li {
  color: var(--text-muted);
  font-size: 15px;
}

.doc-card ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 56px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 13px;
  opacity: 0.72;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1080px, 94vw);
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

/* ==================== REVEAL ANIMATION ==================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .hero-grid, .ai-split, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-phone-stack {
    height: 490px;
  }
  .hero-shot-main { width: 230px; }
  .hero-shot-left, .hero-shot-right { width: 175px; }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-7, .span-5, .span-6, .span-4 {
    grid-column: span 12;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 68px; }
  .hero-phone-stack { height: 420px; }
  .hero-shot-main { width: 196px; }
  .hero-shot-left, .hero-shot-right { width: 148px; top: 64px; }
  .section { padding: 68px 0; }
  .bento-card { padding: 24px; }
}
