/* ================================================================
   FxCTO THEME — MOBILE-FIRST CSS
   Optimized for: iPhone 15/16/17 & Samsung S23/S24/S25
   Breakpoints: 360px → 390px → 430px → 768px → 1024px → 1280px
   ================================================================ */

/* ── RESET & ROOT ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colors — match FxCTO logo */
  --black:      #000000;
  --navy:       #050c18;
  --navy-mid:   #0a1628;
  --navy-card:  #0d1e35;
  --blue-light: #4db8ff;
  --blue:       #1a7fe8;
  --blue-dark:  #0d5bbf;
  --blue-grad:  linear-gradient(135deg, #4db8ff 0%, #1a7fe8 50%, #0d5bbf 100%);
  --green:      #10b981;
  --green-dark: #059669;
  --white:      #ffffff;
  --off-white:  #e8f0fe;
  --muted:      rgba(255,255,255,0.55);
  --muted-dim:  rgba(255,255,255,0.35);
  --border:     rgba(255,255,255,0.08);
  --border-blue:rgba(77,184,255,0.2);

  /* Section backgrounds */
  --bg-dark:  #050c18;
  --bg-mid:   #080f1e;
  --bg-light: #0a1628;
  --bg-card:  #0d1e35;
  --bg-page:  #f0f4f8; /* light sections */

  /* Type */
  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body:    'Barlow', sans-serif;

  /* Spacing scale (mobile-first) */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  40px;
  --sp-xl:  64px;
  --sp-2xl: 100px;

  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Touch target minimum */
  --touch: 48px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--ff-body); cursor: pointer; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* Mobile sizes (base) */
h1 { font-size: clamp(1.8rem, 7vw, 3rem); word-break: break-word; overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--sp-sm);
}
.eyebrow-green { color: var(--green); }

/* ── LAYOUT UTILITIES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md); /* 24px mobile */
}

/* Sections — mobile padding */
.section      { padding: var(--sp-xl) 0; }     /* 64px mobile */
.section-sm   { padding: var(--sp-lg) 0; }     /* 40px mobile */

/* Mobile-first grid — stacks to 1 column */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--sp-md); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }   /* 2-col on mobile */

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  min-height: var(--touch);
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--blue-grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,127,232,0.4);
}
.btn-primary:active { transform: scale(0.97); }

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(16,185,129,0.4);
}
.btn-green:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:active { background: rgba(255,255,255,0.05); }

.btn-full { width: 100%; }

/* ── LOGO (SVG inline recreation of FxCTO brand) ─────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.logo-shield {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-fx  { color: var(--white); }
.logo-cto { background: var(--blue-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}
.logo-powered {
  font-size: 0.55rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}

/* ── NAVIGATION ───────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 12, 24, 0.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--sp-md);
  min-height: 64px;
}

/* Mobile: hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch);
  height: var(--touch);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-menu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  padding: var(--sp-lg) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 999;
  overflow-y: auto;
}
.nav-menu.open { transform: translateX(0); }

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-menu a:active,
.nav-menu a.active { color: var(--blue-light); border-color: var(--border-blue); background: rgba(77,184,255,0.06); }

.nav-cta-mobile {
  margin-top: auto;
}

/* Desktop nav — hidden on mobile */
.nav-desktop { display: none; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 90px 0 var(--sp-xl);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(26,127,232,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 80% at 100% 80%, rgba(77,184,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(16,185,129,0.05) 0%, transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(77,184,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,184,255,1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(77,184,255,0.08);
  border: 1px solid rgba(77,184,255,0.2);
  border-radius: 100px;
  padding: 7px 14px;
  margin-bottom: var(--sp-md);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.6); }
}
.hero-badge span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); }

.hero h1 { margin-bottom: var(--sp-sm); }
.hero h1 em { font-style: italic; color: transparent; background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}
.hero-stat {}
.stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--blue-light); }
.stat-label {
  font-size: 0.72rem;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── PROBLEM SECTION ──────────────────────────────────────────── */
.problem-section {
  background: var(--bg-mid);
  padding: var(--sp-xl) 0;
}
.section-header {
  margin-bottom: var(--sp-lg);
}
.section-header h2 { margin-bottom: 10px; }
.section-header p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

.problem-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); }

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.problem-icon { font-size: 1.5rem; margin-bottom: 10px; }
.problem-card h4 { font-size: 0.95rem; margin-bottom: 6px; color: var(--white); }
.problem-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

.problem-resolution {
  margin-top: var(--sp-lg);
  padding: var(--sp-md);
  background: linear-gradient(135deg, rgba(26,127,232,0.12), rgba(16,185,129,0.08));
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  text-align: center;
}
.problem-resolution p { font-size: 1rem; font-weight: 500; color: var(--white); line-height: 1.6; }
.problem-resolution strong { color: var(--blue-light); }

/* ── SERVICES OVERVIEW ────────────────────────────────────────── */
.services-section { background: var(--bg-dark); padding: var(--sp-xl) 0; }

.svc-cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transition: opacity 0.25s;
  opacity: 0;
}
.svc-card.blue::after { background: var(--blue-grad); }
.svc-card.green::after { background: linear-gradient(90deg, var(--green), #34d399); }
.svc-card.amber::after { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.svc-card:active { border-color: var(--border-blue); box-shadow: 0 0 24px rgba(77,184,255,0.1); }
.svc-card:active::after { opacity: 1; }

.svc-icon-wrap {
  width: 50px; height: 50px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--sp-sm);
  flex-shrink: 0;
}
.svc-icon-wrap.blue { background: rgba(77,184,255,0.1); }
.svc-icon-wrap.green { background: rgba(16,185,129,0.1); }
.svc-icon-wrap.amber { background: rgba(245,158,11,0.1); }

.svc-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.svc-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: var(--sp-sm); }

.svc-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.svc-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.4;
}
.svc-list li::before { content: '→'; color: var(--blue-light); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.svc-card.green .svc-list li::before { color: var(--green); }
.svc-card.amber .svc-list li::before { color: #f59e0b; }

/* ── INDUSTRIES ───────────────────────────────────────────────── */
.industries-section { background: var(--bg-mid); padding: var(--sp-xl) 0; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}
.industry-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  transition: border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.industry-item:active { border-color: var(--border-blue); }
.industry-icon { font-size: 1.6rem; margin-bottom: 8px; }
.industry-item p { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── RESOURCES STRIP ──────────────────────────────────────────── */
.resources-section { background: var(--bg-dark); padding: var(--sp-xl) 0; }

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.res-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-sm);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.res-card:active { background: rgba(77,184,255,0.06); border-color: var(--border-blue); }
.res-icon { font-size: 1.6rem; margin-bottom: 8px; }
.res-card h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; color: var(--white); }
.res-card p { font-size: 0.72rem; color: var(--blue-light); font-weight: 600; }

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials-section { background: var(--bg-mid); padding: var(--sp-xl) 0; }

.testi-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
}
.stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--white);
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--white); }
.testi-role { font-size: 0.75rem; color: var(--muted-dim); margin-top: 2px; }

/* ── CTA BANNER ───────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0d5bbf 0%, #1a7fe8 50%, #4db8ff 100%);
  padding: var(--sp-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255,255,255,0.1), transparent);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 0.95rem; max-width: 460px; margin: 0 auto var(--sp-lg); line-height: 1.7; }
.cta-banner-actions { display: flex; flex-direction: column; gap: var(--sp-sm); }

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch);
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-white:active { transform: scale(0.97); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch);
  padding: 11px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

/* ── SERVICES / PRICING PAGE ──────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s;
}
.pricing-card.featured { border: 2px solid var(--blue); box-shadow: 0 0 40px rgba(26,127,232,0.2); }

.pricing-badge {
  background: var(--blue-grad);
  color: var(--white);
  text-align: center;
  padding: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-body { padding: var(--sp-md); }

.pricing-tier {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 6px;
}
.pricing-tier.blue  { color: var(--blue-light); }
.pricing-tier.green { color: var(--green); }
.pricing-tier.amber { color: #f59e0b; }

.pricing-name { font-size: 1.3rem; margin-bottom: 8px; }
.pricing-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: var(--sp-md); }

.pricing-price { margin-bottom: var(--sp-md); }
.price-num { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 900; letter-spacing: -0.05em; }
.price-per { font-size: 0.85rem; color: var(--muted); }

.pricing-divider { height: 1px; background: var(--border); margin-bottom: var(--sp-md); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-lg); }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.5;
}
.feat-check { color: var(--green); font-weight: 800; flex-shrink: 0; }

.pricing-cta {
  width: 100%;
  min-height: var(--touch);
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--ff-body);
}
.pricing-cta.blue-btn { background: var(--blue-grad); color: var(--white); }
.pricing-cta.outline-btn { background: transparent; color: var(--white); border: 1.5px solid var(--border); }
.pricing-cta.outline-btn:active { border-color: var(--blue-light); }
.pricing-cta.green-btn { background: var(--green); color: var(--white); }

/* Outcomes */
.outcomes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.outcome-item { text-align: center; padding: var(--sp-md) var(--sp-sm); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.outcome-num { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 900; letter-spacing: -0.04em; background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.outcome-num.green { background: linear-gradient(135deg,var(--green),#34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.outcome-label { font-size: 0.78rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* Process */
.process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.process-step { text-align: center; padding: var(--sp-md) var(--sp-sm); }
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto var(--sp-sm);
  background: var(--bg-card);
  border: 2px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.2rem; font-weight: 900;
  background: var(--blue-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  border: 2px solid;
  border-image: var(--blue-grad) 1;
}
.step-num-wrap {
  width: 60px; height: 60px; border-radius: 50%;
  margin: 0 auto var(--sp-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
}
.step-num-inner { font-family: var(--ff-display); font-weight: 900; font-size: 1.2rem; color: var(--blue-light); }
.process-step h4 { font-size: 0.92rem; margin-bottom: 6px; }
.process-step p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Compare table */
.compare-table { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.compare-row.header { background: var(--navy); }
.compare-row:not(.header):nth-child(even) { background: var(--bg-card); }
.compare-row:not(.header):nth-child(odd) { background: var(--bg-mid); }
.compare-cell {
  padding: 14px 16px;
  font-size: 0.8rem;
  border-right: 1px solid var(--border);
}
.compare-cell:last-child { border-right: none; }
.compare-row.header .compare-cell { color: var(--muted); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-row.header .compare-cell.highlight { color: var(--blue-light); }
.compare-cell.label { font-weight: 600; color: rgba(255,255,255,0.8); }
.compare-cell.good { color: var(--green); font-weight: 600; }
.compare-cell.bad  { color: #f87171; }
.compare-cell.highlight { background: rgba(77,184,255,0.05); }

/* ── ACADEMY PAGE ─────────────────────────────────────────────── */
.academy-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }

.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-md); }
.cat-tab {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  min-height: 40px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cat-tab.active, .cat-tab:active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.featured-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-md);
  cursor: pointer;
}
.featured-img {
  height: 200px;
  background: linear-gradient(135deg, #050c18 0%, #0d5bbf 60%, #1a7fe8 100%);
  position: relative;
  display: flex; align-items: flex-end;
  padding: var(--sp-md);
}
.featured-cat {
  position: absolute; top: 16px; left: 16px;
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.featured-title-overlay {
  font-family: var(--ff-display);
  font-size: 1.2rem; font-weight: 800;
  color: var(--white); line-height: 1.2;
}
.featured-body { padding: var(--sp-md); }
.featured-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.featured-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-light); font-weight: 700; font-size: 0.85rem;
  margin-top: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.articles-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); }

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  transition: border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.article-card:active { border-color: var(--border-blue); }
.article-thumb {
  width: 90px;
  min-height: 90px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #050c18, #1a7fe8);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 8px;
}
.article-thumb.green { background: linear-gradient(135deg, #022c22, var(--green)); }
.article-thumb.amber { background: linear-gradient(135deg, #451a03, #f59e0b); }
.article-thumb.purple { background: linear-gradient(135deg, #2e1065, #7c3aed); }
.article-cat-badge {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  color: var(--white); padding: 3px 6px; border-radius: 4px;
}
.article-body { padding: 12px; flex: 1; }
.article-body h4 { font-size: 0.85rem; line-height: 1.35; margin-bottom: 5px; }
.article-body p { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.article-meta { font-size: 0.68rem; color: var(--muted-dim); margin-top: 6px; }

/* Sidebar */
.academy-sidebar {}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.sidebar-widget h4 { font-size: 1rem; margin-bottom: var(--sp-sm); }
.sidebar-widget > p { font-size: 0.83rem; color: var(--muted); margin-bottom: var(--sp-sm); line-height: 1.6; }

.email-form { display: flex; flex-direction: column; gap: 10px; }
.email-input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-mid);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  outline: none;
  min-height: var(--touch);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.email-input::placeholder { color: var(--muted-dim); }
.email-input:focus { border-color: var(--blue); }

.sidebar-links { list-style: none; display: flex; flex-direction: column; }
.sidebar-links li a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  min-height: var(--touch);
  cursor: pointer; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links li a:active { color: var(--blue-light); }

.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-mid);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: var(--touch);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.dl-item:active { background: rgba(77,184,255,0.06); }
.dl-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--blue-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.dl-icon.green { background: linear-gradient(135deg, var(--green), #34d399); }
.dl-title { font-size: 0.83rem; font-weight: 700; color: var(--white); }
.dl-desc  { font-size: 0.72rem; color: var(--muted); }

/* ── ABOUT PAGE ───────────────────────────────────────────────── */
.mission-points { display: flex; flex-direction: column; gap: var(--sp-md); margin-top: var(--sp-lg); }
.mission-point { display: flex; align-items: flex-start; gap: 14px; }
.mp-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(16,185,129,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  margin-top: 2px;
}
.mp-text h5 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.mp-text p  { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

.about-story-text p { color: var(--muted); line-height: 1.8; margin-bottom: var(--sp-md); font-size: 0.92rem; }

.big-quote {
  background: linear-gradient(135deg, rgba(26,127,232,0.1), rgba(16,185,129,0.06));
  border-left: 4px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-md);
  margin: var(--sp-lg) 0;
}
.big-quote blockquote {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.value-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-md); }
.value-num { font-family: var(--ff-display); font-size: 2rem; font-weight: 900; color: var(--blue-light); opacity: 0.15; line-height: 1; margin-bottom: 8px; }
.value-item h5 { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; }
.value-item p  { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* ── CONTACT PAGE ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }

.contact-info > p { color: var(--muted); line-height: 1.75; margin-bottom: var(--sp-lg); font-size: 0.92rem; }
.contact-methods { display: flex; flex-direction: column; gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: var(--touch);
}
.cm-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: rgba(77,184,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.cm-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dim); margin-bottom: 2px; }
.cm-value { font-size: 0.88rem; font-weight: 600; color: var(--white); }

.contact-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-md); }
.contact-form-card h3 { margin-bottom: 8px; }
.contact-form-card > p { color: var(--muted); font-size: 0.85rem; margin-bottom: var(--sp-lg); line-height: 1.6; }

.form-field { margin-bottom: var(--sp-sm); }
.form-field label { display: block; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; margin-bottom: 6px; text-transform: uppercase; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-mid);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  outline: none;
  min-height: var(--touch);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-dim); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-field select option { background: var(--navy); color: var(--white); }

.form-submit {
  width: 100%; min-height: 52px;
  background: var(--blue-grad);
  color: var(--white);
  border: none; border-radius: 10px;
  font-family: var(--ff-body);
  font-weight: 800; font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(26,127,232,0.4);
  margin-top: 8px;
  -webkit-tap-highlight-color: transparent;
}
.form-submit:active { transform: scale(0.98); }
.form-submit.loading { opacity: 0.7; pointer-events: none; }

.form-reassurance { text-align: center; margin-top: 10px; font-size: 0.75rem; color: var(--muted-dim); }
.form-message { display: none; padding: 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 600; margin-top: 12px; text-align: center; }
.form-message.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--green); display: block; }
.form-message.error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; display: block; }

/* ── PAGE HERO (shared) ───────────────────────────────────────── */
.page-hero {
  padding: 100px 0 var(--sp-xl);
  background: var(--black);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(26,127,232,0.14), transparent 55%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 560px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: var(--sp-xl) 0 var(--sp-lg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.83rem; color: var(--muted-dim); line-height: 1.7; margin-top: var(--sp-sm); max-width: 260px; }
.footer-col h5 { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.83rem; color: var(--muted); cursor: pointer; transition: color 0.2s; min-height: var(--touch); display: flex; align-items: center; }
.footer-col ul li a:active { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-bottom p { font-size: 0.75rem; color: var(--muted-dim); }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.social-link:active { border-color: var(--border-blue); }

/* ── TOAST ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 9999;
  background: #0d1e35;
  border: 1px solid var(--border-blue);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  min-width: 280px;
  max-width: calc(100vw - 48px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.5s ease both; }
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation: fadeUp 0.6s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.2s ease both; }

@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }

/* ── SAFE AREA (iPhone notch / Dynamic Island) ────────────────── */
#site-nav { padding-top: env(safe-area-inset-top, 0); }
.hero, .page-hero { padding-top: calc(100px + env(safe-area-inset-top, 0)); }
.site-footer { padding-bottom: calc(var(--sp-lg) + env(safe-area-inset-bottom, 0)); }

/* ================================================================
   MEDIA QUERIES — Mobile-first scaling up
   ================================================================ */

/* ── 480px+ (large phones, iPhone Plus, Samsung Ultra) ──────── */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; }
  .cta-banner-actions { flex-direction: row; justify-content: center; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; height: 110px; }
  .resources-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 768px+ (tablet, iPad) ───────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --sp-xl: 80px;
    --sp-2xl: 120px;
  }

  .container { padding: 0 32px; }

  h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
  h2 { font-size: clamp(2.2rem, 4vw, 3rem); }

  /* Nav — tablet shows CTA but keeps hamburger */
  .nav-cta-desktop { display: flex; }

  .hero { min-height: 90vh; }
  .hero-sub { font-size: 1.15rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 2.4rem; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .resources-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: repeat(4, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; height: 120px; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── 1024px+ (desktop) ───────────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --sp-xl: 100px; }
  .container { padding: 0 40px; }

  /* Switch to full desktop nav */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    transform: none;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 4px;
    overflow: visible;
  }
  .nav-menu a {
    font-size: 0.875rem;
    padding: 8px 14px;
    min-height: auto;
    border: none;
    color: var(--muted);
  }
  .nav-menu a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
  .nav-menu a.active { color: var(--blue-light); background: rgba(77,184,255,0.06); }
  .nav-cta-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: var(--sp-sm); }

  /* Layout upgrades */
  .svc-cards { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(6, 1fr); }
  .resources-grid { grid-template-columns: repeat(5, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .academy-layout { grid-template-columns: 1fr 340px; }
  .contact-layout { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: row; }
  .cta-banner-actions { flex-direction: row; }

  /* About grid */
  .about-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,127,232,0.5); }
  .btn-green:hover   { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,0.5); }
  .btn-white:hover   { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
  .svc-card:hover { border-color: var(--border-blue); box-shadow: 0 0 30px rgba(77,184,255,0.08); }
  .svc-card:hover::after { opacity: 1; }
  .pricing-card:hover { border-color: var(--border-blue); }
  .article-card:hover { border-color: var(--border-blue); transform: translateY(-2px); }
  .industry-item:hover { border-color: var(--border-blue); }
}

/* ── 1280px+ (wide desktop) ─────────────────────────────────── */
@media (min-width: 1280px) {
  .container { padding: 0 48px; }
  h1 { font-size: 5rem; }
  h2 { font-size: 3.2rem; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  #site-nav, .toast, .nav-toggle { display: none; }
  body { background: white; color: black; }
}

/* Fix: allow Most Popular badge to overflow the featured pricing card */
.pricing-card--featured { overflow: visible; }
