:root {
  --bg: #050810;
  --bg-2: #0a0d14;
  --bg-3: #111b21;
  --panel: #0f1620;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --fg: #e9edef;
  --muted: #8696a0;
  --muted-strong: #aebac1;
  --accent: #00a884;
  --accent-strong: #06cf9c;
  --tick: #53bdeb;
  --warn: #ffb86b;
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-style: italic; color: var(--accent-strong); }
code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.85em; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; color: var(--accent-strong); }

.grad {
  background: linear-gradient(90deg, #06cf9c, #53bdeb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.muted { color: var(--muted); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
}
.brand-logo { filter: drop-shadow(0 0 8px rgba(0,168,132,0.4)); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 0.92rem;
}
.nav-links a { color: var(--muted-strong); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.cta-link {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.cta-link:hover { background: var(--accent-strong); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links a:not(.cta-link) { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: #00a884;
  top: -120px; left: -120px;
}
.hero-orb-2 {
  width: 600px; height: 600px;
  background: #53bdeb;
  bottom: -200px; right: -200px;
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}
.hero-waves {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  width: 100%; height: 320px;
  opacity: 0.5;
}
.wave { fill: none; stroke-width: 1.5; }
.wave-1 { stroke: rgba(0, 168, 132, 0.5); stroke-dasharray: 6 8; animation: wave 22s linear infinite; }
.wave-2 { stroke: rgba(83, 189, 235, 0.35); stroke-dasharray: 4 12; animation: wave 30s linear infinite reverse; }
.wave-3 { stroke: rgba(0, 168, 132, 0.2); stroke-dasharray: 2 6; animation: wave 40s linear infinite; }
@keyframes wave {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -200; }
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 168, 132, 0.1);
  border: 1px solid rgba(0, 168, 132, 0.3);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--accent-strong);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent-strong);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-strong);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-strong);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 168, 132, 0.3);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 168, 132, 0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
}
.trust-item svg { color: var(--accent-strong); flex-shrink: 0; }

/* ===== PHONE MOCK ===== */
.hero-phone {
  position: relative;
  z-index: 2;
  display: flex; justify-content: center;
}
.phone-frame {
  width: 320px;
  height: 660px;
  background: linear-gradient(180deg, #1a1f2a 0%, #0d1017 100%);
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #2a3340,
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(0, 168, 132, 0.12);
  position: relative;
  transform: rotate(-3deg) translateY(0);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-12px); }
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}
.phone-screen {
  background: #0b141a;
  border-radius: 36px;
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 13px;
}
.phone-header {
  display: flex; align-items: center; gap: 10px;
  padding: 50px 14px 12px;
  background: #202c33;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phone-back { font-size: 1.3rem; color: #aebac1; }
.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884 0%, #007b5e 100%);
  display: grid; place-items: center;
  font-weight: 700; color: #fff;
  font-size: 0.95rem;
}
.phone-title { display: flex; flex-direction: column; }
.phone-name { font-weight: 600; color: #e9edef; font-size: 0.95rem; }
.phone-status { color: #8696a0; font-size: 0.72rem; }

.phone-messages {
  flex: 1;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 6px;
  background:
    linear-gradient(rgba(11, 20, 26, 0.96), rgba(11, 20, 26, 0.96)),
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(255,255,255,0.012) 30px, rgba(255,255,255,0.012) 31px);
}
.phone-bubble {
  max-width: 75%;
  padding: 6px 9px 8px;
  border-radius: 8px;
  font-size: 0.83rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.4);
}
.phone-bubble.them { align-self: flex-start; background: #202c33; border-top-left-radius: 2px; }
.phone-bubble.me { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.phone-bubble.emoji {
  background: transparent !important;
  font-size: 2.2rem !important;
  padding: 4px;
  align-self: center;
}
.phone-bubble .time {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  text-align: right;
}

.phone-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: #202c33;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.phone-input-icon { font-size: 1rem; color: #8696a0; }
.phone-input {
  flex: 1;
  background: #2a3942;
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: #8696a0;
}
.phone-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #00a884;
  display: grid; place-items: center;
  color: #fff;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  .hero-actions { justify-content: center; }
  .hero-trust { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .phone-frame { transform: rotate(-2deg) scale(0.85); }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  padding: 100px 24px;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-head {
  margin-bottom: 56px;
}
.section-head.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head .eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section-head h2,
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
}
.section-head .lead { color: var(--muted-strong); font-size: 1.05rem; margin-top: 14px; line-height: 1.6; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

.frequency-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.col-text p { color: var(--muted-strong); font-size: 1rem; margin-bottom: 18px; line-height: 1.7; }
.col-text strong { color: var(--fg); }
.bullets { list-style: none; padding: 0; margin: 24px 0 0; }
.bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  color: var(--muted-strong);
}
.bullets li:last-child { border-bottom: none; }
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0; top: 10px;
  color: var(--accent-strong);
  font-weight: 700;
}
.bullets li span { color: var(--fg); font-weight: 600; }

.col-visual { display: flex; justify-content: center; }
.freq-anim {
  position: relative;
  width: 360px; height: 360px;
}
.freq-svg { width: 100%; height: 100%; }
.ring { transform-origin: center; }
.ring.r1 { animation: spin 18s linear infinite; }
.ring.r2 { animation: spin 14s linear infinite reverse; }
.ring.r3 { animation: spin 8s linear infinite; }
.core { animation: corePulse 2s ease-in-out infinite; }
@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
@keyframes corePulse {
  0%, 100% { opacity: 1; r: 20; }
  50% { opacity: 0.6; r: 24; }
}
.freq-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.freq-label-name {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.95rem;
  color: var(--accent-strong);
  font-weight: 700;
}
.freq-label-meta {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-top: 4px;
}

/* ===== FEATURES ===== */
.features-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(0,168,132,0.06) 0%, transparent 50%),
    var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 132, 0.4);
  background: rgba(0, 168, 132, 0.04);
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--fg); }
.feature-card p { color: var(--muted-strong); font-size: 0.92rem; line-height: 1.6; }

/* ===== TECH ===== */
.tech-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  position: relative;
}
.tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(83, 189, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 168, 132, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.tech-section .section-inner { position: relative; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
@media (max-width: 980px) {
  .tech-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tech-grid { grid-template-columns: 1fr; }
}
.tech-card {
  position: relative;
  padding: 32px 24px 24px;
  background: rgba(15, 22, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}
.tech-card:hover { border-color: rgba(0,168,132,0.4); transform: translateY(-4px); }
.tech-card-num {
  position: absolute;
  top: 16px; right: 20px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--accent-strong);
  font-weight: 700;
  opacity: 0.7;
}
.tech-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--fg); }
.tech-card p { color: var(--muted-strong); font-size: 0.92rem; line-height: 1.6; margin-bottom: 14px; }
.tech-card-meta {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 32px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.flow-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.flow-step.server {
  background: rgba(255, 184, 107, 0.06);
  border-color: rgba(255, 184, 107, 0.3);
}
.flow-icon { font-size: 2rem; margin-bottom: 10px; }
.flow-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.flow-desc { font-size: 0.78rem; color: var(--muted-strong); line-height: 1.5; }
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent-strong);
  font-weight: 300;
}
@media (max-width: 980px) {
  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ===== PRIVACY COMPARISON ===== */
.privacy-section {
  background: var(--bg-2);
}
.comparison {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 22, 32, 0.6);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row.comparison-head {
  background: rgba(0, 168, 132, 0.06);
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
}
.comparison-row > div {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex; align-items: center;
}
.comparison-row > div:last-child { border-right: none; }
.comparison-label { color: var(--muted-strong); font-weight: 500; }
.comparison-col { color: var(--fg); }
.comparison-col.muted { color: var(--muted); font-style: italic; }
.comparison-col .check {
  color: var(--accent-strong);
  margin-right: 8px;
  font-size: 1.2rem;
  text-shadow: 0 0 8px rgba(6, 207, 156, 0.5);
}
@media (max-width: 720px) {
  .comparison-row { grid-template-columns: 1fr; }
  .comparison-row > div { border-right: none; border-bottom: 1px dashed rgba(255,255,255,0.05); }
  .comparison-row > div:last-child { border-bottom: none; }
}

/* ===== DOWNLOAD ===== */
.download-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 880px) { .download-grid { grid-template-columns: 1fr; } }
.dl-card {
  display: block;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.dl-card:not(.disabled):hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(0, 168, 132, 0.06);
  box-shadow: 0 16px 40px rgba(0, 168, 132, 0.12);
}
.dl-card.disabled { opacity: 0.5; cursor: not-allowed; }
.dl-icon { font-size: 2.4rem; margin-bottom: 14px; }
.dl-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.dl-card p { color: var(--muted-strong); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.dl-cta {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
}
.dl-cta.muted { color: var(--muted); }

/* ===== FOOTER ===== */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-tagline { color: var(--muted-strong); font-size: 0.92rem; }
.footer-links { display: flex; gap: 24px; font-size: 0.88rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent-strong); }
.footer-copy { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* === LANGUAGE SELECTOR LANDING === */
.lang-selector { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--border-strong); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: rgba(15, 22, 32, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 200;
  flex-direction: column;
  gap: 2px;
  display: none;
}
.lang-dropdown.open { display: flex; }
.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 0.9rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}
.lang-item:hover { background: rgba(255,255,255,0.05); }
.lang-item.active { background: rgba(0, 168, 132, 0.12); color: var(--accent-strong); }
.lang-item span:first-child { font-size: 1.1rem; flex-shrink: 0; }

@media (max-width: 720px) {
  .lang-toggle { padding: 6px 10px; font-size: 0.8rem; }
  .lang-dropdown { right: -16px; }
}
