/* Shadowrocket mirror — style.css
   Design tokens measured from shadowrockets.app */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Sora:wght@600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  /* ── Brand colours (measured from shadowrockets.app) ── */
  --primary:        #6964E2;
  --primary-dark:   #534FC8;
  --brand-2:        #8A86F0;
  --brand-3:        #C7A6FF;
  --brand-line:     rgba(138,134,240,0.45);
  --brand-soft:     rgba(105,100,226,0.18);
  --grad:           linear-gradient(90deg,#6964E2,#8A86F0);
  --gold:           #FDE7A7;
  --gold-text:      #6B4B00;
  --ok:             #4ADE80;

  /* ── Surfaces & text ── */
  --bg:             #0B0B14;
  --bg-2:           #10101E;
  --header-bg:      #0B0B14;
  --surface:        rgba(255,255,255,0.03);
  --surface-2:      rgba(255,255,255,0.06);
  --text:           #F3F2FF;
  --text-2:         #C9C7E3;
  --text-muted:     #A9A6C8;
  --faint:          #7E7BA3;
  --border:         rgba(255,255,255,0.08);
  --line:           rgba(255,255,255,0.08);
  --line-2:         rgba(255,255,255,0.16);
  --dark:           #0B0B14;
  --green:          #4ADE80;
  --red:            #f87171;

  /* ── Radius ── */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  /* ── Shadows ── */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:    0 30px 80px rgba(0,0,0,0.55);

  /* ── Spacing ── */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  /* ── Motion ── */
  --transition:   0.2s ease;
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --dur-fast:     150ms;
  --dur-md:       250ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans','Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #b4b1ff; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 {
  font-family: 'Sora','IBM Plex Sans','Noto Sans SC',system-ui,sans-serif;
  margin-top: 0; line-height: 1.15; letter-spacing: -0.01em; color: var(--text);
}
h1 { font-size: clamp(32px,5vw,56px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px,3.2vw,38px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; color: var(--text-muted); }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,11,20,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  font-family: 'Sora',sans-serif; font-weight: 600; font-size: 18px; color: var(--text);
}
.brand:hover { color: var(--text); text-decoration: none; }
.logo { height: 34px; width: 34px; border-radius: 9px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: flex-end;
}
.nav-links > li > a {
  color: var(--text-2); font-size: 15px;
  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(--surface-2); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0;
}

/* mobile-only lang row */
.mobile-lang { display: none; }

/* ─── DROPDOWN ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #1a1a2e; border: 1px solid var(--line-2);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text-2); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.dropdown-toggle {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--text-2); font-size: 15px; padding: 8px 12px;
  transition: color var(--transition);
}
.dropdown-toggle:hover { color: var(--text); }
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--grad); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: opacity var(--transition), transform var(--dur-fast) var(--ease);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }
.btn-cta.btn-lg {
  height: 52px; padding: 0 28px; border-radius: 14px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 0 32px rgba(105,100,226,0.45);
}
.btn-cta.btn-lg:hover { box-shadow: 0 0 40px rgba(105,100,226,0.6); }
.btn-secondary {
  height: 52px; padding: 0 24px; border-radius: 14px;
  font-size: 16px; font-weight: 600;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  display: inline-flex; align-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--brand-line); text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 22px; padding: 6px;
  order: 99; flex-shrink: 0;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  background: var(--bg);
  padding: 100px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 78% -15%, rgba(105,100,226,0.42) 0%, transparent 55%),
    radial-gradient(circle at -10% 60%, rgba(135,58,183,0.28) 0%, transparent 50%);
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-content { z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-3); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 12px; color: var(--text); }
.hero p { font-size: clamp(16px,2vw,18px); color: var(--text-2); margin-bottom: 32px; max-width: 520px; }
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { max-height: 500px; width: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  text-align: center; padding: 72px 24px 56px;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(105,100,226,0.35) 0%, transparent 60%);
}
.page-hero h1 { position: relative; font-size: clamp(26px,4vw,44px); margin-bottom: 16px; color: var(--text); }
.page-hero p { position: relative; font-size: 18px; color: var(--text-2); max-width: 620px; margin: 0 auto 28px; }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) 24px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(22px,3.5vw,36px); margin-bottom: var(--space-sm); color: var(--text); }
.section-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 620px; margin: 0 auto var(--space-lg); text-align: center;
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: border-color var(--dur-md) var(--ease), transform var(--dur-md) var(--ease);
}
.feature-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--space-sm); color: var(--brand-2);
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── PHONE ROW ─── */
.phones-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: var(--space-lg);
}
.phones-row img { max-height: 360px; width: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ─── SCREENSHOTS ─── */
.screenshots-section { padding: var(--space-xl) 24px; }
.screens-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md);
  margin-top: var(--space-md);
}
.screens-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.pricing-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.pricing-period { font-size: 13px; color: var(--faint); margin-bottom: var(--space-sm); }
.pricing-cta { margin-top: auto; padding-top: var(--space-sm); }
.pricing-cta .btn-cta { display: block; text-align: center; width: 100%; }

/* ─── COMPARE TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left;
  font-size: 14px; color: var(--text-2);
}
.compare-table th { color: var(--text); font-weight: 700; background: var(--surface); }
.compare-table .highlight { background: var(--brand-soft); color: var(--text); font-weight: 700; }

/* ─── BULLETS ─── */
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin: 7px 0; color: var(--text-muted); font-size: 15px; }

/* ─── PAYMENT METHODS ─── */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li {
  list-style: none; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px 16px;
  font-weight: 600; font-size: 14px; color: var(--text-2);
  background: var(--surface);
}

/* ─── DEVICE CARDS ─── */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.device-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-md);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--transition);
}
.device-card:hover { border-color: var(--brand-line); }
.device-card .device-icon { font-size: 34px; color: var(--brand-2); }
.device-card h3 { margin: 0; font-size: 18px; color: var(--text); }
.device-card h3 a { color: inherit; }
.device-card ul { padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 3px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); transition: color var(--transition);
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--brand-2); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 16px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-2); color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 24px var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 34px; width: 34px; border-radius: 9px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; color: var(--faint); }
.footer-heading { color: var(--text-2); font-size: 13px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--faint); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: var(--space-sm);
  font-size: 13px; color: var(--faint);
}

/* ─── UPDATE DATE (§18) ─── */
time.updated { display: inline-block; margin: 0 0 var(--space-sm); font-size: 13px; color: var(--faint); }
.hero time.updated { color: rgba(255,255,255,.55); }

/* ─── MOBILE MENU ─── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }                          /* M7 */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    height: auto; max-height: none; overflow: visible;
    background: rgba(11,11,20,0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; color: var(--text-2); }
  .nav-links > li > a:hover { background: var(--surface); }
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 14px 0; font-size: 17px; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel,
  .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }    /* M4 M8 */
  .nav-links .dropdown-panel-inner { background: var(--surface); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { color: var(--text-2); text-align: center; }

  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  /* lang in mobile menu */
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--line); width: 100%;
  }

  /* hero */
  .hero { padding: 60px 16px 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(28px,8vw,42px); }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn-cta, .hero-cta-group .btn-secondary {
    width: max-content; max-width: 90%; display: block; text-align: center;
    margin-left: auto; margin-right: auto;
  }

  /* layouts */
  .footer-grid { grid-template-columns: 1fr 1fr; }    /* M21 */
  .footer-brand { grid-column: 1 / -1; }
  .screens-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .phones-row img { max-height: 240px; }

  /* inner page hero CTA centering */
  .page-hero .btn-cta, .section .btn-cta {
    display: block; margin-left: auto; margin-right: auto;
    text-align: center; width: max-content; max-width: 90%;
  }
  .hero-cta-group { justify-content: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }    /* M21 stays two columns on phones */
}

/* ─── M9 sticky header ─── */
.site-header { position: sticky; top: 0; z-index: 1000; }

/* ─── M3/M4/M8 dropdown ─── */
.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }

/* ─── Stats bar ─── */
.stats-bar {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin: 2rem 0 0;
}
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat strong { font-size: 1.6rem; font-weight: 700; font-family: 'Sora', sans-serif; color: var(--text); }
.stat span { font-size: .85rem; color: var(--text-muted); }

/* ─── Numbered steps ─── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: .5rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 2.8rem; height: 2.8rem;
  border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; font-family: 'Sora', sans-serif; color: #fff;
}
.step h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; }
.step p  { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.6; }

/* ─── Notes list ─── */
.notes-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.notes-list li {
  padding: .75rem 1rem; background: var(--surface);
  border-left: 3px solid var(--brand-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem; color: var(--text-muted); line-height: 1.6;
}

/* ─── Version list ─── */
.version-list { display: flex; flex-direction: column; gap: 2rem; margin-top: .5rem; }
.version-item { border-bottom: 1px solid var(--line); padding-bottom: 1.75rem; }
.version-item:last-child { border-bottom: none; }
.version-date { font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.version-item h3 { margin: 0 0 .6rem; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.version-item p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.7; }

/* ─── Premium benefits grid ─── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: .5rem;
}
.benefit-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.4rem 1.5rem;
}
.benefit-card .benefit-icon { font-size: 1.4rem; color: var(--primary); margin-bottom: .75rem; }
.benefit-card h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 600; }
.benefit-card p  { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.6; }

@media (max-width: 768px) {
  .stats-bar { gap: 1.5rem; }
  .stat strong { font-size: 1.3rem; }
  .step-num { width: 2.2rem; height: 2.2rem; font-size: .75rem; }
}
