/**
 * Psiphon Official Landing Page - Core Stylesheet
 * Brand: Psiphon (psiphonvpn.my)
 * Theme: Deep Meteorite Void & Superconducting Aurora Cobalt / Pulsar Amber Gold
 */

:root {
  /* Color Palette - Deep Meteorite & Aurora Cobalt & Pulsar Amber */
  --bg-void: #05070b;
  --bg-meteorite: #0a0d14;
  --bg-card: #0f1523;
  --bg-card-hover: #151d30;
  --bg-card-glass: rgba(15, 21, 35, 0.75);
  
  --cobalt-primary: #0077ff;
  --cobalt-glow: #00d2ff;
  --cobalt-dim: rgba(0, 119, 255, 0.15);
  --cobalt-border: rgba(0, 210, 255, 0.25);
  
  --amber-primary: #ffaa00;
  --amber-glow: #ffd000;
  --amber-dim: rgba(255, 170, 0, 0.15);
  --amber-border: rgba(255, 170, 0, 0.3);
  
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 210, 255, 0.4);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Fira Code", monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-glow-cobalt: 0 0 25px rgba(0, 150, 255, 0.3);
  --shadow-glow-amber: 0 0 25px rgba(255, 170, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-void);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 119, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(255, 170, 0, 0.05) 0%, transparent 40%),
    linear-gradient(to bottom, var(--bg-void), #080a10);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-highlight);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-sub);
  margin-bottom: 1rem;
}

a {
  color: var(--cobalt-glow);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: #60a5fa;
}

code, pre {
  font-family: var(--font-mono);
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobalt-glow);
  background: var(--cobalt-dim);
  border: 1px solid var(--cobalt-border);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag.amber {
  color: var(--amber-glow);
  background: var(--amber-dim);
  border-color: var(--amber-border);
}

.section-title {
  margin-bottom: 1rem;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #ffffff 10%, #00d2ff 60%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #ffffff 10%, #ffd000 60%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-hybrid {
  background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 119, 255, 0.4);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 210, 255, 0.6);
}

.btn-amber {
  background: linear-gradient(135deg, #ff8800 0%, #ffbb00 100%);
  color: #06080e;
  box-shadow: 0 4px 20px rgba(255, 170, 0, 0.4);
  font-weight: 700;
}

.btn-amber:hover {
  color: #06080e;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 190, 0, 0.6);
}

.btn-outline {
  background: rgba(15, 21, 35, 0.8);
  border-color: var(--cobalt-border);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--cobalt-glow);
  color: #ffffff;
  background: rgba(0, 119, 255, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.08rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 1000;
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(6, 8, 13, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--cobalt-dim);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-brand:hover {
  color: #ffffff;
}

.logo-icon-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt-glow), var(--amber-glow));
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.18) 0%, transparent 70%);
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 119, 255, 0.25), rgba(255, 170, 0, 0.2));
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-full);
  margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.2);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-glow);
  box-shadow: 0 0 10px var(--amber-glow);
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1.2;
}

.stat-val span {
  font-size: 1.2rem;
  color: var(--cobalt-glow);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 0.35rem;
}

/* Feature Matrix Cards */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.matrix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cobalt-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.matrix-card:hover {
  transform: translateY(-5px);
  border-color: var(--cobalt-border);
  box-shadow: var(--shadow-glow-cobalt);
  background: var(--bg-card-hover);
}

.matrix-card:hover::before {
  opacity: 1;
}

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--cobalt-dim);
  border: 1px solid var(--cobalt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt-glow);
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

.card-icon-box.amber {
  background: var(--amber-dim);
  border-color: var(--amber-border);
  color: var(--amber-glow);
}

.matrix-card h3 {
  margin-bottom: 0.8rem;
}

.matrix-card p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.spec-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.spec-list li svg {
  color: var(--cobalt-glow);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--cobalt-border);
  box-shadow: var(--shadow-card);
}

.price-card.featured {
  background: linear-gradient(180deg, #12192a 0%, var(--bg-card) 100%);
  border-color: var(--cobalt-glow);
  box-shadow: 0 0 30px rgba(0, 119, 255, 0.25);
  transform: scale(1.02);
}

.price-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff8800, #ffbb00);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.plan-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 40px;
}

.plan-price {
  margin: 1.2rem 0;
  font-family: var(--font-mono);
}

.plan-currency {
  font-size: 1.2rem;
  color: var(--cobalt-glow);
  vertical-align: super;
}

.plan-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0.8rem;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--cobalt-glow);
  margin-top: 3px;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--cobalt-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.6rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--cobalt-glow);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.6rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.4rem;
}

/* Footer */
.footer {
  background: #030407;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-sub);
  transition: color var(--transition-fast);
}

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

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .header {
    height: 68px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-void);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .header-actions .btn-sm {
    display: none;
  }
  .matrix-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

