/* ============================================================
   TRIPLE APE VPN — Global Styles
   ============================================================ */

:root {
  --green-deep: #0d2318;
  --green-dark: #122b1e;
  --green-mid: #1a4030;
  --green-bright: #2d7a52;
  --green-accent: #3db870;
  --orange: #e8874a;
  --orange-bright: #ff9f5a;
  --gold: #d4a843;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-muted: #7aaa8e;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--green-deep);
  color: var(--white);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(13,35,24,0.97) 0%, rgba(13,35,24,0.85) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo .logo-ape {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--green-accent); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 9px 22px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--orange-bright) !important; transform: translateY(-1px); }

/* ---- HAMBURGER ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(13,35,24,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 199;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 420px; }

.mobile-menu ul { list-style: none; padding: 16px 0 24px; }
.mobile-menu ul li a {
  display: block;
  padding: 13px 32px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.mobile-menu ul li a:hover { opacity: 1; color: var(--green-accent); background: rgba(61,184,112,0.06); }

.mobile-cta-wrap { padding: 4px 24px 0; }
.mobile-cta {
  display: block;
  background: var(--orange);
  color: white !important;
  opacity: 1 !important;
  text-align: center;
  padding: 14px 24px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  margin: 0 8px;
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 65% 50%, rgba(45,122,82,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(232,135,74,0.2) 0%, transparent 60%),
    var(--green-deep);
  z-index: 0;
}

.leaf { position: absolute; border-radius: 0 100% 0 100%; opacity: 0.12; pointer-events: none; z-index: 1; }
.leaf-1 { width: 300px; height: 500px; background: var(--green-accent); top: -80px; right: 5%; transform: rotate(-30deg); }
.leaf-2 { width: 200px; height: 350px; background: var(--green-bright); bottom: -50px; right: 20%; transform: rotate(20deg); }
.leaf-3 { width: 150px; height: 280px; background: var(--green-accent); top: 30%; left: -30px; transform: rotate(60deg); }

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61,184,112,0.15);
  border: 1px solid rgba(61,184,112,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--green-accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 2px;
}
h1 .highlight { color: var(--orange); }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 18px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 8px 30px rgba(232,135,74,0.4);
}
.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,135,74,0.5);
}
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary {
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.btn-secondary:hover { opacity: 1; }

.hero-stats { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: var(--white); line-height: 1; }
.stat-num .accent { color: var(--orange); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---- PHONE MOCKUP ---- */
.hero-phone { flex-shrink: 0; }

.phone-frame {
  width: 260px; height: 540px;
  background: var(--green-dark);
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), inset 0 0 60px rgba(61,184,112,0.06);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0px); }
  50% { transform: rotate(-3deg) translateY(-14px); }
}

.phone-inner {
  padding: 20px 16px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, #122b1e 0%, #0d2318 100%);
}
.phone-status { font-size: 10px; color: var(--text-muted); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

.vpn-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--green-accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 40px rgba(61,184,112,0.3), inset 0 0 30px rgba(61,184,112,0.1);
}
.vpn-circle::before {
  content: ''; position: absolute; inset: 6px;
  border-radius: 50%; border: 1px solid rgba(61,184,112,0.3);
}
.vpn-circle .ape-emoji { font-size: 48px; }

.orbit {
  position: absolute; width: 180px; height: 180px;
  border-radius: 50%; border: 1px dashed rgba(61,184,112,0.2);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: spin 8s linear infinite;
}
.orbit::after {
  content: ''; position: absolute;
  width: 9px; height: 9px; background: var(--orange); border-radius: 50%;
  top: -4.5px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 12px var(--orange);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.vpn-status-text { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--green-accent); letter-spacing: 3px; }
.vpn-timer { font-size: 26px; font-weight: 700; color: var(--orange); letter-spacing: 2px; }
.server-pill {
  background: rgba(61,184,112,0.1); border: 1px solid rgba(61,184,112,0.2);
  border-radius: 50px; padding: 7px 18px; font-size: 12px; color: var(--green-accent);
  display: flex; align-items: center; gap: 8px;
}
.server-dot { width: 7px; height: 7px; background: var(--green-accent); border-radius: 50%; animation: pulse 1s infinite; }
.speed-row { display: flex; gap: 16px; }
.speed-item { text-align: center; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 8px 14px; }
.speed-val { font-size: 14px; font-weight: 700; color: var(--white); }
.speed-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 100px 0; position: relative; }

.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1; letter-spacing: 1px; margin-bottom: 18px;
}

.section-desc { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 480px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(61,184,112,0.35); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 22px;
}
.icon-green { background: rgba(61,184,112,0.15); border: 1px solid rgba(61,184,112,0.2); }
.icon-orange { background: rgba(232,135,74,0.15); border: 1px solid rgba(232,135,74,0.2); }
.icon-gold { background: rgba(212,168,67,0.15); border: 1px solid rgba(212,168,67,0.2); }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ============================================================
   SERVERS
   ============================================================ */
.servers-wrap {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  border-radius: 36px; padding: 72px 60px;
  position: relative; overflow: hidden;
}
.servers-wrap::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,184,112,0.1) 0%, transparent 70%);
  top: -200px; right: -80px;
}

.servers-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; position: relative; z-index: 1;
}

.server-list { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.server-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04); border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s;
}
.server-item:hover { background: rgba(61,184,112,0.08); border-color: rgba(61,184,112,0.2); }
.server-flag { font-size: 22px; }
.server-name { font-size: 14px; font-weight: 500; flex: 1; }
.server-badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
}
.badge-free { background: rgba(61,184,112,0.2); color: var(--green-accent); }
.badge-premium { background: rgba(212,168,67,0.2); color: var(--gold); }

.signal-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bar { width: 3px; background: var(--green-accent); border-radius: 2px; }
.bar:nth-child(1) { height: 4px; }
.bar:nth-child(2) { height: 7px; }
.bar:nth-child(3) { height: 11px; }
.bar:nth-child(4) { height: 14px; }

/* ---- GLOBE ---- */
.world-visual { display: flex; align-items: center; justify-content: center; }

.globe-container {
  width: 340px; height: 340px;
  position: relative;
  flex-shrink: 0;
}

/* Outer glowing ring */
.globe-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(80,160,220,0.3);
  box-shadow:
    0 0 60px rgba(30,111,168,0.18),
    0 0 120px rgba(30,111,168,0.08),
    inset 0 0 80px rgba(0,0,0,0.5);
  z-index: 3;
  pointer-events: none;
}

/* Grid overlay clipped to circle */
.globe-grid-overlay {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.globe-grid-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,   transparent, transparent 26px, rgba(255,255,255,0.05) 26px, rgba(255,255,255,0.05) 27px),
    repeating-linear-gradient(90deg,  transparent, transparent 26px, rgba(255,255,255,0.05) 26px, rgba(255,255,255,0.05) 27px);
}

/* Earth SVG fills the full circle */
.globe-earth {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.globe-earth svg {
  width: 100%; height: 100%;
  display: block;
}

/* Orange pulsing dots */
.globe-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--orange), 0 0 28px rgba(232,135,74,0.4);
  animation: glow-pulse 2s ease-in-out infinite;
  z-index: 4;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.7); }
}
.globe-dot:nth-child(1) { top: 18%; left: 22%; animation-delay: 0s; }
.globe-dot:nth-child(2) { top: 28%; right: 18%; animation-delay: 0.6s; }
.globe-dot:nth-child(3) { top: 58%; left: 30%; animation-delay: 1.1s; }
.globe-dot:nth-child(4) { top: 45%; right: 26%; animation-delay: 0.3s; }
.globe-dot:nth-child(5) { bottom: 20%; left: 50%; animation-delay: 0.9s; }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-items { display: flex; flex-direction: column; gap: 16px; }
.why-item {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px;
  border-radius: 18px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); transition: all 0.25s;
}
.why-item:hover { background: rgba(61,184,112,0.05); border-color: rgba(61,184,112,0.2); }
.why-icon {
  font-size: 24px; flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,184,112,0.1); border-radius: 14px;
}
.why-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.why-text p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

/* ============================================================
   DOWNLOAD CARD
   ============================================================ */
.app-preview-card {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
  border-radius: 28px; padding: 48px 36px;
  border: 1px solid rgba(61,184,112,0.2);
  text-align: center; position: relative; overflow: hidden;
}
.app-preview-card::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,135,74,0.15) 0%, transparent 70%);
}
.big-ape { font-size: 96px; display: block; margin-bottom: 20px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4)); }
.app-preview-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 2px; margin-bottom: 6px; }
.app-preview-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--green-deep);
  padding: 13px 26px; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: 14px; transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 72px 0 36px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand .nav-logo { font-size: 21px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 300px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { text-decoration: none; color: var(--cream); font-size: 14px; opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.footer-col ul a:hover { opacity: 1; color: var(--green-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px;
  font-size: 13px; color: var(--text-muted);
}
.contact-link { color: var(--green-accent); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .servers-layout { grid-template-columns: 1fr; gap: 40px; }
  .globe-container { width: 280px; height: 280px; }
  .servers-wrap { padding: 56px 40px; }
  .why-grid { gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }

  .hero-phone { display: none; }
  .hero-inner { padding: 60px 24px; flex-direction: column; align-items: flex-start; }
  .hero-content { max-width: 100%; }

  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .servers-wrap { padding: 40px 28px; border-radius: 24px; }
  .section { padding: 72px 0; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding: 48px 16px; }
  .servers-wrap { padding: 28px 16px; }
  h1 { font-size: clamp(50px, 14vw, 72px); }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 34px; }
  .hero-badge { font-size: 11px; }
  .globe-container { width: 240px; height: 240px; }
}
