/* ZeroPing VPN Website - Main Stylesheet */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2D7DFF;
  --color-primary-dark: #1a5fd4;
  --color-success: #11BFAE;
  --color-connecting: #7167FF;
  --color-error: #F06445;
  --color-neutral: #6B7280;
  --color-text: #172033;
  --color-text-secondary: #667085;
  --color-bg-start: #F7FAFF;
  --color-bg-end: #EAF1FF;
  --color-card: #FFFFFF;
  --color-border: #E5E7EB;
  --radius: 8px;
  --max-width: 1200px;
  --nav-height: 64px;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(247, 250, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  text-decoration: none !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-card);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: block;
  }
}

/* === Hero === */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 72px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-google-play:hover {
  background: #000;
  text-decoration: none;
  transform: scale(1.02);
}

.btn-google-play svg {
  width: 24px;
  height: 24px;
}

.hero-apk-link {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hero-apk-link a {
  color: var(--color-primary);
}

.hero-mockup {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: min(100%, 360px);
  height: auto;
  border: 1px solid rgba(45, 125, 255, 0.16);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.14);
}

@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 32px; }
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { align-items: center; }
  .hero-screenshot { width: min(64vw, 250px); }
}

/* === Product Screens === */
.product-screens {
  background: var(--color-card);
  padding: 64px 0;
}

.section-heading {
  max-width: 600px;
  margin-bottom: 32px;
}

.section-eyebrow {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-heading h2 {
  font-size: 32px;
  line-height: 1.25;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.screen-gallery figure {
  min-width: 0;
}

.screen-gallery img {
  width: 100%;
  border: 1px solid rgba(45, 125, 255, 0.14);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.1);
}

.screen-gallery figcaption {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .product-screens { padding: 48px 0; }
  .section-heading h2 { font-size: 26px; }
  .screen-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .screen-gallery figure {
    flex: 0 0 min(58vw, 230px);
    scroll-snap-align: start;
  }
}

/* === Value Props === */
.value-props {
  background: var(--color-card);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 24px 16px;
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(45, 125, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* === How It Works === */
.how-it-works {
  text-align: center;
}

.how-it-works h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 240px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--color-neutral);
  font-size: 24px;
  padding-top: 12px;
}

@media (max-width: 768px) {
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { display: none; }
}

/* === Trust === */
.trust {
  background: var(--color-card);
}

.trust h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

.trust-box {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(45, 125, 255, 0.04), rgba(17, 191, 174, 0.04));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.trust-item:last-child {
  margin-bottom: 0;
}

.trust-check {
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
}

/* === FAQ Preview === */
.faq-preview {
  text-align: center;
}

.faq-preview h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 32px;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--color-neutral);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.faq-more {
  margin-top: 24px;
}

/* === Final CTA === */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-end) 0%, var(--color-bg-start) 100%);
}

.final-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.final-cta p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* === Footer === */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Sub Pages === */
.page-header {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 32px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* === Pricing === */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(45, 125, 255, 0.12);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-success);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--color-success);
  font-weight: 700;
}

.pricing-note {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: rgba(45, 125, 255, 0.04);
}

.pricing-details {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.pricing-details h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-details ul {
  list-style: none;
}

.pricing-details li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-details li::before {
  content: '\00B7';
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* === Support === */
.support-section {
  max-width: 640px;
  margin: 0 auto;
}

.support-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.support-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.support-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--color-text);
}

.support-card ol, .support-card ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.support-card li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 4px 0;
  line-height: 1.5;
}

/* === Legal Pages === */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding: 2px 0;
}

.legal-updated {
  font-size: 13px;
  color: var(--color-neutral);
  margin-bottom: 32px;
}

/* === Download Page === */
.download-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.download-qr {
  width: 200px;
  height: 200px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.download-requirements {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 24px;
}

/* === Features Page === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(45, 125, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}
