@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #0D0D0D;
  --card-bg: #161622;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --primary: #448AFF;
  --primary-glow: rgba(68, 138, 255, 0.4);
  --secondary: #00E676;
  --secondary-glow: rgba(0, 230, 118, 0.4);
  --danger: #FF5252;
  --danger-glow: rgba(255, 82, 82, 0.4);
  --border-color: rgba(255, 255, 255, 0.06);
  --font-family: 'Inter', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-bg);
  border-radius: 4px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

/* --- Header & Nav --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav-download {
  background: var(--primary);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-smooth);
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68, 138, 255, 0.6);
}

/* --- Hero Section --- */
.hero {
  padding: 180px 0 100px 0;
  position: relative;
}

/* Ambient glows */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.35;
}
.hero::before {
  top: 10%;
  left: -50px;
  background: var(--primary);
}
.hero::after {
  bottom: 10%;
  right: -50px;
  background: var(--secondary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFF 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.download-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.badge-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(68, 138, 255, 0.15);
}

.badge-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.badge-text span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.badge-text span:last-child {
  font-size: 1.05rem;
  font-weight: 700;
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(22, 22, 34, 0.3) 50%, var(--bg-color) 100%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 70%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-blue {
  background: rgba(68, 138, 255, 0.12);
  color: var(--primary);
}

.icon-red {
  background: rgba(255, 82, 82, 0.12);
  color: var(--danger);
}

.icon-green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--secondary);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- App Preview (CSS Phone Mockup) --- */
.phone-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 290px;
  height: 580px;
  background: #09090D;
  border: 10px solid #1E1E2E;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(68, 138, 255, 0.15);
  position: relative;
  overflow: hidden;
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
}

/* Phone Speaker & Camera Notch */
.phone-notch {
  width: 140px;
  height: 24px;
  background: #1E1E2E;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-notch::before {
  content: '';
  width: 40px;
  height: 4px;
  background: #0D0D0D;
  border-radius: 2px;
}

.phone-screen {
  flex: 1;
  padding: 40px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  background: #0D0D0D;
  overflow-y: auto;
}

/* Mock Screen Contents */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.mock-header h4 {
  font-weight: 800;
  font-size: 1.1rem;
}
.mock-header svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.mock-vpn-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.mock-vpn-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #00897B);
  box-shadow: 0 0 24px var(--secondary-glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  color: white;
  transition: var(--transition-smooth);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.mock-vpn-btn svg {
  width: 44px;
  height: 44px;
}

.mock-vpn-btn span {
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 1px;
}

.mock-vpn-status {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.mock-stat-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.mock-stat-card:last-child {
  border-color: rgba(68, 138, 255, 0.25);
}

.mock-stat-card .stat-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mock-stat-card .stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 4px;
}

.mock-stat-card:last-child .stat-val {
  color: var(--primary);
}

.mock-filter-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.mock-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mock-filter-row:last-child {
  margin-bottom: 0;
}

.mock-filter-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-filter-badge {
  background: rgba(0, 137, 123, 0.18);
  color: var(--secondary);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 600;
}

.mock-toggle {
  width: 32px;
  height: 18px;
  background: var(--secondary);
  border-radius: 9px;
  position: relative;
}
.mock-toggle::after {
  content: '';
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
}

/* --- Document Pages Structure (Privacy, Terms) --- */
.doc-section {
  padding: 140px 0 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
}

.doc-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.doc-card .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.doc-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
  color: var(--text-primary);
}

.doc-content p, .doc-content li {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.doc-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  background: #09090D;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
}

.footer-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-content p {
    margin: 0 auto 40px auto;
  }
  .download-badges {
    justify-content: center;
  }
  .phone-container {
    order: -1;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  nav .btn-nav-download {
    display: none;
  }
  .doc-card {
    padding: 24px;
  }
  .doc-card h1 {
    font-size: 2rem;
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}
