/* =========================================================
   Moduvo Design System — css/style.css
   ========================================================= */

/* ---------------------------------------------------------
   CSS Variables
   --------------------------------------------------------- */
:root {
  --color-brand:        #1847F0;
  --color-brand-hover:  #0F35D4;
  --color-brand-light:  #EEF2FF;
  --color-brand-mid:    #C7D2FE;
  --color-bg-primary:   #FFFFFF;
  --color-bg-secondary: #F7F7F5;
  --color-text-primary: #0D0D0D;
  --color-text-secondary:#5A5A5A;
  --color-text-muted:   #9A9A9A;
  --color-border:       #E5E5E5;
  --color-footer-bg:    #0A0A0A;

  --font-display: 'Instrument Serif', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --section-padding-desktop: 120px;
  --section-padding-mobile:  64px;
  --container-max:           1200px;
  --radius:                  10px;
  --radius-sm:               6px;
  --radius-lg:               16px;
  --radius-pill:             999px;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
.display,
h1.display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* section-label is defined in Blue Accent Utilities below */

.mono {
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------
   Layout Utilities
   --------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.section {
  padding: var(--section-padding-desktop) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
}

.section-bg-secondary {
  background: var(--color-bg-secondary);
}

.section-bg-brand {
  background: var(--color-brand);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .two-col,
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .three-col,
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24,71,240,0.25);
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary {
  background: var(--color-brand);
  color: #FFFFFF;
  border-color: var(--color-brand);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  box-shadow: 0 6px 24px rgba(24,71,240,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-secondary:hover {
  background: var(--color-brand);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(24,71,240,0.25);
}

.btn-white {
  background: #FFFFFF;
  color: var(--color-brand);
  border-color: #FFFFFF;
}

.btn-white:hover {
  background: var(--color-brand-light);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-group .btn {
    justify-content: center;
    width: 100%;
  }
  .btn {
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

#main-nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--color-border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}

.nav-logo {
  flex-shrink: 0;
  margin-right: auto;
}

.logo-light {
  height: 156px;
  width: auto;
  filter: invert(1) brightness(0);
  /* Converts white logo to black for use on light nav background */
}

.logo-dark {
  height: 260px;
  width: auto;
  /* White logo shows correctly on dark footer/blue hero backgrounds */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-brand);
}

.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 13px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 16px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--color-border);
    padding: 8px 24px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-primary);
  }

  .nav-links a:hover {
    color: var(--color-brand);
    padding-left: 4px;
    transition: padding-left 0.15s;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
footer {
  background: var(--color-footer-bg);
  color: #FFFFFF;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
  padding-top: 80px;
  padding-bottom: 64px;
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-col p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.6;
}

.footer-col h4 {
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #FFFFFF;
}

.footer-col > a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  transition: color 0.2s;
}

.footer-col > a:hover {
  color: #FFFFFF;
}

.linkedin-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  padding: 40px;
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 8px 32px rgba(24,71,240,0.1);
  transform: translateY(-3px);
}

.card-sm {
  padding: 24px;
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-mid);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 20px;
}

.card-arrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  color: var(--color-brand);
  font-size: 20px;
  transition: color 0.2s, transform 0.2s;
}

.card:hover .card-arrow {
  color: var(--color-brand-hover);
  transform: translate(3px, -3px);
}

/* ---------------------------------------------------------
   Fade-in Animations
   --------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 100ms);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   Form Styles
   --------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:hover,
input[type="email"]:hover,
select:hover {
  border-color: var(--color-brand-mid);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-brand);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(24,71,240,0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------------------------------------------------------
   Misc Utilities
   --------------------------------------------------------- */
.text-center { text-align: center; }
.text-white  { color: #FFFFFF !important; }
.text-muted  { color: var(--color-text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* Hero grid background */
.hero-grid-bg {
  background-color: var(--color-bg-primary);
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Brand hero bg */
.hero-brand-bg {
  background: var(--color-brand);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 48px 0;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.data-table tbody tr:hover {
  background: var(--color-bg-secondary);
}

.data-table tfoot td {
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Tag / badge */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--color-brand-mid);
  color: var(--color-brand);
  background: var(--color-brand-light);
  border-radius: var(--radius-pill);
}

.tag-dark {
  background: var(--color-text-primary);
  color: #FFFFFF;
  border-color: var(--color-text-primary);
  border-radius: var(--radius-pill);
}

/* Stats bar row */
.stats-bar {
  background: var(--color-brand);
  padding: 64px 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stats-bar-item {
  text-align: center;
  padding: 0 40px;
  position: relative;
}

.stats-bar-item + .stats-bar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: #FFFFFF;
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  display: block;
}

@media (max-width: 480px) {
  .stats-bar-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-bar-item + .stats-bar-item::before {
    display: none;
  }
  .stats-bar-item {
    padding: 0;
  }
}

/* Blurred locked section */
.locked-section {
  position: relative;
  overflow: hidden;
}

.locked-section .lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.locked-section .blurred-content {
  filter: blur(4px);
  user-select: none;
}

/* Success / Error messages */
.form-success,
.form-error {
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  display: none;
}

.form-success {
  background: #F0FFF4;
  border: 1px solid #68D391;
  color: #276749;
}

.form-error {
  background: #FFF5F5;
  border: 1px solid #FC8181;
  color: #9B2C2C;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.countdown-item {
  text-align: center;
}

.countdown-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  display: block;
}

@media (max-width: 480px) {
  .countdown {
    gap: 16px;
  }
  .countdown-num {
    font-size: 32px;
  }
}

/* Sticky register btn */
.sticky-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: none;
  box-shadow: 0 4px 24px rgba(24,71,240,0.35);
}

.sticky-cta.visible {
  display: inline-flex;
}

@media (max-width: 480px) {
  .sticky-cta {
    bottom: 16px;
    right: 16px;
  }
}

/* Case study card left accent */
.cs-card {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  padding: 48px;
  border-radius: var(--radius);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.cs-card:hover {
  box-shadow: 0 8px 32px rgba(24,71,240,0.12);
  transform: translateY(-3px);
  border-color: var(--color-brand);
}

.cs-metric {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1;
  display: block;
}

.cs-metric-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
  display: block;
}

/* Timeline (How we work) */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 64px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: var(--color-border);
}

.timeline-step {
  padding: 0 24px;
  padding-top: 64px;
  position: relative;
  text-align: left;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-brand);
  background: var(--color-brand-light);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(24,71,240,0.1);
}

.timeline-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 8px;
}

.timeline-step h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.timeline-step p {
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before {
    display: none;
  }
  .timeline-step {
    padding: 0 0 0 48px;
    padding-bottom: 40px;
    position: relative;
  }
  .timeline-step::before {
    top: 2px;
    left: 0;
  }
  .timeline-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 7px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
  }
  .timeline-step:last-child::after {
    display: none;
  }
}

/* Geometric hero art */
.hero-geo {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.hero-geo .geo-rect {
  position: absolute;
  border-radius: var(--radius);
}

/* Hero Results Panel */
.hero-results-panel {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 40px rgba(24,71,240,0.10), 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hrp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hrp-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-mid);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.hrp-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hrp-metric--big {
  background: var(--color-brand-light);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hrp-metric--big .hrp-number {
  font-size: 48px;
}

.hrp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hrp-row .hrp-metric {
  background: #F8F8FB;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hrp-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1;
}

.hrp-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-brand);
  font-weight: 600;
  margin-top: -2px;
}

.hrp-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.hrp-bar {
  background: var(--color-brand-mid);
  border-radius: var(--radius-pill);
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.hrp-bar-fill {
  height: 100%;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}

.hrp-wins {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #F8F8FB;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.hrp-win {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hrp-win-dot {
  width: 7px;
  height: 7px;
  background: var(--color-brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.hrp-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hrp-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #F0F0F0;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

/* ---------------------------------------------------------
   Blue Accent Utilities
   --------------------------------------------------------- */
.blue-accent-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.blue-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-mid);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-brand);
  font-size: 22px;
}

.blue-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.highlight-blue {
  color: var(--color-brand);
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.section-label.light {
  color: rgba(255,255,255,0.65);
}

.section-label.light::before {
  background: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------
   Mobile-specific improvements
   --------------------------------------------------------- */

/* Hero on mobile */
@media (max-width: 768px) {
  .hero-geo {
    height: 240px;
    margin-top: 32px;
  }

  h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  h2 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .display,
  h1.display {
    font-size: clamp(36px, 9vw, 56px);
  }
}

/* Cards on mobile - no hover transform to avoid sticky states */
@media (max-width: 768px) {
  .card:hover,
  .cs-card:hover {
    transform: none;
  }

  .card {
    padding: 28px 24px;
  }

  .cs-card {
    padding: 32px 24px;
  }

  .cs-metric {
    font-size: 40px;
  }
}

/* Timeline mobile refinement */
@media (max-width: 768px) {
  .timeline-step {
    border-left: 2px solid var(--color-brand-mid);
    padding-left: 24px;
    padding-bottom: 32px;
    margin-left: 8px;
  }

  .timeline-step::before {
    left: -9px;
    top: 4px;
  }

  .timeline-step::after {
    display: none !important;
  }

  .timeline-step:last-child {
    border-left-color: transparent;
  }
}

/* Stats bar mobile */
@media (max-width: 480px) {
  .stats-bar {
    padding: 48px 0;
  }

  .stat-number {
    font-size: 36px;
  }

  .stats-bar-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-bar-item {
    padding: 0 16px;
  }
}

/* Two column collapse on mobile */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Section padding mobile */
@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 20px;
  }
}

/* Footer mobile */
@media (max-width: 480px) {
  .footer-inner {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Countdown mobile */
@media (max-width: 480px) {
  .countdown {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .countdown-item {
    min-width: 64px;
  }
  .countdown-num {
    font-size: 36px;
  }
}

/* Form rows mobile */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Hide mobile-only CTA on desktop */
@media (min-width: 961px) {
  .mobile-cta-li {
    display: none !important;
  }
}

/* Nav mobile CTA — show inside menu */
@media (max-width: 960px) {
  .nav-links .mobile-cta-li {
    display: block;
    margin-top: 16px;
    border-bottom: none !important;
    padding-top: 8px;
  }
  .nav-links .mobile-cta-li a {
    border-bottom: none;
    padding: 0;
  }
  .nav-links .mobile-cta-li .btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 16px;
  }
}

/* ==========================================================
   COMPREHENSIVE MOBILE OVERRIDES
   All breakpoints at 768px (tablet) and 480px (phone)
   ========================================================== */

/* --- Layout helpers --- */
.hero-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: center;
}

.two-col-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.two-col-md {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.three-col-auto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 80px;
  align-items: flex-start;
}

/* --- Services hero stats bar --- */
.services-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.15);
  margin-top: 72px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* --- Webinar stats bar --- */
.webinar-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* --- Data table scroll wrapper --- */
.data-table {
  min-width: auto;
  width: 100%;
}

/* ==========================================================
   TABLET (max 768px)
   ========================================================== */
@media (max-width: 768px) {
  /* Hero layout: stack content above panel */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Contact: stack form above Calendly */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Services hero stats: 1 col */
  .services-hero-stats {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .services-hero-stats > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .services-hero-stats > div:last-child {
    border-bottom: none;
  }

  /* Webinar stats: 2 cols */
  .webinar-stats-bar {
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
  }

  .webinar-stats-bar > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .webinar-stats-bar > div:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.15) !important;
  }

  /* Three col: 2 then 1 */
  .three-col-auto {
    grid-template-columns: 1fr 1fr;
  }

  /* Two col grids: stack */
  .two-col-md {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Affiliate tier cards: 1 col */
  .two-col-md.fade-in {
    grid-template-columns: 1fr;
  }

  /* Calendly height */
  .calendly-inline-widget {
    height: 580px !important;
  }

  /* Hero section padding */
  .hero-grid-bg .container {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* Results panel on tablet — shrink numbers */
  .hrp-metric--big .hrp-number {
    font-size: 36px;
  }
}

/* ==========================================================
   PHONE (max 480px)
   ========================================================== */
@media (max-width: 480px) {
  /* Two col small: always stack on phone */
  .two-col-sm {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .two-col-md {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Three col: single column */
  .three-col-auto {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Webinar stats: single column */
  .webinar-stats-bar {
    grid-template-columns: 1fr;
  }

  .webinar-stats-bar > div {
    border-right: none !important;
  }

  .webinar-stats-bar > div:nth-child(odd) {
    border-right: none !important;
  }

  /* Affiliate tier card padding */
  .two-col-md > div[style*="padding:40px"] {
    padding: 24px !important;
  }

  /* Services hero stats: single col already, tighten padding */
  .services-hero-stats > div {
    padding: 20px 24px !important;
  }

  /* Hero section */
  .hero-layout {
    gap: 32px;
  }

  /* Contact Calendly height reduction */
  .calendly-inline-widget {
    height: 520px !important;
    min-width: 100% !important;
  }

  /* Data table: horizontal scroll */
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 480px;
  }

  /* Results panel: full bleed, smaller numbers */
  .hero-results-panel {
    padding: 20px;
  }

  .hrp-metric--big .hrp-number {
    font-size: 40px;
  }

  .hrp-number {
    font-size: 26px;
  }

  /* Section headings */
  h1 {
    font-size: clamp(30px, 8vw, 44px) !important;
  }

  h2 {
    font-size: clamp(24px, 6.5vw, 36px) !important;
  }

  /* Buttons full width on phone */
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    text-align: center;
    justify-content: center;
  }

  /* Nav logo sizing */
  .logo-light {
    height: 100px !important;
  }

  /* Section padding tighter */
  .section {
    padding: 48px 0;
  }

  /* Card padding tighter on phone */
  .card {
    padding: 24px 20px;
  }

  /* CS card tighter */
  .cs-card {
    padding: 28px 20px;
  }

  .cs-metric {
    font-size: 36px;
  }

  /* Footer grid: single col */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* Stats bar */
  .stat-number {
    font-size: 32px;
  }

  /* Promise card tighter */
  .promise-card {
    padding: 24px !important;
  }

  /* Timeline tighter */
  .timeline {
    gap: 0;
  }
}
