/* ── Design Tokens ── */
:root {
  --bg: #fbfbfd;
  --surface: rgba(255,255,255,0.72);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071f3;
  --accent-soft: rgba(0,113,243,0.08);
  --accent-hover: #0059c7;
  --border: rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: rgba(28,28,30,0.72);
    --surface-solid: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --accent: #2997ff;
    --accent-soft: rgba(41,151,255,0.1);
    --accent-hover: #0a84ff;
    --border: rgba(255,255,255,0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.12);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.28);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.32);
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  transition: background 0.36s ease, border-color 0.36s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(251,251,253,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  .nav.scrolled { background: rgba(0,0,0,0.72); }
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-brand-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}

.lang-current:hover { color: var(--accent); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-download-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-download-nav:hover { background: var(--accent-hover); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.halo-hero {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.halo-hero svg {
  display: block;
  width: 100%;
  height: 100%;
}

.halo-hero svg > * {
  pointer-events: none;
}

.halo-hero .bg { fill: #ffffff; }
.halo-hero .ring { fill: #6e6e70; }
.halo-hero .sector { fill: #0071f3; }

.halo-hero .sector-wrap {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.halo-hero .sector-wrap.no-transition {
  transition: none;
}

@media (prefers-color-scheme: dark) {
  .halo-hero .bg { fill: #000000; }
  .halo-hero .sector {
    filter: drop-shadow(0 0 8px rgba(0, 113, 243, 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .halo-hero .sector-wrap { transition: none; }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 14px;
  background: #2c2c2e;
  color: #fff;
  border-radius: 13px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.appstore-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.badge-apple-logo {
  flex-shrink: 0;
  height: 32px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-family: var(--font);
}

.badge-text-small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.badge-text-large {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (prefers-color-scheme: dark) {
  .appstore-badge {
    background: #1c1c1e;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  .appstore-badge:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,113,243,0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,113,243,0.35);
}

.hero-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}


/* ── Shared section label ── */
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: block;
}

/* ── Premium / Plans ── */
.premium {
  padding: 120px 24px;
  background: var(--surface-solid);
}

.premium-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.premium .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.premium .section-title-premium {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.premium .section-desc-premium {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 840px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-premium {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(0, 113, 243, 0.16);
}

.plan-head {
  margin-bottom: 22px;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  padding: 11px 0;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features .check {
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.plan-features-included {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

.plan-note {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 14px;
}

/* ── Screenshots ── */
.screenshots {
  padding: 120px 24px;
}

.screenshots-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.screenshots .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title-screenshots {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-desc-screenshots {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.shot-card {
  margin: 0;
}

.shot-placeholder {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.shot-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-card figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .shot-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ── Footer ── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links > li > a:not(.btn-download-nav) { display: none; }

  .plan-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 420px;
  }

}

@media (max-width: 480px) {
  .halo-hero { width: 80px; height: 80px; }
  .btn { padding: 11px 20px; font-size: 15px; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity:1; transform:none; transition:none; }
}

/* ── Lightbox ── */
.shot-card img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.22);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
