/*
Theme Name: Netfox
Theme URI: https://netfox.co.za
Author: Netfox
Description: Modern dark SaaS theme for Netfox
Version: 1.0.0
*/

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* backgrounds */
  --grad-page:         linear-gradient(160deg, #0d0b15 0%, #0a0910 55%, #0c0b14 100%);
  --grad-section-alt:  linear-gradient(160deg, #111020 0%, #0e0c18 100%);
  --grad-surface:      linear-gradient(145deg, #1c1a2a 0%, #161424 100%);
  --grad-surface-hi:   linear-gradient(145deg, #23203200 0%, #1e1b2e 100%);
  --grad-surface-hover:linear-gradient(145deg, #252233 0%, #1e1b2e 100%);

  /* orange accent */
  --grad-cta:          linear-gradient(135deg, #fb9040 0%, #f97316 50%, #ea5a0c 100%);
  --grad-cta-hover:    linear-gradient(135deg, #fca060 0%, #fb8c3a 50%, #f97316 100%);
  --grad-cta-subtle:   linear-gradient(135deg, #2c1b0d 0%, #1f1209 100%);
  --grad-badge:        linear-gradient(135deg, #2a1a0a 0%, #1f1209 100%);

  /* glows */
  --grad-hero-glow:    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(249,115,22,.18) 0%, transparent 70%);
  --grad-section-glow: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(249,115,22,.07) 0%, transparent 65%);
  --grad-cta-glow:     radial-gradient(ellipse 80% 60% at 50% 50%, rgba(249,115,22,.13) 0%, transparent 70%);

  /* text */
  --grad-headline:     linear-gradient(135deg, #faf8ff 0%, #e8dff8 60%, #d0c4ef 100%);
  --grad-orange-text:  linear-gradient(135deg, #fb9040 0%, #f97316 100%);

  /* border */
  --grad-border:       linear-gradient(145deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 100%);
  --grad-border-hi:    linear-gradient(145deg, rgba(249,115,22,.35) 0%, rgba(249,115,22,.08) 100%);

  /* colours */
  --text-primary:   #f2f0fa;
  --text-secondary: #8b8799;
  --text-muted:     #4a4760;
  --orange:         #f97316;

  /* spacing */
  --section-py: 120px;
  --card-radius: 16px;
  --content-width: 1100px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--grad-page);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: var(--section-py); }
.section--alt { background: var(--grad-section-alt); }

/* ── Typography ──────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
}
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-inline: auto; }

/* ── Gradient card border (mask technique) ───────────────────────────────── */
.card {
  position: relative;
  background: var(--grad-surface);
  border-radius: var(--card-radius);
  transition: background .25s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background .25s ease;
}
.card:hover { background: var(--grad-surface-hover); }
.card:hover::before { background: var(--grad-border-hi); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 0 28px rgba(249,115,22,.28), 0 2px 8px rgba(0,0,0,.4);
}
.btn-primary:hover {
  background: var(--grad-cta-hover);
  box-shadow: 0 0 40px rgba(249,115,22,.4), 0 4px 16px rgba(0,0,0,.5);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,9,16,.0) 0%, rgba(10,9,16,.0) 100%);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(12,10,18,.92) 0%, rgba(10,9,16,.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
}
.site-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.site-logo .logo-accent {
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.site-nav a:hover {
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
  border-radius: 2px;
  transition: all .25s ease;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: 140px 120px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero-glow);
  pointer-events: none;
}
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--grad-badge);
  border: 1px solid rgba(249,115,22,.25);
  font-size: 13px;
  font-weight: 500;
  color: #fb9040;
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-cta);
  box-shadow: 0 0 8px rgba(249,115,22,.7);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 800px;
  margin: 0 auto 24px;
}
.hero-title .orange {
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card { padding: 36px 32px; }
.step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-cta-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}
.step-title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ── Live Examples ───────────────────────────────────────────────────────── */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.example-card { overflow: hidden; }
.browser-frame {
  background: linear-gradient(160deg, #1a1828 0%, #131120 100%);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  padding: 12px 14px 0;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.browser-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.browser-dot:nth-child(1) { background: linear-gradient(135deg, #ff5f57, #e0443e); }
.browser-dot:nth-child(2) { background: linear-gradient(135deg, #febc2e, #d9a020); }
.browser-dot:nth-child(3) { background: linear-gradient(135deg, #28c840, #1faa30); }
.browser-preview {
  height: 180px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,.2);
}
.browser-preview.preview-1 { background: linear-gradient(145deg, #1a2535 0%, #0f1820 100%); }
.browser-preview.preview-2 { background: linear-gradient(145deg, #1f1a2e 0%, #130f20 100%); }
.browser-preview.preview-3 { background: linear-gradient(145deg, #1a2218 0%, #101a0e 100%); }
.browser-preview img { width: 100%; height: 100%; object-fit: cover; }
.example-meta { padding: 20px 24px; }
.example-industry {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--grad-cta-subtle);
  color: #fb9040;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.example-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.example-location { font-size: 13px; color: var(--text-muted); }

/* ── Pricing teaser ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.pricing-card { padding: 32px 28px; }
.pricing-card.featured::before { background: var(--grad-border-hi); }
.pricing-card.featured {
  background: linear-gradient(145deg, #211d30 0%, #1a172a 100%);
}
.pricing-card.dimmed { opacity: .45; }
.pricing-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pricing-tier-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card.featured .pricing-price {
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-feature-check {
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 13px;
}
.pricing-cta-wrap { margin-top: auto; }
.btn-pricing {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
}
.pricing-view-all {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-view-all a {
  color: #fb9040;
  font-weight: 500;
  transition: color .2s;
}
.pricing-view-all a:hover { color: #fca060; }

/* ── CTA strip ───────────────────────────────────────────────────────────── */
.cta-strip {
  position: relative;
  padding-block: 100px;
  text-align: center;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-cta-glow);
  pointer-events: none;
}
.cta-strip-inner { position: relative; z-index: 1; }
.cta-strip-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.cta-strip-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0a0910 0%, #08070f 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 60px 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.footer-brand-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Pricing page ────────────────────────────────────────────────────────── */
.pricing-page-hero {
  padding-block: 80px 64px;
  text-align: center;
}
.pricing-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pricing-page-card { padding: 40px 32px; }
.pricing-page-card.featured { background: linear-gradient(145deg, #221e32 0%, #1b1828 100%); }
.pricing-page-card.featured::before { background: var(--grad-border-hi); }
.pricing-faq { max-width: 700px; margin: 80px auto 0; }
.faq-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
  text-align: center;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid, .pricing-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-py: 72px; }
  .steps-grid, .examples-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-page-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { padding-block: 90px 72px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    background: linear-gradient(180deg, #0d0b15 0%, #0a0910 100%);
    padding: 32px 24px;
    gap: 8px;
    z-index: 99;
  }
  .site-nav.open a { font-size: 18px; padding: 12px 0; }
  .site-nav.open + .header-cta { display: none; }
}
