/* Edge-X Mirror Site — style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  /* Edge-X design tokens (DESIGN.md + live site verification) */
  /* Background: two-layer dark */
  --bg:           #000000;   /* page body — rgb(0,0,0) confirmed from live site */
  --surface:      #141414;   /* card / panel surface — rgb(20,20,20), 6 occurrences */
  --surface-2:    #1f1f1f;   /* overlay / modal layer — rgba(31,31,31) confirmed */
  --header-bg:    #000000;
  /* Primary accent: teal */
  --primary:      #219f88;
  --primary-dark: #1a8570;
  /* Secondary accents */
  --blue:         #0083e0;
  --green:        #00a76f;
  --purple:       #4c43cb;
  /* Text */
  --text:         #ffffff;
  --text-muted:   #858585;
  /* Borders */
  --border:       #424242;
  --border-dark:  #141414;
  /* Typography scale (DESIGN.md) */
  --font-body:    "PingFang SC -apple-system", BlinkMacSystemFont, "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
                  "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto,
                  "Segoe UI", Arial, sans-serif;
  --font-small:   "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Radius tokens (DESIGN.md) */
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    9999px;
  /* Spacing tokens (DESIGN.md) */
  --space-2:      2px;
  --space-3:      4px;
  --space-xs:     8px;
  --space-7:      12px;
  --space-8:      15px;
  --space-sm:     16px;
  --space-md:     24px;
  --space-lg:     32px;
  --space-xl:     64px;
  /* Elevation: flat per DESIGN.md (no validated shadow payload) */
  --shadow-card:  none;
  --shadow-lg:    0 8px 32px rgba(0,0,0,.4);
  --transition:   0.2s ease;
  /* Theme tokens (dark defaults) */
  --text-secondary:     rgba(255,255,255,.8);
  --overlay-hover:      rgba(255,255,255,.08);
  --btn-outline-border: rgba(255,255,255,.35);
  --shadow-color:       rgba(0,0,0,.4);
  --scrolled-bg:        #1F1F1FAD;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg:                 #f5f6f8;
  --surface:            #ffffff;
  --surface-2:          #eef0f3;
  --header-bg:          #f5f6f8;
  --text:               #0d0d0d;
  --text-muted:         #5a6070;
  --border:             #dde0e6;
  --border-dark:        #c8ccd4;
  --text-secondary:     rgba(13,13,13,.75);
  --overlay-hover:      rgba(13,13,13,.06);
  --btn-outline-border: rgba(13,13,13,.25);
  --shadow-color:       rgba(0,0,0,.12);
  --scrolled-bg:        #FFFFFFAD;
  --shadow-lg:          0 8px 32px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px; line-height: 22px;
  color: var(--text); background: var(--bg);
  padding-top: 80px; /* matches fixed header height */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; color: var(--text); overflow-wrap: break-word; }

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition:
    top 280ms ease,
    width 280ms ease,
    max-width 280ms ease,
    border-radius 280ms ease,
    border 280ms ease,
    box-shadow 280ms ease,
    background 280ms ease;
}
.site-header.is-scrolled {
  top: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1328.8px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 24px var(--shadow-color);
  background: var(--scrolled-bg);
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
.nav {
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 80px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 32px; width: auto; max-width: 180px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--text); background: var(--overlay-hover); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}

/* mobile-only language row inside the menu; hidden on desktop */
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 140px; z-index: 1000;
}
.dropdown-panel-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown.open .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface-2); color: var(--primary); text-decoration: none; }

/* ─── ICON BUTTONS (lang + theme) ─── */
.icon-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  padding: 0;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }

/* ─── CTA BUTTONS ─── */
.btn-cta {
  background: var(--primary); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }

.btn-cta-lg {
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-xl);
  font-size: 16px; font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-lg:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text);
  padding: 13px 28px; border-radius: var(--radius-xl);
  border: 1px solid var(--btn-outline-border);
  font-size: 16px; font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-outline:hover { border-color: var(--text); background: var(--overlay-hover); text-decoration: none; }

.btn-support {
  display: inline-block; padding: 10px 22px;
  background: transparent; border: 1px solid var(--primary);
  color: var(--primary); border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.btn-support:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── MOBILE NAV ─── */
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 22px; cursor: pointer;
  padding: 8px; margin-left: auto; line-height: 1;
}

/* ─── HERO ─── */

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--space-sm);
}
.trust-bar-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 28px; gap: 4px;
}
.trust-num { font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.trust-label { font-size: 12px; color: var(--text-muted); font-family: var(--font-small); }
.trust-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── LAYOUT HELPERS ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm); }
.section { padding: 72px var(--space-sm); }
.section-alt { background: var(--bg); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  color: var(--primary); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 12px; font-family: var(--font-small);
}
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 620px; margin: 0 auto 40px; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 40px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-card i { font-size: 28px; color: var(--primary); margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ─── SPLIT ROW ─── */
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.split-image img { width: 100%; height: 320px; object-fit: cover; }
.split-content { display: flex; flex-direction: column; gap: 16px; }

/* ─── CHECK LIST ─── */
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.check-list li {
  font-size: 14px; color: var(--text-muted);
  padding-left: 24px; position: relative;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}

/* ─── IMAGE STRIP ─── */
.image-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.image-strip-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.image-strip-item img { width: 100%; height: 200px; object-fit: cover; }

/* ─── STREAMING SECTION ─── */
.streaming-section { position: relative; overflow: hidden; width: 100%; max-width: 1520.8px; height: 400px; margin: 0 auto; }
.streaming-video { width: 100%; height: 100%; display: block; object-fit: cover; }
.streaming-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}
.streaming-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.streaming-heading { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 700; color: #fff; margin: 0 0 12px; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.streaming-sub { font-size: clamp(.85rem, 1.4vw, 1rem); color: rgba(255,255,255,.88); max-width: 720px; margin: 0; line-height: 1.6; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ─── NODE GRID ─── */
.node-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 32px; text-align: left; }
.node-card { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; font-size: 14px; font-weight: 500; background: var(--surface); height: 53.6px; box-sizing: border-box; }
.node-flag { width: 28px; height: 21px; border-radius: 3px; flex-shrink: 0; object-fit: cover; }

/* ─── PLATFORM GRID ─── */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}
.platform-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color var(--transition);
}
.platform-card:hover { border-color: var(--primary); }
.platform-card i { font-size: 32px; color: var(--primary); }
.platform-card span { font-size: 13px; color: var(--text-muted); font-family: var(--font-small); }

/* ─── FAQ ─── */
.faq-split { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
.faq-split-heading { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.faq-split-desc { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 16px 0; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--text);
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-a { display: none; padding-bottom: 16px; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin: 0; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--primary); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-q i { transition: transform var(--transition); flex-shrink: 0; }

/* standalone full-width faq */
.faq-list { max-width: 800px; margin: 0 auto; }

/* 2-column dark FAQ section */
.faq-section-dark { padding: 80px var(--space-sm) 0; background: var(--bg); }
.faq-contact-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-xl); text-decoration: none; white-space: nowrap;
  transition: opacity var(--transition);
}
.faq-contact-btn:hover { opacity: 0.85; text-decoration: none; }
.faq-left { padding-right: 16px; }
@media (max-width: 991px) { .faq-left { padding-right: 0; } }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  background: none; border: none;
  padding: 56px 40px;
  text-align: center;
}
.guarantee-banner h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.guarantee-banner p { font-size: 14px; color: var(--text-muted); max-width: none; margin: 0 auto 32px; white-space: nowrap; }
@media (max-width: 991px) { .guarantee-banner p { white-space: normal; font-size: 13px; } }

/* ─── SINGLE-LINE SUBTEXT ─── */
.sub-nowrap { white-space: nowrap; max-width: none !important; }
@media (max-width: 991px) { .sub-nowrap { white-space: normal; } }

/* ─── ANCHOR SCROLL OFFSET (header: 16px top + 80px height = 96px; +16px buffer) ─── */
#download, #privacy, #pricing, #faq { scroll-margin-top: 112px; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px var(--space-sm) 56px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ─── PROSE ─── */
.prose { padding: 64px var(--space-sm); }
.prose-inner { max-width: 760px; margin: 0 auto; }
.prose-inner p, .prose-inner li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.prose-inner h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; color: var(--text); }
.prose-inner h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.prose-inner ul { list-style: disc; padding-left: 24px; }

/* ─── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  display: flex; flex-direction: column; position: relative;
}
.pricing-card.popular { border-color: var(--primary); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: var(--radius-xl);
  font-size: 12px; font-weight: 700; font-family: var(--font-small);
  white-space: nowrap;
}
.pricing-name { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.pricing-price { font-size: 48px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 24px; vertical-align: top; margin-top: 8px; }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-top: 8px; margin-bottom: 20px; font-family: var(--font-small); }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { font-size: 14px; color: var(--text-muted); padding-left: 20px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.pricing-cta {
  display: block; text-align: center;
  background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 700; margin-top: 24px;
  transition: opacity var(--transition);
}
.pricing-cta:hover { opacity: .88; text-decoration: none; }
.pricing-pkg-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.pricing-save { font-size: 12px; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: 4px; padding: 2px 8px; display: inline-block; margin-bottom: 16px; }
.pricing-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-price-val { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price-period { font-size: 13px; color: var(--text-muted); }

/* ─── FLOW DIAGRAM ─── */
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 16px 0; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
.flow-circle { width: 110px; height: 110px; border-radius: 50%; border: 2px dashed var(--primary); display: flex; align-items: center; justify-content: center; animation: flow-pulse 3s ease-in-out infinite; }
.flow-device-icon { font-size: 34px; color: var(--text-muted); }
.flow-label { font-size: 13px; color: var(--text-muted); text-align: center; }
.flow-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; }
.flow-apps i { font-size: 20px; }
.flow-connector { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.flow-line { width: 36px; height: 2px; background: var(--border); }
.flow-bolt { font-size: 15px; color: var(--primary); padding: 0 4px; }
.flow-box { background: linear-gradient(135deg, #0b2420 0%, #193731 50%, #0e1c1a 100%); border-radius: 14px; padding: 22px 28px; display: flex; align-items: center; gap: 20px; flex: 0 1 auto; }
.flow-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 100px; max-width: 130px; }
.flow-item i { font-size: 30px; color: #fff; }
.flow-item span { font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.4; }
.flow-box-sep { width: 2px; height: 56px; border-left: 2px dashed rgba(255,255,255,.18); flex-shrink: 0; }
@keyframes flow-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 900px) {
  .flow-box { gap: 14px; padding: 18px 20px; }
  .flow-item { min-width: 80px; max-width: 100px; }
  .flow-item i { font-size: 24px; }
}
@media (max-width: 640px) {
  .flow-diagram { flex-direction: column; gap: 8px; }
  .flow-connector { flex-direction: column; }
  .flow-line { width: 2px; height: 24px; }
  .flow-box { flex-direction: column; gap: 12px; }
  .flow-box-sep { width: 56px; height: 2px; border-left: none; border-top: 2px dashed rgba(255,255,255,.18); }
}

/* ─── PLATFORM ANIMATION ─── */
.platform-anim { text-align: center; }
.platform-anim img { max-width: 100%; height: auto; display: inline-block; border-radius: 12px; }

/* ─── PLATFORM BENTO CARDS ─── */
.plat-grid {
  display: grid;
  grid-template-columns: 392px 392px 392px;
  grid-template-rows: 234px 234px;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.plat-macos   { grid-column: 1;     grid-row: 1 / 3; }
.plat-ios     { grid-column: 2 / 4; grid-row: 1; }
.plat-android { grid-column: 2;     grid-row: 2; }
.plat-windows { grid-column: 3;     grid-row: 2; }

.plat-card { display: flex; flex-direction: column; padding: 22px 22px 20px; text-decoration: none; position: relative; transition: filter .15s; color: inherit; border-radius: 16px; overflow: hidden; }
.plat-card:hover { filter: brightness(1.05); text-decoration: none; }

/* Card backgrounds */
.plat-macos   { background: linear-gradient(160deg, #c4cad3 0%, #dde1e7 100%); color: #111827; }
.plat-ios     { background: linear-gradient(100deg, #e8e0f7 0%, #8b5cf6 55%, #6d28d9 100%); color: #3b0764; }
.plat-android { background: linear-gradient(140deg, #14532d 0%, #4ade80 100%); color: #052e16; }
.plat-windows { background: linear-gradient(140deg, #1e3a8a 0%, #60a5fa 100%); color: #fff; }

/* macOS tall card */
.plat-macos .plat-top { margin-bottom: 0; }
.plat-device-macos { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 12px; }
.plat-device-macos img { max-width: 100%; max-height: 260px; object-fit: contain; }

/* iOS wide card — photo overlays gradient, no inner containers */
.plat-ios .plat-top  { position: relative; z-index: 2; }
.plat-ios .plat-body { margin-top: auto; position: relative; z-index: 2; max-width: 52%; }
.plat-ios-photo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 1; }
.plat-ios-photo img { width: 180px; height: auto; display: block; }


/* Shared */
.plat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.plat-icon { font-size: 28px; }
.plat-ios .plat-icon { color: #3b0764; }
.plat-name { font-size: 16px; font-weight: 600; opacity: .65; }
.plat-body { padding-top: 10px; }
.plat-heading { font-size: 16px; font-weight: 700; margin: 0 0 3px; }
.plat-sub { font-size: 12px; opacity: .72; margin: 0; }
.plat-bottom { margin-top: auto; }
.plat-dl-btn { display: block; border: 1.5px solid currentColor; border-radius: 6px; padding: 7px 18px; font-size: 13px; opacity: .85; text-align: center; }
.plat-dl-icon { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; opacity: .55; position: absolute; bottom: 18px; right: 18px; }
.plat-ios .plat-dl-icon { color: #3b0764; }

/* Responsive: below 1240px → 2-column fallback */
@media (max-width: 1240px) {
  .plat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 220px; }
  .plat-macos   { grid-column: 1; grid-row: 1 / 3; }
  .plat-ios     { grid-column: 2; grid-row: 1; }
  .plat-android { grid-column: 1 / 3; grid-row: 3; }
  .plat-windows { grid-column: 1 / 3; grid-row: 4; }
  .plat-grid    { grid-template-rows: 280px 220px 180px 180px; }
}
@media (max-width: 700px) {
  .plat-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .plat-macos, .plat-ios, .plat-android, .plat-windows { grid-column: 1; grid-row: auto; min-height: 200px; }
}

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px; text-align: center;
}
.contact-card i { font-size: 36px; color: var(--primary); margin-bottom: 16px; display: block; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.contact-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ─── FOOTER ─── */
.site-footer { background: var(--surface-2); width: 100%; }
.footer-slim-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm);
  height: 55px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 13px; color: var(--text-muted); margin: 0; font-family: var(--font-small); }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--primary); text-decoration: none; white-space: nowrap;
  transition: opacity var(--transition); }
.footer-links a:hover { opacity: .7; text-decoration: none; }

/* ─── DOWNLOAD CARDS ─── */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }

/* ─── MOBILE ─── */
@media (max-width: 991px) {
  .nav-links { display: none; position: fixed; top: 80px; left: var(--space-sm); right: var(--space-sm);
    flex-direction: column; background: var(--bg);
    border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 12px 12px;
    padding: var(--space-sm) 0; z-index: 999;
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { display: block; padding: 12px var(--space-sm); border-radius: 0; }
  .mobile-lang { display: flex; gap: 12px; padding: var(--space-sm) var(--space-sm) 8px; flex-wrap: wrap; justify-content: center; }
  .nav-links > li.mobile-lang > a { display: inline-block; font-size: 14px; line-height: 1.4;
    color: var(--text-muted); padding: 5px 12px; white-space: nowrap;
    border: 1px solid var(--border); border-radius: var(--radius-xl); }
  .nav-links > li.mobile-lang > a.active { color: var(--primary); border-color: var(--primary); }
  .nav { padding: 0; }
  .brand { padding-left: var(--space-sm); }
  .nav-toggle { display: block; padding: 8px var(--space-sm); }
  .nav-right { display: none; }

  .split-row, .split-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .faq-split { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-slim-inner { height: auto; min-height: 55px; padding: 8px var(--space-sm); flex-wrap: wrap; align-items: flex-start; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .node-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { gap: 0; }
  .trust-item { padding: 8px 16px; }
  .trust-divider { display: none; }
}

@media (max-width: 575px) {
  .btn-cta-lg, .btn-outline { width: 100%; max-width: 320px; text-align: center; }
  .section { padding: 48px var(--space-sm); }
  .footer-slim-inner { flex-direction: column; align-items: flex-start; padding: 12px var(--space-sm); gap: 8px; }
  .footer-links { flex-wrap: wrap; gap: 10px; }
  .footer-links a { white-space: normal; }
  .guarantee-banner { padding: 40px 24px; }
  .guarantee-banner h2 { font-size: 22px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}

/* ─── EARTH HERO ANIMATION ─── */
.earth-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  min-height: calc(100svh - 80px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 38%, rgba(25, 84, 219, 0.15), transparent 38%),
    #02040b;
}

.earth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 4, 11, 0.08), transparent 42%, rgba(2, 4, 11, 0.28)),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}


.earth-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
}


.earth-hero__content {
  position: relative;
  z-index: 6;
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding-top: clamp(260px, calc(38svh - 30px), 420px);
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.earth-hero__eyebrow {
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.earth-hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  color: #fff;
}

.earth-hero__lead {
  max-width: none;
  margin: 20px auto 0;
  color: rgba(225, 235, 255, 0.74);
  font-size: clamp(13px, 0.98vw, 14.5px);
  line-height: 1.6;
}

.earth-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 26px;
  border: 1px solid rgba(190, 220, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #3291ff, #1557e8);
  box-shadow:
    0 0 16px rgba(48, 132, 255, 0.9),
    0 0 44px rgba(48, 132, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.earth-hero__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  text-decoration: none;
}

.earth-hero__status {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .earth-hero { height: max(720px, 100svh); }
  .earth-hero__content {
    width: min(900px, calc(100% - 28px));
    padding-top: clamp(220px, calc(33svh - 20px), 300px);
  }
  .earth-hero h1 { font-size: clamp(28px, 9vw, 44px); }
}


/* ── Header custom icons ── */
.header-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

/* Strip box from lang/theme icon buttons */
.lang-btn, .theme-toggle {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 4px !important;
}
.lang-btn:hover, .theme-toggle:hover {
  background: none !important;
  border-color: transparent !important;
}

/* Language icon: black in light theme, white in dark theme */
[data-theme="dark"] .icon-lang { filter: invert(1); }

/* Theme toggle: show sun in light, moon in dark */
.icon-theme-dark { display: none; }
[data-theme="dark"] .icon-theme-light { display: none; }
[data-theme="dark"] .icon-theme-dark  { display: block; }
