/* RESET & BASE VARIABLES */
:root {
  --bg-color: #0f0f0f;
  --surface-color: #121216;
  --surface-light: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary-color: #31bfda;
  --primary-hover: #26a5be;
  --secondary-color: #8b5cf6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --heading-color: #ffffff;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --footer-bg: #040406;
  --navbar-bg: rgba(15, 15, 15, 0.7);
  --navbar-bg-scrolled: rgba(15, 15, 15, 0.9);
  --popular-card-bg1: #18181f;
  --popular-card-bg2: #121216;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-light: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.1);
  --primary-color: #31bfda;
  --primary-hover: #26a5be;
  --secondary-color: #8b5cf6;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --heading-color: #0f172a;
  --footer-bg: #e2e8f0;
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
  --popular-card-bg1: #ffffff;
  --popular-card-bg2: #f8fafc;
}

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

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

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

/* BACKGROUND GLOWS */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  animation: drift 15s infinite alternate ease-in-out;
}

.glow-1 {
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: var(--primary-color);
}

.glow-2 {
  top: 40%;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  animation-delay: -5s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* TYPOGRAPHY & LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--heading-color);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(49, 191, 218, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 191, 218, 0.4);
}

.btn-secondary {
  background-color: var(--surface-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: rgba(49, 191, 218, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* NAVBAR */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: var(--navbar-bg-scrolled);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo {
  max-width: 140px;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
}

.theme-toggle:hover {
  background: var(--surface-light);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  transition: var(--transition);
}

.logo-img {
  height: auto;
  max-width: 200px;
  transition: var(--transition);
}

.light-logo {
  display: none;
}

.dark-logo {
  display: block;
}

[data-theme="light"] .light-logo {
  display: block;
}

[data-theme="light"] .dark-logo {
  display: none;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

[data-theme="light"] .nav-links li a {
  color: var(--text-secondary);
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-actions .nav-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links li a {
    display: block;
    padding: 1.5rem 2rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .logo {
    max-width: 120px;
  }

  .logo-img {
    max-width: 120px;
  }
}

/* HERO SECTION */
.hero {
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(49, 191, 218, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(49, 191, 218, 0.2);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-stats .stat {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-stats .highlight {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

/* SECTIONS */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 191, 218, 0.3);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(49, 191, 218, 0.05);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background: var(--surface-light);
  border-radius: 4px;
}

.feature-icon i {
  color: var(--primary-color);
}

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

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* VPS VERTICAL CARDS */
.vps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* UNIFIED PRICING BOX */
.pricing-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  /* overflow removed to allow badge visibility */
}

/* WATERMARK BACKGROUNDS */
.pricing-box::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 100%;
  height: 400px;
  background-size: 320px;
  background-repeat: no-repeat;
  background-position: top -40px right -40px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  transition: var(--transition);
  clip-path: inset(0 round 4px);
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  mix-blend-mode: overlay;
}

.pricing-box.wp-bg::after {
  background-image: url("../images/wp-watermark.png");
}

.pricing-box.woo-bg::after {
  background-image: url("../images/woo-watermark.png");
}

.pricing-box:hover::after {
  transform: scale(1.1) rotate(-5deg);
  opacity: 0.5;
}

[data-theme="light"] .pricing-box::after {
  opacity: 0.3;
  mix-blend-mode: multiply;
  filter: none;
}

.pricing-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
}

.pricing-box.popular {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(49, 191, 218, 0.08);
}

.pricing-box-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-box-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  min-height: 48px;
}

.pricing-box-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -2px;
}

.pricing-box-cycle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-box-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-box-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.pricing-box-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-box-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-box-features li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 0.9;
}

.pricing-box-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-box .btn {
  width: 100%;
  margin-top: auto;
  font-weight: 600;
}

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

.pricing-box .btn-outline:hover {
  background: rgba(49, 191, 218, 0.1);
}

.popular-badge {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
}

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

  .pricing-box.popular {
    transform: scale(1);
  }

  .pricing-box.popular:hover {
    transform: translateY(-5px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }
}

/* CTA SECTION */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(
    0deg,
    rgba(49, 191, 218, 0.05) 0%,
    transparent 100%
  );
  border-top: 1px solid var(--border-color);
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-container p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
  background: var(--footer-bg);
}

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

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li,
.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-col li a,
.footer-menu li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col li a:hover,
.footer-menu li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

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

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TRUST SECTION */
.trust-section {
  padding: 3rem 0;
  text-align: center;
  background: rgba(49, 191, 218, 0.05);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.trust-content p {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* BENCHMARKS */
.benchmarks-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
}

.benchmarks-content {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2.5rem;
}

.perf-image img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.perf-proof-text {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.perf-proof-text h4 {
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.perf-proof-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .benchmarks-wrapper {
    grid-template-columns: 1fr;
  }
}

.benchmark-bar {
  margin-bottom: 1.5rem;
}

.benchmark-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.bar-fill {
  height: 12px;
  border-radius: 4px;
  background: var(--surface-light);
  position: relative;
  overflow: hidden;
}

.bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 4px;
}

.AxonWP-fill::after {
  width: 15%;
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(49, 191, 218, 0.5);
}

.comp-a-fill::after {
  width: 60%;
  background: var(--text-secondary);
}

.comp-b-fill::after {
  width: 80%;
  background: var(--text-secondary);
}

.benchmark-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  text-align: right;
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text-primary);
}

/* SUPPORT BANNER */
.support-banner {
  background: linear-gradient(
    90deg,
    rgba(49, 191, 218, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  border: 1px solid rgba(49, 191, 218, 0.3);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.support-banner h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.support-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* FAQ SECTION */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--surface-light);
}

.faq-question h4 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
}

.faq-question i {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}
