:root {
  --bg: #050505;
  --bg-soft: #0c0c0e;
  --card: rgba(20, 20, 22, 0.72);
  --card-solid: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-dim: #a8a8ad;
  --text-mute: #6b6b72;
  --accent: #f11216;
  --accent-2: #ff4b4f;
  --accent-soft: rgba(241, 18, 22, 0.14);
  --ok: #22c55e;
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Animated background */
#bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.55;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(241,18,22,0.20), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(241,18,22,0.10), transparent 70%),
    radial-gradient(50% 50% at 10% 80%, rgba(120,40,200,0.08), transparent 70%);
}
main, .nav, .footer { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  font-size: 15px; padding: 12px 22px; white-space: nowrap;
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px rgba(241,18,22,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(241,18,22,0.5); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.is-disabled { opacity: .55; pointer-events: none; filter: grayscale(0.3); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8,8,10,0.7); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.brand-logo { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.lang-switch button { background: none; border: 0; color: var(--text-mute); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; cursor: pointer; transition: .2s; }
.lang-switch button.active { background: var(--accent-soft); color: var(--accent-2); }

/* Hero */
.hero { padding: 80px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(241,18,22,0.3); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; }
.hero-sub { color: var(--text-dim); font-size: 18px; margin: 22px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.dl-btn .dl-main { display: block; font-size: 15px; line-height: 1.2; }
.dl-btn .dl-sub { display: block; font-size: 12px; font-weight: 500; opacity: .8; }
.btn-primary .dl-sub { color: rgba(255,255,255,0.85); }
.hero-checks { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--text-dim); font-size: 14px; }
.hero-checks li { color: var(--text-dim); }

/* Hero visual */
.hero-visual { position: relative; height: 440px; display: flex; align-items: center; justify-content: center; }
.globe { position: relative; width: 340px; height: 340px; }
.globe-core { position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 60%, #6b070a);
  box-shadow: 0 0 60px rgba(241,18,22,0.55); }
.globe-ring { position: absolute; inset: 0; border: 1px solid rgba(241,18,22,0.25); border-radius: 50%; }
.globe-ring.r1 { inset: 0; animation: spin 18s linear infinite; }
.globe-ring.r2 { inset: 12%; border-color: rgba(255,255,255,0.10); animation: spin 26s linear infinite reverse; }
.globe-ring.r3 { inset: 26%; border-color: rgba(241,18,22,0.18); animation: spin 14s linear infinite; }
.node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); }
.node.n1 { top: 6%; left: 50%; animation: float 4s ease-in-out infinite; }
.node.n2 { top: 50%; right: 4%; animation: float 5s ease-in-out infinite; }
.node.n3 { bottom: 8%; left: 30%; background: #fff; box-shadow: 0 0 14px #fff; animation: float 6s ease-in-out infinite; }
.node.n4 { top: 28%; left: 8%; animation: float 4.5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.app-card {
  position: absolute; bottom: 8px; right: -6px; width: 240px;
  background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: float 7s ease-in-out infinite;
}
.app-card-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); font-weight: 600; }
.app-card-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.app-card-mid { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.app-flag { font-size: 30px; }
.app-loc { font-weight: 600; font-size: 14px; }
.app-ip { font-size: 12px; color: var(--text-mute); font-family: ui-monospace, monospace; }
.app-bars .bar { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.app-bars .bar span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 3px; animation: pulseBar 1.4s ease-in-out infinite; }
.app-bars .bar span:nth-child(2){animation-delay:.1s}.app-bars .bar span:nth-child(3){animation-delay:.2s}.app-bars .bar span:nth-child(4){animation-delay:.3s}.app-bars .bar span:nth-child(5){animation-delay:.4s}.app-bars .bar span:nth-child(6){animation-delay:.5s}
@keyframes pulseBar { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* Stats */
.stats { padding: 24px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { display: flex; align-items: baseline; justify-content: center; gap: 4px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 16px; text-align: center; }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; color: #fff; }
.stat .num.inf { color: var(--accent-2); }
.stat .plus { font-size: 26px; font-weight: 700; color: var(--accent-2); }
.stat .lbl { width: 100%; color: var(--text-mute); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

/* Sections */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-dim); font-size: 17px; margin-top: 14px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s, border-color .25s, background .25s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(241,18,22,0.4); background: rgba(28,20,21,0.7); }
.feature-ic { width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* Protocol */
.protocol-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.protocol-copy h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 18px; }
.protocol-copy > p { color: var(--text-dim); font-size: 17px; margin-bottom: 24px; }
.proto-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.proto-list li { padding-left: 30px; position: relative; color: var(--text-dim); }
.proto-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 700;
  background: var(--accent-soft); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.proto-list b { color: var(--text); }
.protocol-visual { display: flex; justify-content: center; }
.flow { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 22px; width: 100%; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flow-node span { width: 60px; height: 60px; display: grid; place-items: center; font-size: 26px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.flow-node.enc span { background: var(--accent-soft); border-color: rgba(241,18,22,0.4); box-shadow: 0 0 30px rgba(241,18,22,0.3); }
.flow-node small { color: var(--text-mute); font-size: 12px; }
.flow-line { flex: 1; display: flex; gap: 6px; align-items: center; }
.flow-line i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; animation: dash 1.6s linear infinite; opacity: .4; }
.flow-line i:nth-child(2){animation-delay:.3s}.flow-line i:nth-child(3){animation-delay:.6s}
@keyframes dash { 0% { opacity: .15; } 50% { opacity: 1; } 100% { opacity: .15; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; }
.step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* Download */
.download-card { position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, rgba(28,20,21,0.85), rgba(14,14,16,0.85));
  border: 1px solid rgba(241,18,22,0.25); border-radius: 28px; padding: 60px 30px; }
.download-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px;
  background: radial-gradient(circle, rgba(241,18,22,0.35), transparent 70%); pointer-events: none; }
.download-card h2 { font-size: clamp(28px, 4vw, 40px); position: relative; }
.download-card > p { color: var(--text-dim); font-size: 17px; margin: 14px auto 34px; max-width: 480px; position: relative; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 18px; justify-content: center; position: relative; }
.platform-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 22px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); border-radius: var(--radius); transition: transform .2s, border-color .2s, background .2s; }
.platform-card:hover { transform: translateY(-5px); border-color: var(--accent-2); background: rgba(255,255,255,0.07); }
.platform-card .ic { width: 40px; height: 40px; color: var(--text); }
.platform-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; margin-top: 6px; }
.platform-meta { color: var(--text-mute); font-size: 13px; }
.platform-go { color: var(--accent-2); font-weight: 600; font-size: 14px; margin-top: 6px; }
.platform-card.is-disabled { opacity: .5; pointer-events: none; }
.download-note { color: var(--text-mute); font-size: 13px; margin-top: 28px; position: relative; }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(241,18,22,0.35); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); padding: 0 0 18px; font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-mute); font-size: 14px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; }
  .protocol-inner { grid-template-columns: 1fr; }
  .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features-grid, .steps, .download-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 50px 0; }
  .app-card { right: 50%; transform: translateX(50%); }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
