/*
Theme Name: VelocityNet Landing
Theme URI: https://example.com/velocitynet-landing
Author: Cursor Assistant
Author URI: https://example.com
Description: A modern SaaS-style marketing WordPress theme inspired by global network service landing pages. Includes customizable homepage sections and responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velocitynet
*/

:root {
  --bg: #08132b;
  --bg-soft: #0d1d3f;
  --bg-card: #10254d;
  --text: #eff4ff;
  --text-muted: #a7b8de;
  --primary: #3f7bff;
  --primary-strong: #2d63dc;
  --accent: #2cc6ff;
  --success: #3dd39a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 38px rgba(2, 10, 30, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 5%, #173a78, transparent 35%),
    radial-gradient(circle at 88% 8%, #0f2e68, transparent 32%), var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

a[role="link"] {
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 60;
  width: min(96%, var(--container));
  margin: 0 auto;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  background: linear-gradient(145deg, rgba(8, 22, 49, 0.72), rgba(5, 17, 40, 0.56));
  border: 1px solid rgba(143, 182, 255, 0.24);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(1, 7, 23, 0.36);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(145deg, rgba(7, 19, 43, 0.92), rgba(5, 15, 36, 0.86));
  border-color: rgba(143, 182, 255, 0.38);
  box-shadow: 0 18px 38px rgba(1, 7, 23, 0.44);
  transform: translateY(-1px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 1.08rem;
}

.brand span {
  color: var(--accent);
}

.nav-primary ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-primary a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-primary a:hover,
.nav-primary a:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-weight: 600;
  transition: 0.2s ease;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -130%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 47%, transparent 72%);
  transition: left 0.45s ease;
}

.button:hover::before,
.button:focus-visible::before {
  left: 130%;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.button-primary:hover,
.button-primary:focus {
  transform: translateY(-2px);
}

.button-outline {
  border-color: var(--border);
  color: var(--text);
}

.button-outline:hover,
.button-outline:focus {
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(146, 181, 255, 0.45);
  background: rgba(53, 99, 184, 0.25);
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(63, 123, 255, 0.32);
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 360px);
  height: 100vh;
  z-index: 120;
  border-left: 1px solid rgba(146, 181, 255, 0.32);
  background: linear-gradient(160deg, rgba(8, 23, 50, 0.97), rgba(7, 18, 40, 0.96));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate3d(108%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
  padding: 14px 0 18px;
  touch-action: pan-y;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-panel.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-nav-close {
  border: 1px solid rgba(146, 181, 255, 0.45);
  background: rgba(53, 99, 184, 0.25);
  color: var(--text);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
}

.mobile-nav a:hover {
  color: var(--text);
  border-color: rgba(120, 168, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-cta {
  margin-top: 12px;
  width: 100%;
}

main.site-main {
  flex: 1;
}

.section {
  padding: 82px 0;
}

.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 123, 255, 0.35), rgba(44, 198, 255, 0.02) 68%, transparent 72%);
  pointer-events: none;
}

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

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b8d5ff;
  border: 1px solid rgba(121, 171, 255, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(63, 123, 255, 0.1);
}

.hero p {
  color: var(--text-muted);
  margin: 0 0 30px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero-card {
  background: linear-gradient(160deg, rgba(22, 48, 95, 0.94), rgba(8, 24, 56, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 14px;
}

.stat-item strong {
  display: block;
  font-size: 1.18rem;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-strip {
  padding: 0 0 26px;
}

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

.trust-grid div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.trust-grid strong {
  display: block;
  font-size: 1.2rem;
}

.trust-grid span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.feature-card,
.download-card,
.plan-card,
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card {
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 123, 255, 0.55);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-switch {
  width: fit-content;
  margin: 0 auto 22px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 6px;
}

.billing-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.billing-switch button.is-active {
  background: linear-gradient(135deg, rgba(63, 123, 255, 0.9), rgba(44, 198, 255, 0.8));
  color: #fff;
}

.section-compact {
  padding-top: 26px;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.compare-table thead th {
  background: rgba(63, 123, 255, 0.16);
}

.plan-card {
  padding: 24px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 123, 255, 0.6);
}

.plan-card.highlight {
  border-color: rgba(63, 123, 255, 0.6);
  box-shadow: var(--shadow);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-head h3 {
  margin: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(134, 171, 255, 0.35);
  background: rgba(63, 123, 255, 0.12);
  color: #c9deff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.plan-badge-hot {
  border-color: rgba(44, 198, 255, 0.6);
  background: rgba(44, 198, 255, 0.2);
  color: #e4f9ff;
}

.plan-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.plan-card li {
  margin: 7px 0;
  color: var(--text-muted);
}

.downloads {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.download-card {
  padding: 16px;
  text-align: center;
  transition: 0.2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
}

.download-card strong {
  display: block;
  margin-bottom: 8px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 6px 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(63, 123, 255, 0.55);
  background: rgba(23, 47, 91, 0.6);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: #9bc0ff;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 2px 14px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.testimonials-carousel {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: calc(33.333% - 10.7px);
  margin-right: 16px;
}

.testimonial-card p {
  margin: 0 0 14px;
  color: #dbe7ff;
}

.testimonial-card strong {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.carousel-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: rgba(63, 123, 255, 0.25);
  border-color: rgba(120, 168, 255, 0.6);
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(63, 123, 255, 0.5);
  background: linear-gradient(140deg, rgba(17, 44, 90, 0.9), rgba(8, 27, 61, 0.9));
  border-radius: var(--radius);
  padding: 28px;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: rgba(2, 10, 30, 0.72);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

@media (max-width: 1020px) {
  .hero-grid,
  .plans,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .downloads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    position: static;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    top: 0;
  }

  .mobile-nav-panel,
  .mobile-nav-overlay {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-primary,
  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-panel,
  .mobile-nav-overlay {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .card-grid,
  .downloads {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-width: 100%;
    margin-right: 0;
  }

  .compare-table {
    min-width: 560px;
  }

  .footer-inner {
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
  }
}
