/* ==========================================================================
   Prevail IT Solutions — shared site stylesheet
   --------------------------------------------------------------------------
   SINGLE SOURCE OF TRUTH FOR SITE-WIDE STYLING.
   Every page links this file, then adds only its own page-specific rules in a
   small inline <style> block after the link (so page rules win the cascade).

     <link rel="stylesheet" href="site.css" />
     <style> ...page-specific rules only... </style>

   Pages in a subfolder use a relative path: href="../site.css".

   Layout: 1. Tokens & base  2. Layout & components  3. Responsive  4. Polish
   ========================================================================== */

:root {
  --bg: #091120;
  --bg-soft: #0f1b31;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.09);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(255,255,255,0.10);
  --orange: #f97316;
  --orange-2: #fb923c;
  --shadow: 0 20px 60px rgba(0,0,0,0.30);
  --radius: 22px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249,115,22,0.10), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(251,146,60,0.09), transparent 22%),
    linear-gradient(180deg, #07101d 0%, #0a1425 35%, #091120 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.28);
  color: #ffd7bd;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 18px 0 14px;
  letter-spacing: -1.4px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(7, 16, 29, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  z-index: 1002;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
}

.brand-text span {
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav > a,
.dropdown-toggle {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative;
  padding: 10px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav > a:hover,
.dropdown-toggle:hover {
  color: #fff;
}

.nav > a.active,
.dropdown.active > .dropdown-toggle,
.mobile-nav a.active,
.footer-links a.active {
  color: #fff;
}

.nav > a.active::after,
.dropdown.active > .dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 18px rgba(249,115,22,0.45);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white !important;
  box-shadow: 0 14px 34px rgba(249,115,22,0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(249,115,22,0.34);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.menu-toggle-lines {
  width: 20px;
  height: 14px;
  position: relative;
}

.menu-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle-lines span:nth-child(1) { top: 0; }

.menu-toggle-lines span:nth-child(2) { top: 6px; }

.menu-toggle-lines span:nth-child(3) { top: 12px; }

.menu-toggle.active .menu-toggle-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-arrow {
  font-size: 12px;
  color: var(--muted-2);
  transition: transform 0.25s ease, color 0.25s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow,
.dropdown.active .dropdown-arrow {
  color: #fff;
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(11, 20, 37, 0.96);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 26px 60px rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  z-index: 1001;
}

.dropdown-menu a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(249,115,22,0.12);
  color: #fff;
  transform: translateX(2px);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-panel {
  display: none;
}

.hero {
  padding: 78px 0 42px;
  position: relative;
  overflow: hidden;
}

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

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  margin: 20px 0 22px;
  letter-spacing: -2.6px;
}

.hero-copy .accent {
  background: linear-gradient(135deg, #fff 0%, #ffd7bd 30%, var(--orange-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 28px;
  max-width: 720px;
}

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

.btn {
  border: 0;
  cursor: pointer;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 45px rgba(249,115,22,0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(249,115,22,0.38);
}

.btn-secondary {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hero-point {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-point strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.hero-point span {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.hero-panel {
  position: relative;
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at top right, rgba(249,115,22,0.22), transparent 30%);
  pointer-events: none;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}

.stat .stat-value {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: #fff;
}

.stat p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.floating-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -80px;
  background: radial-gradient(circle, rgba(249,115,22,0.36), rgba(249,115,22,0.04) 60%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: floatOrb 7s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(18px); }
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.28);
  background: var(--panel-strong);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(249,115,22,0.12), transparent 65%);
  pointer-events: none;
}

.icon svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* Cards that are themselves links (e.g. the CobraLedger product cards). */
.card-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange-2);
}

.card-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.card-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.card-link:hover .card-cta {
  transform: translateX(4px);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.7;
}

.feature-item span {
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.25);
  color: #bbf7d0;
  font-size: 14px;
  margin-top: 2px;
}

.package {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.package:hover {
  transform: translateY(-8px);
  border-color: rgba(249,115,22,0.35);
}

.package.featured {
  border-color: rgba(249,115,22,0.45);
  transform: scale(1.02);
  box-shadow: 0 24px 80px rgba(249,115,22,0.12);
}

.package.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.package .ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 26px rgba(249,115,22,0.30);
}

.package h3 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.package .sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.package ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.package li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.package li::before {
  content: "✓";
  flex: 0 0 22px;
  color: #fdba74;
  font-weight: 900;
}

.package .package-btn {
  margin-top: 26px;
  width: 100%;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.testimonial {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(249,115,22,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(249,115,22,0.18);
  box-shadow: var(--shadow);
}

.quote {
  font-size: 20px;
  line-height: 1.9;
  color: #f8fafc;
  margin-bottom: 18px;
}

.quote-by {
  color: #fdba74;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}

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

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,0.22);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.footer {
  padding: 42px 0 44px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-2);
  font-size: 14px;
  background: rgba(0,0,0,0.10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr 0.9fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer h4 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.call-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 44px rgba(249,115,22,0.42);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.call-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(249,115,22,0.5);
}

.call-float svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }

.delay-2 { transition-delay: 0.16s; }

.delay-3 { transition-delay: 0.24s; }

.delay-4 { transition-delay: 0.32s; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

.form-field .req { color: var(--orange); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-2); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(249,115,22,0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  border-color: rgba(248,113,113,0.7);
}

.form-actions { display: flex; }

.form-actions .btn { width: 100%; }

.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 1em;
}

.form-status.success { color: #4ade80; }

.form-status.error { color: #f87171; }

#cf-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.about-boxes {
  display: grid;
  gap: 14px;
}

.about-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px;
}

.about-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.about-box span {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.22);
}

.cta-panel {
  background: linear-gradient(180deg, rgba(249,115,22,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(249,115,22,0.20);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@keyframes pulseCall {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.35), 0 18px 44px rgba(249,115,22,0.42); }
  70% { box-shadow: 0 0 0 14px rgba(249,115,22,0), 0 18px 44px rgba(249,115,22,0.42); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0), 0 18px 44px rgba(249,115,22,0.42); }
}

/* SVG icon support (replaces emoji icons) */
.icon { color: var(--orange-2); }

.web-visual {
  display: grid;
  gap: 14px;
}

.web-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px;
}

.web-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.web-box span {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

.ops-boxes {
  display: grid;
  gap: 14px;
}

.ops-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px;
}

.ops-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.ops-box span {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   LONG-FORM / LEGAL PAGES
   Shared by the terms, privacy and messaging-policy pages so they sit on the
   same dark surface and type scale as the rest of the site.
   ========================================================================== */

.legal {
  padding: 56px 0 92px;
}

.legal-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.legal-head h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  margin: 18px 0 12px;
}

.legal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.legal-meta {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 14px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-toc a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-toc a:hover {
  color: #fff;
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.32);
}

.prose {
  display: grid;
  gap: 22px;
}

.prose-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.prose-card > :first-child {
  margin-top: 0;
}

.prose-card > :last-child {
  margin-bottom: 0;
}

.prose-card h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 0 0 6px;
}

.prose-card h3 {
  font-size: 18px;
  color: #fff;
  margin: 28px 0 8px;
  letter-spacing: -0.2px;
}

.prose-card p,
.prose-card li {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15.5px;
}

.prose-card p {
  margin: 0 0 14px;
}

.prose-card ul,
.prose-card ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.prose-card a {
  color: var(--orange-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose-card a:hover {
  color: var(--orange);
}

.prose-card strong {
  color: #fff;
}

.notice {
  border-radius: 16px;
  padding: 18px 20px;
  margin: 4px 0 18px;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.28);
  color: #ffd7bd;
  line-height: 1.75;
  font-size: 15px;
}

.legal-contact {
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15.5px;
}

/* ==========================================================================
   RESPONSIVE
   A gradual ladder: wide grids step down 4 -> 2 -> 1 and 3 -> 2 -> 1 rather
   than collapsing straight to a single column, so tablets keep a real layout.
   ========================================================================== */

@media (max-width: 1180px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .showcase,
  .contact-grid,
  .pricing,
  .service-models,
  .packages {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .package.featured,
  .package.featured:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
  }

  .mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 18, 0.62);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 86%);
    background: linear-gradient(180deg, #0b1626 0%, #091120 100%);
    border-left: 1px solid rgba(255,255,255,0.10);
    box-shadow: -30px 0 70px rgba(0,0,0,0.45);
    padding: 96px 22px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-panel.open {
    pointer-events: auto;
  }

  .mobile-panel.open .mobile-overlay {
    opacity: 1;
  }

  .mobile-panel.open .mobile-drawer {
    transform: translateX(0);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav a,
  .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav a:hover,
  .mobile-dropdown-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
  }

  .mobile-dropdown {
    display: block;
  }

  .mobile-dropdown-toggle .dropdown-arrow {
    transition: transform 0.26s ease;
  }

  .mobile-dropdown.open .mobile-dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
  }

  .mobile-dropdown-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
  }

  .mobile-dropdown.open .mobile-dropdown-menu {
    grid-template-rows: 1fr;
  }

  .mobile-dropdown-menu-inner {
    overflow: hidden;
  }

  .mobile-dropdown-menu .mobile-sub-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 8px 12px;
    margin-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.10);
  }

  .mobile-dropdown-menu a {
    font-size: 14px;
    font-weight: 500;
    padding: 11px 12px;
  }

  .hero-points,
  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .topbar {
    padding: 12px 0;
  }

  .brand img {
    height: 42px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .hero {
    padding: 54px 0 32px;
  }

  .hero-copy p,
  .section-header p {
    font-size: 16px;
  }

  .hero-points,
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .call-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   POLISH LAYER
   Accessibility, motion preferences, and interaction refinements that apply
   to every page. Anything added here lands site-wide.
   ========================================================================== */

/* ---- Typography rendering ---------------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

.hero-copy p,
.section-header p,
.card p {
  text-wrap: pretty;
}

::selection {
  background: rgba(249,115,22,0.32);
  color: #fff;
}

/* ---- Keyboard accessibility -------------------------------------------- */
/* The site previously had no visible focus indicator anywhere. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.call-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.card:focus-visible,
.card-link:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 4px;
  border-color: rgba(249,115,22,0.45);
}

/* Skip straight to content — first stop for keyboard and screen-reader users. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(249,115,22,0.34);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Anchored headings clear the sticky header instead of hiding under it. */
:target,
section[id],
[id] {
  scroll-margin-top: 96px;
}

/* ---- Sticky header, scrolled state ------------------------------------- */
/* Driven by a class from site.js rather than inline styles. */
.topbar-wrap.scrolled {
  background: rgba(7, 16, 29, 0.92);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  border-bottom-color: rgba(255,255,255,0.10);
}

/* ---- Dropdown: open on focus as well as hover -------------------------- */
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

/* ---- Interaction refinements ------------------------------------------- */
.card,
.package,
.faq-item {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              background 0.28s ease,
              box-shadow 0.28s ease;
}

.card:hover,
.faq-item:hover {
  box-shadow: 0 26px 64px rgba(0,0,0,0.34);
}

.card-link {
  display: flex;
  flex-direction: column;
}

/* Push the CTA to the bottom so cards of unequal text length line up. */
.card-link .card-cta {
  margin-top: auto;
  padding-top: 18px;
}

.btn:active,
.nav-cta:active,
.call-float:active {
  transform: translateY(0) scale(0.985);
}

/* Comfortable tap targets on touch devices. */
@media (hover: none) {
  .nav > a,
  .dropdown-toggle,
  .footer-links a {
    padding-block: 12px;
  }

  .card:hover,
  .package:hover,
  .faq-item:hover {
    transform: none;
  }
}

/* ---- Content still renders when JavaScript does not --------------------- */
/* .reveal starts at opacity 0 and is un-hidden by an IntersectionObserver.
   Without this, a failed or blocked script leaves the page blank. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Motion preferences ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .floating-orb {
    animation: none;
  }
}
