/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Light Theme (Derived to match the vibe but lighter) */
  --bg-color: #f0f4f8;
  --text-color: #0f172a;
  --text-muted: #475569;
  --primary-blue: #2979FF;
  --primary-cyan: #00a8cc; /* Darker cyan for light mode visibility */
  --header-bg: rgba(255, 255, 255, 0.7);
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #cbd5e1;
  --glass-border: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --font-heading: 'Outfit', sans-serif;
}

[data-theme="dark"] {
  /* Strict adherence to UI Prompt */
  --bg-color: #050814;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --primary-blue: #2979FF;
  --primary-cyan: #00E5FF;
  --header-bg: rgba(5, 8, 20, 0.7);
  --card-bg: rgba(15, 23, 42, 0.6);
  --border-color: rgba(41, 121, 255, 0.2);
  --glass-border: rgba(0, 229, 255, 0.15);
}

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

html { scroll-behavior: smooth; }

/* Page Transition Effects */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
  
  /* Initial Fade-in on load */
  animation: fadeInPage 0.5s ease-out forwards;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Class applied by JS before navigating away */
.page-transitioning-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  transition: opacity 0.4s ease-in, transform 0.4s ease-in !important;
}

h1, h2, h3, h4, h5, .price, .gauge-text {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }

/* Dynamic Background */
.kinetic-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: -2;
  overflow: hidden;
}
.fiber-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  opacity: 0.4;
  width: 200px;
  animation: stream linear infinite;
}
@keyframes stream {
  0% { transform: translateX(-100vw); }
  100% { transform: translateX(100vw); }
}

/* Header & Nav (Sticky Frosted Glass) */
header {
  position: fixed; top: 0; width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}

.logo {
  font-size: 1.6rem; font-weight: 800;
  color: var(--primary-cyan); letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

/* Uptime Badge */
.uptime-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(0, 229, 255, 0.05);
  color: var(--primary-cyan);
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-left: 1rem;
}
.pulse-dot {
  width: 6px; height: 6px;
  background: #00E5FF; border-radius: 50%;
  box-shadow: 0 0 8px #00E5FF;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover {
  color: var(--primary-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent; border: 1px solid var(--glass-border);
  cursor: pointer; padding: 0.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-color); transition: all 0.3s;
}
.theme-toggle:hover { background-color: var(--card-bg); border-color: var(--primary-cyan); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* Main Section Config */
main { padding-top: 90px; }
.section { padding: 5rem 1rem; max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 2.5rem;
  margin-bottom: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--text-color), var(--primary-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  text-align: center; padding: 6rem 1rem 3rem;
  position: relative;
}
.hero h1 {
  font-size: 4rem; margin-bottom: 1.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: -1px;
}
.hero h1 span { color: var(--primary-cyan); }
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* 3D Gauge & Region Tabs */
.gauge-container {
  position: relative; width: 300px; height: 160px; margin: 0 auto 3rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.gauge-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 200px;
  overflow: visible;
}
.gauge-bg { fill: none; stroke: var(--border-color); stroke-width: 12; stroke-linecap: round; }
.gauge-value {
  fill: none; stroke: var(--primary-cyan); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 408; stroke-dashoffset: 408;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s;
  filter: drop-shadow(0 0 10px var(--primary-cyan));
}
.gauge-text {
  font-size: 2.5rem; font-weight: 800; color: var(--text-color);
  line-height: 1; margin-bottom: -10px; z-index: 1;
}
.gauge-label { font-size: 0.9rem; color: var(--primary-blue); font-weight: 600; text-transform: uppercase; z-index: 1; margin-bottom: 15px;}

.region-tabs {
  display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.region-tab {
  padding: 0.5rem 1.5rem; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color); border-radius: 30px;
  cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  transition: all 0.3s; color: var(--text-muted);
}
.region-tab:hover, .region-tab.active {
  background: var(--primary-blue); color: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(41, 121, 255, 0.5);
}

/* Animated Conic Border CTA */
.btn-conic-wrapper {
  position: relative; display: inline-block; padding: 2px;
  border-radius: 50px; background: var(--border-color);
  overflow: hidden; transition: transform 0.2s;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.btn-conic-wrapper:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 229, 255, 0.4); }
.btn-conic-wrapper::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent, transparent, var(--primary-cyan), var(--primary-blue), transparent 30%);
  animation: rotate 2.5s linear infinite;
}
.btn {
  position: relative; display: inline-block;
  background-color: var(--bg-color); color: var(--text-color) !important;
  padding: 1rem 3.5rem; border-radius: 50px;
  font-size: 1.15rem; font-weight: 800; font-family: var(--font-heading);
  text-align: center; z-index: 1; text-transform: uppercase;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Speed Slider Comparison */
.comparison-container {
  max-width: 800px; margin: 0 auto; background: var(--card-bg);
  padding: 3rem 2rem; border-radius: 20px; border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.bar-wrap { margin-bottom: 2rem; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 600; }
.bar-bg { width: 100%; height: 12px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; position: relative;}
.bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative;}
.bar-fill.standard { width: 85%; background: #ef4444; }
.bar-fill.fastlink { width: 5%; background: var(--primary-cyan); box-shadow: 0 0 10px var(--primary-cyan); }
.interactive-slider { width: 100%; margin-top: 2rem; cursor: pointer; accent-color: var(--primary-cyan); }

/* Features & 3D Tilt Cards */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
  perspective: 1000px;
}
.tilt-card-wrapper { transform-style: preserve-3d; }
.card {
  background: var(--card-bg); padding: 2.5rem 2rem;
  border-radius: 20px; border: 1px solid var(--glass-border);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  height: 100%; backdrop-filter: blur(10px);
}
.card:hover {
  border-color: var(--border-color);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary-cyan); display: flex; align-items: center; gap: 0.5rem;}
.card p { color: var(--text-muted); font-size: 0.95rem; }
.highlight-card {
  border: 1px solid rgba(41, 121, 255, 0.5);
  background: linear-gradient(180deg, rgba(41, 121, 255, 0.05) 0%, var(--card-bg) 100%);
}

/* Pricing Section */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
  align-items: center;
}
.pricing-card {
  background: var(--card-bg); padding: 3rem 2rem; border-radius: 24px;
  border: 1px solid var(--glass-border); text-align: center;
  position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-10px); border-color: var(--primary-cyan); }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price { font-size: 3.5rem; font-weight: 800; margin: 1rem 0 2rem; color: var(--text-color); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-list { list-style: none; margin-bottom: 2.5rem; text-align: left; }
.pricing-list li { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.pricing-list li::before { content: '✓'; color: var(--primary-cyan); font-weight: bold; }
.best-value {
  border: 2px solid var(--primary-blue);
  box-shadow: 0 0 30px rgba(41, 121, 255, 0.2);
  transform: scale(1.05); z-index: 1;
}
.best-value:hover { transform: scale(1.05) translateY(-10px); }
.best-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
  color: #fff; padding: 0.4rem 1.2rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 1px;
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
details {
  background: var(--card-bg); margin-bottom: 1rem; border-radius: 12px;
  border: 1px solid var(--glass-border); transition: all 0.3s ease;
}
summary {
  padding: 1.5rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--primary-cyan); transition: transform 0.3s; }
details[open] { border-color: var(--primary-cyan); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.5rem 1.5rem; color: var(--text-muted); line-height: 1.7; }

/* Footer */
footer {
  background: var(--card-bg); padding: 4rem 1rem 2rem;
  border-top: 1px solid var(--glass-border); margin-top: 4rem;
}
.footer-nav { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); transition: color 0.2s; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--primary-cyan); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Content Pages */
.content-page { max-width: 800px; margin: 0 auto; padding: 8rem 1rem 4rem; }
.content-page h1 { margin-bottom: 2.5rem; font-size: 2.5rem; text-align: center; }
.content-page h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; color: var(--primary-cyan); }
.content-page p, .content-page ul { margin-bottom: 1.2rem; color: var(--text-muted); line-height: 1.8; }
.content-page ul { padding-left: 1.5rem; }
.content-page li { margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .best-value { transform: scale(1); }
  .best-value:hover { transform: translateY(-5px); }
  .nav-links a.hide-mobile { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .gauge-container { width: 100%; }
  .btn { width: 100%; padding: 1.2rem; }
  .btn-conic-wrapper { display: block; width: 100%; }
  .uptime-badge { display: none; }
}
