/* ClimbCam Official Site — Apple × Linear × Halide Flagship Darkroom System */

:root {
  --bg: #000000;
  --bg-surface: rgba(255, 255, 255, 0.035);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(12, 12, 14, 0.72);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --gold: #ffd60a;
  --gold-soft: rgba(255, 214, 10, 0.12);
  --gold-border: rgba(255, 214, 10, 0.28);
  --gold-ink: #0a0a0c;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max-w: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 420px at 50% -120px, rgba(255, 214, 10, 0.11), transparent 68%),
    var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.82;
}

/* ===== Sticky Frosted Glass Navigation (Zero wrap on 375px iPhone) ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 1;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

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

.desktop-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-btn.active {
  background: var(--text-primary);
  color: #000;
}

/* Mobile Sub-Nav Pill Strip (only on narrow portrait phones) */
.mobile-subnav {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 10px;
  gap: 6px;
}

.mobile-subnav a {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  white-space: nowrap;
}

.mobile-subnav a.active {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: var(--gold-border);
  font-weight: 600;
}

@media (max-width: 560px) {
  .desktop-nav {
    display: none;
  }
  .mobile-subnav {
    display: flex;
  }
}

/* ===== Main Container ===== */

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px calc(68px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 560px) {
  .page {
    padding: 28px 20px calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Editorial Hero ===== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.7);
}

.hero-title {
  font-size: clamp(30px, 7.5vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: clamp(15.5px, 3.8vw, 17.5px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}

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

/* ===== Landing Hero Centerpiece ===== */

.landing-hero {
  text-align: center;
  padding: 16px 0 40px;
}

.landing-hero .hero-lead {
  margin: 0 auto;
}

.app-icon-hero {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 48px rgba(255, 214, 10, 0.15);
  margin-bottom: 22px;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 10px 28px rgba(255, 214, 10, 0.22);
}

.btn-gold:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--hairline-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  opacity: 1;
}

@media (max-width: 440px) {
  .cta-group .btn {
    width: 100%;
  }
}

/* ===== Apple Privacy Nutrition-Label Summary Strip ===== */

.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 36px;
}

@media (max-width: 560px) {
  .glance-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0 30px;
  }
}

.glance-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 560px) {
  .glance-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 16px;
  }
}

.glance-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.glance-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glance-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.glance-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ===== Quick Jump Anchor Pills (Horizontal swipe on mobile) ===== */

.toc-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
  margin-bottom: 12px;
}

.toc-strip::-webkit-scrollbar {
  display: none;
}

.toc-pill {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}

.toc-pill:hover {
  color: var(--gold);
  border-color: var(--gold-border);
  opacity: 1;
}

/* ===== Editorial Prose Sections (Apple Legal Hairline Rhythm) ===== */

.prose-block {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 108px;
}

.prose-num {
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.prose-block h2 {
  font-size: clamp(18px, 4.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.prose-block p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.prose-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Permission Spec List (Linear-style clean rows) */
.spec-list {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-top: 14px;
}

.spec-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: baseline;
}

@media (max-width: 540px) {
  .spec-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }
}

.spec-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.spec-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.clean-list {
  list-style: none;
  margin-top: 10px;
}

.clean-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

/* ===== Apple Support Style Interactive FAQ Accordion ===== */

.section-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin: 34px 0 14px;
}

.faq-group {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  user-select: none;
}

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

.faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.faq-chevron svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--gold-soft);
  color: var(--gold);
}

.faq-body {
  padding: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ===== Direct Contact Card (Linear / Apple Support Style) ===== */

.contact-card {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.contact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-actions .btn {
  height: 42px;
  font-size: 14px;
  padding: 0 18px;
}

@media (max-width: 480px) {
  .contact-top {
    flex-direction: column;
    gap: 10px;
  }
  .contact-actions .btn {
    flex: 1;
    min-width: 140px;
  }
}

/* ===== Feature Showcase (Home Page) ===== */

.feature-rows {
  border-top: 1px solid var(--hairline);
  margin-top: 10px;
}

.feature-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-row h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.feature-row p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}

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

.site-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

/* ===== Toast ===== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  background: rgba(28, 28, 32, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline-strong);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
  white-space: nowrap;
}

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

/* ===== Language Visibility ===== */

[data-lang] {
  display: none;
}

html[lang^="zh"] [data-lang="zh"] {
  display: block;
}

html[lang^="en"] [data-lang="en"] {
  display: block;
}

html[lang^="zh"] span[data-lang="zh"],
html[lang^="zh"] a[data-lang="zh"] {
  display: inline-flex;
}

html[lang^="en"] span[data-lang="en"],
html[lang^="en"] a[data-lang="en"] {
  display: inline-flex;
}
