/* ============================================================
   PacketViper Shared Stylesheet
   Design system: dark navy + cyan + orange
   ============================================================ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1628;
  --bg-card: #151d35;
  --accent-blue: #00d4ff;
  --accent-orange: #ff6b35;
  --text-primary: #ffffff;
  --text-secondary: #8892a4;
  --border: #1e2a45;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --container-max: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-secondary); line-height: 1.75; }

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-secondary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-orange {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}
.btn-orange:hover {
  background: #e8561f;
  border-color: #e8561f;
  transform: translateY(-1px);
}
.btn-blue {
  background: var(--accent-blue);
  color: #0a0e1a;
  border-color: var(--accent-blue);
}
.btn-blue:hover {
  background: #00b8e0;
  border-color: #00b8e0;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent-orange); }
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

/* ---- Hero ---- */
.hero {
  padding: 120px 0 96px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-eyebrow-orange {
  color: var(--accent-orange);
  background: rgba(255,107,53,0.08);
  border-color: rgba(255,107,53,0.2);
}
.hero-eyebrow-green {
  color: #00e676;
  background: rgba(0,230,118,0.08);
  border-color: rgba(0,230,118,0.2);
}
.hero-eyebrow-purple {
  color: #b07fff;
  background: rgba(176,127,255,0.08);
  border-color: rgba(176,127,255,0.2);
}
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.hero-sub-em {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.stats-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number-orange { color: var(--accent-orange); }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  background: rgba(0,212,255,0.1);
  color: var(--accent-blue);
}
.card-icon-orange {
  background: rgba(255,107,53,0.1);
  color: var(--accent-orange);
}
.card-icon-green {
  background: rgba(0,230,118,0.1);
  color: #00e676;
}
.card-icon-purple {
  background: rgba(176,127,255,0.1);
  color: #b07fff;
}
.card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.card p { font-size: 0.92rem; }

/* ---- Grid Layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ---- Section Header ---- */
.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
  display: block;
}
.section-label-orange { color: var(--accent-orange); }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* ---- Feature List ---- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(0,212,255,0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-icon-orange {
  background: rgba(255,107,53,0.1);
  color: var(--accent-orange);
}
.feature-body h4 { margin-bottom: 4px; font-size: 0.95rem; }
.feature-body p { font-size: 0.88rem; }

/* ---- Quote Block ---- */
.quote-block {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 32px 40px;
  margin: 40px 0;
}
.quote-block blockquote {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}
.quote-block cite {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 600;
}

/* ---- Tag Pills ---- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0,212,255,0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(0,212,255,0.2);
}
.tag-orange {
  background: rgba(255,107,53,0.08);
  color: var(--accent-orange);
  border-color: rgba(255,107,53,0.2);
}

/* ---- Proof Points / Callouts ---- */
.proof-bar {
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(255,107,53,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.proof-item { text-align: center; }
.proof-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Two-Col Split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
}

/* ---- Step / Timeline ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}
.step-body h4 { margin-bottom: 8px; }
.step-body p { font-size: 0.9rem; }

/* ---- Check List ---- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-item i {
  color: var(--accent-blue);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.check-item span {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #0d1830 100%);
  border-top: 1px solid var(--border);
  padding: 96px 24px;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- Form Styles ---- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Utility ---- */
.text-blue { color: var(--accent-blue); }
.text-orange { color: var(--accent-orange); }
.text-muted { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-56 { margin-bottom: 56px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* ---- BEM Nav (homepage) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
}
.nav__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text-primary); }
.nav__cta { flex-shrink: 0; }
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: rgba(10, 14, 26, 0.98);
  border-bottom: 1px solid var(--border);
}
.nav__mobile.is-open { display: flex; }

/* ---- BEM Stats Bar (homepage) ---- */
.stats-bar__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stats-bar__item { }
.stats-bar__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stats-bar__label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}
.stats-bar__sublabel {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 4px;
}

/* ---- BEM Footer (homepage) ---- */
.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer__col-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copyright {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--text-primary); }
.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer__social a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--accent-blue); }

/* ---- Additional shared classes (homepage) ---- */
.btn-primary {
  background: var(--accent-blue);
  color: #0a0e1a;
  border-color: var(--accent-blue);
}
.btn-primary:hover {
  background: #00b8e0;
  border-color: #00b8e0;
  transform: translateY(-1px);
}
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-subhead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}
.section--dark { background: var(--bg-primary); }
.section--alt { background: var(--bg-secondary); }
.card-icon--orange {
  background: rgba(255,107,53,0.1);
  color: var(--accent-orange);
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.card-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.cta-section__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.cta-section__subhead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .footer-grid,
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-grid,
  .footer__grid { grid-template-columns: 1fr; }
  .nav-links,
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .proof-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
}

/* ---- Light Mode ---- */
html.light-mode {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ebeef3;
  --bg-card: #ffffff;
  --text-primary: #0f1628;
  --text-secondary: #505a6e;
  --border: #d0d5de;
}
html.light-mode body { background: var(--bg-primary); color: var(--text-primary); }
html.light-mode .hero { background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%); }
html.light-mode .footer { background: var(--bg-secondary); }
html.light-mode .nav { background: rgba(245,247,250,0.95); }
html.light-mode .nav__logo img { filter: brightness(0) saturate(100%); }
