*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Dark theme (default) ── */
:root {
  --bg: #0f1117; --bg-alt: #13161f;
  --bg-card: #181b24; --bg-card-hover: #1e2230;
  --border: #252a37; --border-hover: rgba(139,92,246,0.25);
  --text: #e2e8f0; --text-secondary: #64748b; --text-muted: #475569;
  --accent: #8B5CF6; --accent2: #06b6d4;
  --gradient: linear-gradient(135deg, #8B5CF6 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-btn: linear-gradient(135deg, #8B5CF6 0%, #6366f1 100%);
  --nav-bg: rgba(15,17,23,0.8); --nav-border: rgba(255,255,255,0.04);
  --code-bg: #13161f;
  --shadow: rgba(0,0,0,0.5); --shadow-light: rgba(0,0,0,0.3);
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg: #f8fafc; --bg-alt: #f1f5f9;
  --bg-card: #ffffff; --bg-card-hover: #f8fafc;
  --border: #e2e8f0; --border-hover: rgba(139,92,246,0.3);
  --text: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8;
  --nav-bg: rgba(248,250,252,0.85); --nav-border: rgba(0,0,0,0.06);
  --code-bg: #f1f5f9;
  --shadow: rgba(0,0,0,0.08); --shadow-light: rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px); height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--text);
}
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
[data-theme="light"] .nav-btn { background: rgba(0,0,0,0.03); }
.nav-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
[data-theme="light"] .nav-btn:hover { background: rgba(0,0,0,0.06); }
.nav-btn svg { width: 16px; height: 16px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; min-width: 56px; justify-content: center;
}
[data-theme="light"] .lang-btn { background: rgba(0,0,0,0.03); }
.lang-btn:hover { color: var(--text); }
.btn-open {
  padding: 8px 20px; border-radius: 10px;
  background: var(--gradient-btn); color: #fff;
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.btn-open:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(139,92,246,0.35); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-open { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px clamp(16px, 4vw, 48px) 60px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .orb1 {
  position: absolute; top: -200px; right: -150px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%); border-radius: 50%;
}
.hero-bg .orb2 {
  position: absolute; bottom: -200px; left: -150px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.06), transparent 70%); border-radius: 50%;
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: clamp(40px, 6vw, 100px);
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
  font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-title .gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(15px, 1.8vw, 18px); color: var(--text-secondary); line-height: 1.6; margin-bottom: 36px; max-width: 480px; min-height: 3.2em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; min-width: 200px; justify-content: center;
  padding: 14px 28px; border-radius: 14px;
  background: var(--gradient-btn); color: #fff;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; min-width: 160px; justify-content: center;
  padding: 14px 28px; border-radius: 14px;
  background: var(--bg-card); color: var(--text);
  font-size: 15px; font-weight: 600; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 12px; min-width: 170px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: background 0.3s, border-color 0.3s;
}
.hero-chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Phone mockup */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.phone {
  width: 280px; background: var(--bg-card); border-radius: 36px;
  border: 1px solid var(--border); box-shadow: 0 32px 80px var(--shadow);
  overflow: hidden; position: relative; transition: background 0.3s, border-color 0.3s;
}
.phone-inner { background: var(--bg); border-radius: 30px; margin: 8px; overflow: hidden; transition: background 0.3s; }
.phone-status { display: flex; justify-content: space-between; padding: 8px 20px 4px; font-size: 10px; font-weight: 600; }
.phone-chat { padding: 12px 14px 16px; }
.phone-chat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.phone-avatar {
  width: 32px; height: 32px; border-radius: 10px; background: var(--gradient-btn);
  display: flex; align-items: center; justify-content: center;
}
.phone-avatar svg { width: 14px; height: 14px; color: #fff; }
.phone-name { font-size: 12px; font-weight: 700; }
.phone-online { font-size: 9px; color: #10b981; font-weight: 500; }
.msg { padding: 8px 12px; border-radius: 14px; font-size: 11px; line-height: 1.4; max-width: 85%; margin-bottom: 6px; }
.msg-in { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg-out { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg-time { font-size: 8px; opacity: 0.5; margin-top: 2px; }
.phone-input {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 10px; margin-top: 8px;
}
.phone-input span { font-size: 10px; color: var(--text-muted); flex: 1; }
.phone-send {
  width: 22px; height: 22px; border-radius: 7px; background: var(--gradient-btn);
  display: flex; align-items: center; justify-content: center;
}
.phone-send svg { width: 10px; height: 10px; color: #fff; }
.float-badge {
  position: absolute; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px var(--shadow-light); animation: float 3s ease-in-out infinite;
}
.float-badge.shield { width: 52px; height: 52px; top: -10px; right: -10px; background: linear-gradient(135deg, #8B5CF6, #6366f1); }
.float-badge.bolt { width: 44px; height: 44px; bottom: 30px; left: -15px; background: linear-gradient(135deg, #06b6d4, #3b82f6); animation-delay: 0.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-chips { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .hero-chip { min-width: auto; }
}

/* ── Page Header (for subpages) ── */
.page-header {
  padding: 120px clamp(16px, 4vw, 48px) 60px;
  text-align: center; position: relative; overflow: hidden;
}
.page-header .orbs { position: absolute; inset: 0; pointer-events: none; }
.page-header .orbs div:first-child {
  position: absolute; top: -150px; right: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%); border-radius: 50%;
}
.page-header .orbs div:last-child {
  position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.04), transparent 70%); border-radius: 50%;
}
.page-header h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.page-header p { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; line-height: 1.6; position: relative; z-index: 1; }

/* ── Sections ── */
.section { padding: 80px clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-sub { font-size: 16px; color: var(--text-secondary); max-width: 560px; line-height: 1.6; margin-bottom: 48px; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-card {
  padding: 28px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-light);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 20px; height: 20px; color: #fff; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Platforms grid */
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.platform-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.25s;
}
.platform-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.platform-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(139,92,246,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.platform-icon svg { width: 22px; height: 22px; color: var(--accent); }
.platform-name { font-size: 15px; font-weight: 700; }
.platform-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.platform-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: rgba(16,185,129,0.1); color: #10b981;
  font-size: 10px; font-weight: 600; margin-top: 4px;
}
.platform-badge.soon { background: rgba(139,92,246,0.1); color: var(--accent); }

/* Privacy */
.privacy-block {
  display: flex; gap: 48px; align-items: center;
  padding: 48px; border-radius: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.privacy-visual {
  flex-shrink: 0; width: 120px; height: 120px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.1));
  display: flex; align-items: center; justify-content: center;
}
.privacy-visual svg { width: 48px; height: 48px; color: var(--accent); }
.privacy-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.privacy-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.privacy-list { list-style: none; margin-top: 16px; }
.privacy-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary); padding: 6px 0;
}
.privacy-list li svg { width: 16px; height: 16px; color: #10b981; flex-shrink: 0; }
@media (max-width: 768px) {
  .privacy-block { flex-direction: column; padding: 28px; gap: 24px; text-align: center; }
  .privacy-list { display: inline-block; text-align: left; }
}

/* CTA */
.cta { text-align: center; padding: 80px clamp(16px, 4vw, 48px); max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.cta p { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  padding: 40px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; transition: border-color 0.3s;
}
.footer-left { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }
