/* ================================================================
   Torrento — Unified Stylesheet
   ================================================================ */

/* -- Reset & Variables -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:          #080b10;
  --bg-card:     #0f1318;
  --bg-card2:    #141920;
  --border:      rgba(255,255,255,.07);
  --border-glow: rgba(124,91,255,.35);
  --accent:      #7c5bff;
  --accent2:     #4fc3f7;
  --accent3:     #00e5a0;
  --text:        #e8eaf0;
  --text-muted:  #7a8294;
  --radius:      16px;
  --radius-sm:   10px;
  --sidebar-w:   260px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .88em; background: rgba(255,255,255,.06);
  padding: 2px 6px; border-radius: 4px;
}
pre {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  overflow-x: auto; font-size: .82rem; line-height: 1.7; margin: 14px 0;
}
pre code { background: none; padding: 0; font-size: inherit; }

/* -- Noise overlay ------------------------------------------------ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* -- Background gradients ----------------------------------------- */
.grad-blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}

/* -- Layout ------------------------------------------------------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--narrow { max-width: 800px; }

/* -- Tags / pills ------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,91,255,.12);
  border: 1px solid rgba(124,91,255,.25); border-radius: 100px;
  padding: 4px 12px; margin-bottom: 16px;
}
.tag svg { width: 12px; height: 12px; }
.tag.tag-green {
  color: var(--accent3); background: rgba(0,229,160,.1);
  border-color: rgba(0,229,160,.25);
}

/* -- Typography --------------------------------------------------- */
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: 12px; max-width: 540px; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; }
.page-lead { color: var(--text-muted); font-size: 1rem; margin-top: 12px; }

/* -- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .22s ease; border: none; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #7c5bff 0%, #5b3fda 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,91,255,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,91,255,.6); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.btn-green {
  background: linear-gradient(135deg, #00e5a0 0%, #00b880 100%);
  color: #080b10;
  box-shadow: 0 4px 24px rgba(0,229,160,.35);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,160,.5); }
.btn-disabled { background: rgba(255,255,255,.04); color: var(--text-muted); border: 1px solid var(--border); cursor: default; opacity: .7; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: 14px; }

/* -- Nav ---------------------------------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 16px 0;
  transition: background .3s, backdrop-filter .3s;
}
nav.scrolled {
  background: rgba(8,11,16,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav.nav-solid {
  background: rgba(8,11,16,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.nav-inner--wide { max-width: 1280px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--text) !important;
  text-decoration: none !important;
}
.nav-logo:hover { text-decoration: none !important; }
.nav-logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav-logo span { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; color: var(--text-muted) !important; transition: color .2s; text-decoration: none !important; }
.nav-links a:hover { color: var(--text) !important; }

/* Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-drop-trigger { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-drop-trigger::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid var(--text-muted); margin-top: 2px;
}
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: 180px; background: #0f1318; border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; opacity: 0; visibility: hidden;
  transition: all .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
}
.nav-dropdown:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a {
  display: block !important; padding: 8px 12px !important; border-radius: 8px !important;
  font-size: 0.85rem !important; color: var(--text-muted) !important; transition: all 0.2s;
  text-decoration: none !important;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,0.05) !important; color: var(--text) !important; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta a { text-decoration: none !important; }

/* -- Footer ------------------------------------------------------- */
footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}
.footer-logo:hover { text-decoration: none; }
.footer-logo img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: var(--text-muted); transition: color .2s; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: .8rem; color: var(--text-muted); }

/* -- Animations --------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ================================================================
   HOME PAGE
   ================================================================ */

/* Hero */
#home-hero {
  position: relative; overflow: hidden;
  padding: 180px 0 120px; text-align: center;
}
#home-hero .grad-blob.a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,91,255,.25) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
}
#home-hero .grad-blob.b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,195,247,.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-badge { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.03em;
}
.hero-title .line2 {
  background: linear-gradient(135deg, #7c5bff 0%, #4fc3f7 60%, #00e5a0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 24px auto 40px;
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Phone mockups */
.phones-duo {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 24px; margin: 80px auto 0; max-width: 720px;
}
.phone-wrap { position: relative; flex: 0 0 auto; width: 280px; }
.phone-wrap.phone-left { margin-top: 0; animation: float 5s ease-in-out infinite; }
.phone-wrap.phone-right { margin-top: 60px; animation: float 5s ease-in-out infinite; animation-delay: -2.5s; }
.phone {
  background: #0d1117;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 44px; padding: 16px 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 120px rgba(0,0,0,.8), 0 0 80px rgba(124,91,255,.15);
  position: relative; overflow: hidden;
}
.phone::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #0d1117;
  border-radius: 0 0 18px 18px;
  border: 2px solid rgba(255,255,255,.08); border-top: none; z-index: 5;
}
.phone-screen { background: #080b10; border-radius: 36px; overflow: hidden; position: relative; }
.phone-glow {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(124,91,255,.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Clients */
#home-clients { padding: 80px 0; text-align: center; }
.clients-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 28px; }
.clients-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.client-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
  font-size: .9rem; font-weight: 600;
  transition: border-color .2s, transform .2s;
}
.client-chip:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.client-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Features */
#home-features { padding: 80px 0 100px; position: relative; overflow: hidden; }
#home-features .grad-blob.a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,91,255,.12) 0%, transparent 70%);
  top: 0; left: -200px;
}
#home-features .grad-blob.b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,195,247,.08) 0%, transparent 70%);
  bottom: 0; right: -100px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 60px;
}
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.feat-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; flex-shrink: 0;
}
.feat-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feat-body { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.feat-card.wide { grid-column: 1 / -1; display: flex; gap: 40px; align-items: center; }
.feat-card.wide .feat-content { flex: 1; }
.feat-card.wide .feat-visual { flex: 1; min-width: 0; }

/* Multi-select demo */
.multiselect-demo { display: flex; flex-direction: column; gap: 8px; }
.ms-row {
  display: flex; align-items: center; gap: 10px;
  background: #141920; border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 10px 14px; transition: border-color .2s;
}
.ms-row.selected { border-color: rgba(124,91,255,.4); background: rgba(124,91,255,.06); }
.ms-check {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.ms-check.on { background: var(--accent); border-color: var(--accent); }
.ms-check.on::after { content: '\2713'; font-size: 10px; color: #fff; }
.ms-name { font-size: .8rem; font-weight: 500; flex: 1; }
.ms-size { font-size: .75rem; color: var(--text-muted); }
.ms-actions { display: flex; gap: 6px; margin-top: 10px; }
.ms-btn {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 8px;
  font-size: .72rem; font-weight: 600;
}
.ms-btn.pause { background: rgba(255,255,255,.06); color: var(--text-muted); }
.ms-btn.resume { background: rgba(0,229,160,.12); color: #00e5a0; }
.ms-btn.delete { background: rgba(255,80,80,.1); color: #ff5050; }

/* Connect section (home page) */
#home-connect {
  padding: 100px 0 120px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,229,160,.025) 0%, transparent 48%, rgba(124,91,255,.03) 100%);
}
#home-connect .grad-blob.a {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0,229,160,.12) 0%, transparent 70%);
  top: -180px; right: -140px;
}
#home-connect .grad-blob.b {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(124,91,255,.09) 0%, transparent 70%);
  bottom: -120px; left: -180px;
}
.connect-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 24px; align-items: stretch;
}
.connect-brand {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, #00e5a0 0%, #4fc3f7 50%, #7c5bff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.connect-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  color: var(--text);
}
.connect-lead {
  color: var(--text-muted); font-size: 1.05rem;
  line-height: 1.72; max-width: 620px; margin: 18px 0 24px;
}
.connect-points {
  list-style: none; display: grid; gap: 12px;
  margin-bottom: 28px; max-width: 620px;
}
.connect-points li {
  position: relative; padding-left: 20px;
  color: var(--text-muted); font-size: .95rem; line-height: 1.65;
}
.connect-points li::before {
  content: '\2022'; position: absolute; left: 0;
  color: var(--accent3); font-size: 1.1rem; line-height: 1;
}
.connect-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.connect-aside { display: grid; gap: 16px; }
.connect-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .25s, transform .25s;
}
.connect-panel:hover { border-color: rgba(0,229,160,.22); transform: translateY(-3px); }
.connect-panel h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.connect-panel p { color: var(--text-muted); font-size: .86rem; line-height: 1.6; }
.connect-mini-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: 18px;
}
.connect-mini-card {
  padding: 16px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03);
}
.connect-mini-card strong {
  display: block; margin-bottom: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.connect-mini-card span { display: block; font-size: .88rem; font-weight: 700; line-height: 1.4; }

/* How it works */
#home-how { padding: 80px 0 100px; }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 60px;
}
.step {
  position: relative; text-align: center; padding: 32px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-number {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #7c5bff, #4fc3f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; margin: 0 auto 18px;
}
.step-title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.step-body { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* Themes */
#home-themes { padding: 80px 0 100px; }
.theme-showcase { display: flex; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.theme-card {
  flex: 1; min-width: 200px; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; transition: transform .2s;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-header {
  padding: 12px 16px; font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.theme-body { padding: 12px 16px 20px; }
.theme-row { height: 8px; border-radius: 4px; margin-bottom: 7px; }
.theme-color-dots { display: flex; gap: 6px; margin-top: 12px; }
.color-dot {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: border-color .2s;
}
.color-dot.active { border-color: #fff; }

/* Premium */
#home-premium { padding: 80px 0 100px; position: relative; overflow: hidden; }
#home-premium .grad-blob.a {
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,91,255,.15) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
}
.pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  transition: border-color .25s, transform .25s;
}
.price-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.price-card.featured {
  background: linear-gradient(135deg, rgba(124,91,255,.12) 0%, rgba(79,195,247,.06) 100%);
  border-color: rgba(124,91,255,.35);
}
.price-card.featured-green {
  background: linear-gradient(135deg, rgba(0,229,160,.1) 0%, rgba(124,91,255,.06) 100%);
  border-color: rgba(0,229,160,.3);
}
.price-card-tag {
  display: inline-flex; padding: 4px 12px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 16px;
}
.price-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.price-card .price-desc { font-size: .88rem; color: var(--text-muted); margin-bottom: 20px; }
.price-card ul { list-style: none; text-align: left; }
.price-card ul li {
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.price-card.featured ul li::before { background: var(--accent); }
.price-card.featured-green ul li::before { background: var(--accent3); }
.price-card:not(.featured):not(.featured-green) ul li::before { background: var(--text-muted); }


/* ================================================================
   CONNECT PAGE
   ================================================================ */

.connect-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px;
  position: relative; overflow: hidden;
  background: #080b10; /* Dark graphite base */
}

/* Atmospheric Mist */
.connect-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 180, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 91, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(8, 11, 16, 0) 0%, #080b10 100%);
  pointer-events: none;
  z-index: 1;
}

/* Calm zone for text readability */
.connect-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(8, 11, 16, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

#glyph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  display: block;
}

.connect-hero .container {
  position: relative;
  z-index: 10;
}
.connect-hero .hero-content { max-width: 720px; }
.connect-hero .hero-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
}
.connect-hero .hero-lead {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.72;
  margin-top: 18px; max-width: 620px;
}
.connect-hero .hero-cta { justify-content: flex-start; margin-top: 28px; }

/* Connect page sections */
.pg-connect .section { padding: 80px 0; }
.pg-connect .section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pg-connect .section-header .section-sub { max-width: none; }

/* Connect steps */
.connect-steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.connect-step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.connect-step-card:hover { border-color: rgba(0,229,160,.22); transform: translateY(-3px); }
.connect-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,229,160,.12); color: var(--accent3);
  font-size: .9rem; font-weight: 800; margin-bottom: 16px;
}
.connect-step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.connect-step-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* Connect benefits */
.benefits-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.benefit-card:hover { border-color: rgba(0,229,160,.22); transform: translateY(-3px); }
.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* Connect platforms */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .25s, transform .25s;
}
.platform-card:hover { border-color: rgba(0,229,160,.22); transform: translateY(-3px); }
.platform-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }
.platform-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 12px;
}
.platform-badge.available { background: rgba(0,229,160,.12); color: #00e5a0; }
.platform-badge.soon { background: rgba(255,183,77,.1); color: #ffb74d; }
.platform-badge.later { background: rgba(255,255,255,.06); color: var(--text-muted); }

/* Connect callout card */
.callout-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  border-left: 3px solid var(--accent);
}
.callout-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.callout-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.callout-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.section-border { border-top: 1px solid var(--border); }


/* ================================================================
   DOWNLOADS PAGE
   ================================================================ */

.dl-hero {
  --hero-extra-space: 0px;
  padding: 180px 0 calc(80px + var(--hero-extra-space));
  text-align: center; position: relative; overflow: visible;
  transition: padding-bottom .18s ease;
  z-index: 10;
}
.dl-hero .grad-blob.a {
  width: 700px; height: 700px; top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124,91,255,.2) 0%, transparent 70%);
}
.dl-hero .grad-blob.b {
  width: 400px; height: 400px; bottom: -100px; right: -50px;
  background: radial-gradient(circle, rgba(0,229,160,.1) 0%, transparent 70%);
}
.dl-hero-icon {
  width: 72px; height: 72px; border-radius: 18px;
  margin: 0 auto 24px; box-shadow: 0 8px 40px rgba(124,91,255,.4);
}
.dl-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.dl-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 32px; }
.dl-hero-btn {
  margin-bottom: 12px; display: inline-flex; border-radius: 14px;
  overflow: visible; position: relative; width: min(100%, 620px);
}
.dl-hero-sub { font-size: .82rem; color: var(--text-muted); }

/* Split download button */
.dl-split {
  display: inline-flex; border-radius: 14px; overflow: hidden; width: 100%;
  box-shadow: 0 4px 24px rgba(124,91,255,.45);
  transition: box-shadow .22s, transform .22s;
}
.dl-split:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,91,255,.6); }
.dl-split.is-green { box-shadow: 0 4px 24px rgba(0,229,160,.35); }
.dl-split.is-green:hover { box-shadow: 0 8px 32px rgba(0,229,160,.5); }
.dl-split.is-disabled { box-shadow: none; opacity: .7; }
.dl-split.is-disabled:hover { transform: none; }
.dl-split.is-disabled .dl-split-main { pointer-events: none; }
.dl-split-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex: 1 1 auto; padding: 16px 24px; font-size: 1.1rem; font-weight: 600;
  border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #7c5bff, #5b3fda);
  text-decoration: none; transition: background .2s;
}
.dl-split-main.green { background: linear-gradient(135deg, #00e5a0, #00b880); color: #080b10; }
.dl-split-main.disabled { background: rgba(255,255,255,.06); color: var(--text-muted); cursor: default; }
.dl-split-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; border: none; cursor: pointer;
  border-left: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(135deg, #6a4fe0, #4f35c4);
  color: rgba(255,255,255,.85); font-size: .7rem; transition: background .2s;
}
.dl-split-trigger:hover { background: linear-gradient(135deg, #5b3fda, #3d28b0); }
.dl-split-trigger.green { background: linear-gradient(135deg, #00cc8e, #00a870); }
.dl-split-trigger.green:hover { background: linear-gradient(135deg, #00b880, #009960); }

/* Dropdown */
.dl-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; left: auto;
  width: min(360px, calc(100vw - 48px)); max-height: 380px; overflow-y: auto;
  background: #141920; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 6px; z-index: 50;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity .18s, visibility .18s, transform .18s;
}
.dl-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dl-dropdown::-webkit-scrollbar { width: 4px; }
.dl-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.dl-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px; border-radius: 10px;
  font-size: .88rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background .15s; text-decoration: none;
  border: none; background: transparent; text-align: left;
}
.dl-dropdown-item:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.dl-dropdown-item.active { background: rgba(124,91,255,.12); }
.dl-dropdown-item .dl-dd-icon { width: 28px; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.dl-dropdown-item .dl-dd-info { flex: 1; }
.dl-dropdown-item .dl-dd-label { display: block; line-height: 1.2; }
.dl-dropdown-item .dl-dd-sub { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.dl-dropdown-item .dl-dd-badge {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 8px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}
.dl-dd-badge.avail { background: rgba(0,229,160,.15); color: #00e5a0; }
.dl-dd-badge.manual { background: rgba(79,195,247,.14); color: #4fc3f7; }
.dl-dd-badge.soon { background: rgba(255,183,77,.12); color: #ffb74d; }

/* Download section & cards */
.section-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-label span { color: var(--accent3); }
.dl-section { padding: 0 0 80px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s;
}
.dl-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.dl-card.featured {
  border-color: rgba(0,229,160,.25);
  background: linear-gradient(135deg, rgba(0,229,160,.05), rgba(124,91,255,.03));
}
.dl-card.full { grid-column: 1 / -1; }
.dl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dl-card h3 { font-size: 1.05rem; font-weight: 800; }
.dl-badge {
  padding: 3px 10px; border-radius: 100px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; white-space: nowrap;
}
.dl-badge.available { background: rgba(0,229,160,.15); color: #00e5a0; }
.dl-badge.manual { background: rgba(79,195,247,.14); color: #4fc3f7; }
.dl-badge.soon { background: rgba(255,183,77,.12); color: #ffb74d; }
.dl-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.dl-card .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-card .btn { font-size: .82rem; padding: 9px 18px; }

/* Command block (downloads) */
.cmd {
  margin: 12px 0 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.cmd code { flex: 1; font-size: .8rem; background: none; padding: 0; word-break: break-all; color: var(--accent3); }


/* ================================================================
   DOCS PAGE
   ================================================================ */

/* Links inherit accent2 in docs content/sidebar only */
.docs-content a:not(.btn), .sidebar a, .docs-footer a { color: var(--accent2); }
.docs-content a:not(.btn):hover { text-decoration: underline; }

/* Layout */
.docs-layout {
  display: flex; gap: 0; max-width: 1280px; margin: 0 auto;
  padding-top: 64px; min-height: 100vh; position: relative; z-index: 1;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; padding: 28px 20px 40px 24px;
  border-right: 1px solid var(--border);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
.sidebar-group { margin-bottom: 24px; }
.sidebar-group-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
  margin-bottom: 8px; padding-left: 10px;
}
.sidebar-link {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: .85rem; color: var(--text-muted); transition: all .15s;
  text-decoration: none; margin-bottom: 2px;
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,.04); text-decoration: none; }
.sidebar-link.active { color: var(--accent2); background: rgba(79,195,247,.08); font-weight: 600; }

/* Content */
.docs-content { flex: 1; min-width: 0; padding: 36px 48px 80px; max-width: 820px; }

/* Doc sections */
.doc-section { margin-bottom: 40px; scroll-margin-top: 100px; }
.doc-section h2 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.doc-section h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.doc-section p { font-size: .92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.doc-section ul, .doc-section ol { padding-left: 22px; margin: 10px 0 16px; }
.doc-section li { font-size: .9rem; color: var(--text-muted); line-height: 1.75; padding: 3px 0; }
.doc-section strong { color: var(--text); }

/* Callouts (docs) */
.callout {
  margin: 16px 0; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(124,91,255,.06); border: 1px solid rgba(124,91,255,.2);
  font-size: .88rem; color: var(--text-muted);
}
.callout strong { color: var(--text); }
.callout.tip { background: rgba(0,229,160,.06); border-color: rgba(0,229,160,.2); }
.callout.warn { background: rgba(255,183,77,.06); border-color: rgba(255,183,77,.2); }

/* Command block (docs) */
.cmd-block {
  margin: 14px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.cmd-block code { flex: 1; font-size: .82rem; background: none; padding: 0; word-break: break-all; color: var(--accent3); }

/* Copy button (shared) */
.copy-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,.06); color: var(--text);
  font-size: .72rem; font-weight: 600; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,.12); }

/* Sidebar toggle (mobile) */
.sidebar-toggle {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 1.2rem; box-shadow: 0 4px 20px rgba(124,91,255,.5);
}

/* Docs footer */
.docs-footer { padding: 32px 48px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted); }


/* ================================================================
   PRIVACY PAGE
   ================================================================ */

.privacy-hero { padding: 160px 0 40px; }

.article {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px; margin-top: 32px;
}
.article h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: .95rem; font-weight: 700; margin: 20px 0 8px; }
.article p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.article ul { padding-left: 20px; margin: 10px 0; }
.article li { font-size: .88rem; color: var(--text-muted); line-height: 1.7; padding: 3px 0; }
.article a { color: var(--accent); }
.article a:hover { text-decoration: underline; }


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 960px) {
  .connect-shell { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  .connect-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar {
    display: none; position: fixed; top: 64px; left: 0; width: 280px;
    height: calc(100vh - 64px); z-index: 90; background: var(--bg);
    border-right: 1px solid var(--border);
  }
  .sidebar.open { display: block; }
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .docs-content { padding: 28px 24px 60px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .feat-card.wide { flex-direction: column; }
  .hero-meta { gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .phones-duo { gap: 12px; }
  .phone-wrap { width: 220px; }
  .phone-wrap.phone-right { margin-top: 40px; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-card.full { grid-column: auto; }
  .connect-steps-grid { grid-template-columns: 1fr; }
  .benefits-split { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .callout-card { padding: 28px 20px; }
  .article { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .connect-mini-grid { grid-template-columns: 1fr; }
  .connect-status-item { flex-direction: column; }
  .connect-status-badge { min-width: 0; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .phone-wrap.phone-right { display: none; }
  .phones-duo { justify-content: center; }
  .phone-wrap { width: 260px; }
}
