:root {
  --c-bg: #080812;
  --c-surface: #16162a;
  --c-border: #2a2a45;
  --c-primary: #9d4edd;
  --c-primary-light: #c084fc;
  --c-accent: #00d9ff;
  --c-success: #00e676;
  --c-text: #f8f8ff;
  --c-text-2: #a8a8c0;
  --c-text-3: #6b6b88;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 69, 0.5);
  padding-top: env(safe-area-inset-top);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.site-header .container > .lang-switcher {
  margin-left: auto;
}

@media (max-width: 768px) {
  .site-header .container > .header-download {
    margin-left: auto;
  }

  .site-header .container > .lang-switcher {
    margin-left: 0;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--c-text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--c-primary-light);
}

.lang-switcher {
  position: relative;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text-2);
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  list-style: none;
  margin: 0;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: block;
  padding: 10px 12px;
  color: var(--c-text-2);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(157, 78, 221, 0.15);
  color: var(--c-text);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-purple {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.orb-cyan {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  bottom: -50px;
  right: 10%;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1;
  letter-spacing: -2.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #f8f8ff, #9d4edd, #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 20px;
  color: var(--c-text-2);
}

.description {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 40px;
  color: var(--c-text-2);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.gplay-badge,
.apk-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  min-height: 52px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.apk-badge {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #9333ea 100%);
  border-color: rgba(192, 132, 252, 0.4);
}

.gplay-badge:hover,
.apk-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.badge-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.badge-small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.badge-large {
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  opacity: 0.45;
  cursor: not-allowed;
  user-select: none;
  color: #888;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2);
  font-weight: 500;
}

.trust-sep {
  width: 1px;
  height: 14px;
  background: var(--c-border);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-wrapper {
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(157, 78, 221, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.phone-mockup {
  width: 290px;
  height: 580px;
  background: #080812;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #080812;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--c-bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px 4px;
  font-size: 11px;
  font-weight: 600;
}

.screen-protection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
}

.prot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 6px var(--c-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% { opacity: 0.6; }
}

.prot-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--c-success);
}

.prot-timer {
  font-size: 9px;
  color: var(--c-text-3);
}

.screen-globe-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-orb {
  width: 195px;
  height: 195px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3d1a6e, #08040f 70%);
  border: 1px solid rgba(155, 109, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.globe-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0, 8, 24, 0.9), transparent 55%);
}

.screen-bottom {
  background: rgba(22, 22, 42, 0.9);
  border-top: 1px solid var(--c-border);
  padding: 16px 18px 24px;
}

.bottom-location {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 37, 69, 0.6);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.flag {
  font-size: 22px;
}

.loc-name {
  font-size: 12px;
  font-weight: 600;
}

.loc-ip {
  font-size: 10px;
  color: var(--c-text-3);
}

.bottom-connect {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.connect-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--c-success), #00c853);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features */
.features {
  padding: 80px 0 100px;
  position: relative;
}

.mesh-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(157, 78, 221, 0.08), transparent);
  pointer-events: none;
}

.stats-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 24px;
  background: rgba(22, 22, 42, 0.6);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  margin-bottom: 56px;
}

.stat-item {
  padding: 8px 32px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
}

.stat-label {
  font-size: 12px;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  background: var(--c-border);
  align-self: stretch;
  margin: 8px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
}

.title-highlight {
  color: var(--c-primary-light);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: rgba(22, 22, 42, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.bento-card:hover {
  border-color: rgba(157, 78, 221, 0.4);
  transform: translateY(-2px);
}

.card-security,
.card-global {
  grid-column: span 2;
}

.bento-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.bento-card p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.6;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(157, 78, 221, 0.15);
}

/* Footer */
.footer {
  background: #080812;
  color: var(--c-text-2);
  padding: 52px 0 28px;
  position: relative;
}

.footer-border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), var(--c-primary), var(--c-border), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(42, 42, 69, 0.6);
  margin-bottom: 24px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 700;
  font-size: 18px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--c-text-3);
  margin: 6px 0 0 44px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-link {
  color: var(--c-text-3);
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  color: var(--c-primary-light);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-3);
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .store-badges,
  .trust-row {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-security,
  .card-global {
    grid-column: span 1;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-tagline {
    margin-left: 0;
  }
}

/* Tablet & mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header .container {
    height: 56px;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
    gap: 8px;
    min-width: 0;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    display: none;
  }

  .lang-button {
    padding: 8px 10px;
    min-height: 40px;
  }

  .lang-button .lang-label {
    display: none;
  }

  .header-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    min-height: 40px;
    background: linear-gradient(135deg, #5b21b6, #9333ea);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .hero {
    padding: calc(72px + env(safe-area-inset-top)) 0 56px;
    min-height: auto;
  }

  .orb-purple {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
  }

  .orb-cyan {
    width: 220px;
    height: 220px;
    right: -40px;
  }

  .hero-text h1 {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .hero-text h2 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .description {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 36ch;
  }

  .store-badges {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 10px;
    margin-bottom: 16px;
  }

  .gplay-badge,
  .apk-badge,
  .appstore-badge {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
  }

  .badge-large {
    font-size: 16px;
  }

  .trust-row {
    gap: 12px;
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .phone-mockup {
    width: min(260px, 78vw);
    height: auto;
    aspect-ratio: 290 / 580;
    border-radius: 36px;
    padding: 8px;
  }

  .phone-glow {
    width: 220px;
    height: 400px;
  }

  .phone-notch {
    width: 72px;
    height: 22px;
  }

  .globe-orb {
    width: 150px;
    height: 150px;
  }

  .features {
    padding: 48px 0 64px;
  }

  .stats-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    padding: 16px;
    margin-bottom: 36px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 8px 4px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .bento-card {
    padding: 20px;
    border-radius: 16px;
  }

  .bento-card h3 {
    font-size: 17px;
  }

  .bento-card p {
    font-size: 14px;
  }

  .footer {
    padding: 40px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .logo span {
    max-width: 100px;
  }

  .header-download {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .phone-mockup {
    width: min(220px, 85vw);
  }
}

/* Desktop: hide mobile-only CTA */
.header-download {
  display: none;
}

@media (max-width: 768px) {
  .header-download {
    display: inline-flex;
  }
}
