/* ============================================================
   FirestoneVPN — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --red:        #DC2626;
  --red-dark:   #B91C1C;
  --red-deeper: #991B1B;
  --orange:     #F97316;
  --amber:      #F59E0B;
  --gold:       #D97706;
  --coal:       #0F172A;
  --anthracite: #111827;
  --slate:      #1E293B;
  --slate2:     #334155;
  --cream:      #FFF7ED;
  --cream2:     #FEF3C7;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark:  #1E293B;
  --border:     rgba(249,115,22,0.15);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 20px 48px rgba(0,0,0,0.35);
  --glow-red:   0 0 40px rgba(220,38,38,0.25);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--coal);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Noise overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
section { position: relative; z-index: 1; }
.section-gap { padding: 100px 0; }
.section-gap-sm { padding: 64px 0; }

/* ── Section header ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); color: white; max-width: 640px; margin: 0 auto; }
.section-header p { color: var(--text-muted); margin-top: 14px; font-size: 1rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-dark), var(--red), var(--orange));
  color: white;
  box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(220,38,38,0.55); }
.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); background: rgba(249,115,22,0.05); }
.btn-white {
  background: white;
  color: var(--red-dark);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge-outline {
  background: transparent;
  border: 1px solid rgba(249,115,22,0.4);
  color: var(--orange);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(249,115,22,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

/* ── Icon boxes ──────────────────────────────────────────── */
.icon-box {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(220,38,38,0.14), rgba(249,115,22,0.08));
  border: 1px solid rgba(220,38,38,0.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-box-lg { width: 68px; height: 68px; border-radius: 50%; }
.icon-box-lg svg { width: 28px; height: 28px; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: rgba(248,250,252,0.55); letter-spacing: 0.06em; text-transform: uppercase; }
.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--orange);
  background: rgba(249,115,22,0.04);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-control::placeholder { color: rgba(148,163,184,0.5); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control option { background: var(--anthracite); color: white; }

/* ── Animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Mobile menu overlay ─────────────────────────────────── */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(9,17,33,0.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  padding: 10px 28px;
  border-radius: 10px;
  transition: color 0.2s;
}
#mobileMenu a:hover { color: var(--orange); }
#mobileMenu .btn-close-menu {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Utility ─────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 120px 0 64px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(220,38,38,0.1) 0%, transparent 60%), var(--coal);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: white; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Divider ─────────────────────────────────────────────── */
hr.divider { border: none; border-top: 1px solid rgba(255,255,255,0.05); margin: 0; }

/* ── Alert / success ─────────────────────────────────────── */
.alert-success {
  display: none;
  color: #4ADE80;
  font-size: 0.9rem;
  padding: 14px 18px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px;
  margin-top: 4px;
}
.alert-success.show { display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}
@media (max-width: 768px) {
  .section-gap { padding: 70px 0; }
  .section-gap-sm { padding: 48px 0; }
  .hide-mobile { display: none !important; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
}
