/* ==========================================================
   BoldstartAI — Production Design System & Component Styles
   ========================================================== */

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Brand */
  --brand-navy: #0F325C;
  --brand-blue: #15A5E1;
  --brand-paper: #F6F8FA;

  /* Surface */
  --surface: #f8f9fb;
  --surface-dim: #d8dadc;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-container-highest: #e0e3e5;
  --surface-variant: #e0e3e5;

  /* On-colors */
  --on-surface: #191c1e;
  --on-surface-variant: #43474f;
  --on-primary: #ffffff;
  --on-primary-container: #7e9bcb;
  --on-tertiary-fixed: #0e1d29;

  /* Primary */
  --primary: #001d3e;
  --primary-container: #0f325c;

  /* Secondary */
  --secondary: #00658d;
  --secondary-container: #48c1ff;
  --secondary-fixed: #c6e7ff;

  /* Outline */
  --outline: #747780;
  --outline-variant: #c4c6d0;

  /* Error */
  --error: #ba1a1a;

  /* Spacing */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 48px;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .08), 0 2px 4px -2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .06);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

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

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

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--secondary-fixed);
  color: #001e2d;
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

/* --- Typography --- */
.text-h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .text-h1 {
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
}

.text-h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .text-h2 {
    font-size: 38px;
  }
}

.text-h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}

.text-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.text-caption {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.text-badge {
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
}

.text-stat {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  padding: 10px 32px;
  background: var(--brand-navy);
  color: var(--on-primary);
  font-size: 16px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  filter: brightness(1.15);
}

.btn-cta {
  padding: 20px 48px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
}

.btn-cta:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.btn-cta:active {
  transform: scale(0.97);
}

.btn-cta-full {
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .btn-cta-full {
    width: auto;
    padding: 20px 48px;
    background: var(--brand-blue);
    font-size: 22px;
    box-shadow: var(--shadow-2xl);
  }

  .btn-cta-full:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
  }
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(248, 249, 251, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

@media (min-width: 768px) {
  .header-inner {
    height: 80px;
  }
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (min-width: 768px) {
  .logo-img {
    height: 70px;
  }
}

/* Desktop Nav */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 16px;
  color: var(--on-surface-variant);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--secondary);
  font-weight: 700;
  border-bottom-color: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--surface-container-low);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.header-book-btn {
  display: none;
}

@media (min-width: 768px) {
  .header-book-btn {
    display: inline-flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-md) var(--margin-mobile);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px var(--margin-mobile) var(--space-lg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-bottom: var(--space-lg);
}

.mobile-menu-footer .btn {
  width: 100%;
  padding: 16px;
  background: var(--secondary);
  color: var(--on-primary);
  font-size: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    min-height: 800px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(21, 165, 225, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(21, 165, 225, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(170, 200, 250, 0.1) 0%, transparent 50%),
    linear-gradient(160deg, #001d3e 0%, #0F325C 40%, #0a2a4a 70%, #001d3e 100%);
  background-size: 200% 200%;
  animation: heroShift 20s ease-in-out infinite;
  z-index: 1;
}

/* Animated floating particles */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--brand-blue);
  animation: float 12s ease-in-out infinite;
}

.hero-bg::before {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -5%;
  animation-delay: -4s;
}

.hero-bg::after {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: -5%;
  animation-delay: -8s;
  animation-duration: 16s;
}

@keyframes heroShift {

  0%,
  100% {
    background-position: 0% 0%;
  }

  25% {
    background-position: 50% 100%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 0%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 29, 62, 0.55);
  pointer-events: none;
  z-index: 3;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 900px;
    padding: 0 var(--margin-desktop);
  }
}

.hero-content .text-h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.hero-content .text-h1 .highlight {
  color: var(--brand-blue);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: bounce 2s ease infinite;
  color: var(--on-surface-variant);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (min-width: 768px) {
  .hero-scroll-hint {
    display: none;
  }
}

/* ===========================
   STATS
   =========================== */
.stats-section {
  background: var(--brand-navy);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
}

.stat-item:not(:last-child) {
  border-bottom: 1px solid rgba(21, 165, 225, 0.3);
}

@media (min-width: 768px) {
  .stat-item:not(:last-child) {
    border-bottom: none;
    border-right: 1px solid rgba(21, 165, 225, 0.3);
  }
}

.stat-value {
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--on-primary-container);
  max-width: 260px;
}

/* ===========================
   SECTION — Built for Growing Businesses
   =========================== */
.business-section {
  padding: 80px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
}

.section-header {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.section-header .text-h2 {
  color: var(--brand-navy);
  margin-bottom: var(--space-md);
}

.section-header .text-body-lg {
  color: var(--on-surface-variant);
}

/* ===========================
   AGENTS / STACKING CARD ANIMATION
   =========================== */
.page-content {
  overflow: visible !important;
}

.agents-section {
  padding: 80px 0 140px;
  background: var(--brand-paper);
  position: relative;
  overflow: visible !important;
}

.agents-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 56px;
  text-align: center;
}

@media (min-width: 768px) {
  .agents-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }
}

.agents-header .text-h2 {
  color: var(--brand-navy);
}

.agents-header .text-body-md {
  color: var(--on-surface-variant);
  margin-top: 6px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-weight: 700;
  transition: gap 0.2s;
}

.view-all-link:hover {
  text-decoration: underline;
  gap: 12px;
}

/* Stacking Container */
.agents-stack-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 40px;
}

/* Sticky Stacked Cards */
.agent-card.stack-card,
.agent-card-cta.stack-card {
  position: sticky;
  top: 90px;
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  padding: 32px;
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 40px rgba(15, 50, 92, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 60px;
  transform-origin: center top;
  transition: filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, filter;
  pointer-events: auto;
}

.agent-card.stack-card[data-card-index="0"] {
  top: 90px;
  z-index: 1;
}

.agent-card.stack-card[data-card-index="1"] {
  top: 100px;
  z-index: 2;
}

.agent-card.stack-card[data-card-index="2"] {
  top: 110px;
  z-index: 3;
}

.agent-card.stack-card[data-card-index="3"] {
  top: 120px;
  z-index: 4;
}

.agent-card.stack-card[data-card-index="4"] {
  top: 130px;
  z-index: 5;
}

.agent-card-cta.stack-card[data-card-index="5"] {
  top: 140px;
  z-index: 10;
  margin-bottom: 0;
}

/* Steady hover state — no expansion or tilt on mouse move */
.agent-card.stack-card:hover,
.agent-card-cta.stack-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 40px rgba(15, 50, 92, 0.14);
}

.agent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.agent-icon {
  width: 64px;
  height: 64px;
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.agent-card:hover .agent-icon {
  transform: scale(1.05);
}

.agent-icon .material-symbols-outlined {
  font-size: 30px;
  color: var(--brand-navy);
}

.agent-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.agent-name {
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.agent-tagline {
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.agent-desc {
  color: var(--on-surface-variant);
  margin-bottom: var(--space-md);
  font-size: 16.5px;
  line-height: 1.6;
}

/* Skill Tags — Desktop */
.skill-tags {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 768px) {
  .skill-tags {
    display: flex;
  }
}

.skill-tag {
  padding: 6px 14px;
  background: var(--on-tertiary-fixed);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.skill-tag:hover {
  background: var(--brand-navy);
}

/* Skill Tags — Mobile (expandable) */
.agent-details {
  display: block;
}

@media (min-width: 768px) {
  .agent-details {
    display: none;
  }
}

.agent-details summary {
  list-style: none;
  cursor: pointer;
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.agent-details summary::-webkit-details-marker {
  display: none;
}

.agent-details summary .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.2s;
}

.agent-details[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.agent-details-body {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag-light {
  padding: 4px 8px;
  background: var(--surface-container);
  font-size: 13px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
}

/* Mobile card top — different layout */
.agent-card-top-mobile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .agent-card-top-mobile {
    display: none;
  }
}

.agent-card-top-mobile .agent-icon {
  flex-shrink: 0;
}

.agent-card-top-mobile .agent-meta {
  flex: 1;
}

.agent-active-badge {
  padding: 4px 8px;
  background: rgba(21, 165, 225, 0.12);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
}

/* Show desktop top on desktop, mobile on mobile */
.agent-card-top {
  display: none;
}

@media (min-width: 768px) {
  .agent-card-top {
    display: flex;
  }
}

/* CTA Agent Card */
.agent-card-cta {
  background: rgba(21, 165, 225, 0.04);
  border: 2px dashed var(--brand-blue);
  padding: 44px 32px;
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.agent-card-cta .material-symbols-outlined {
  font-size: 44px;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.cta-card-btn {
  margin-top: 20px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  display: inline-flex;
  cursor: pointer;
}

.agent-card-cta .text-h3 {
  color: var(--brand-navy);
  margin-bottom: var(--space-sm);
}

.agent-card-cta .text-body-md {
  color: var(--on-surface-variant);
}

.agent-card-cta .btn-link {
  margin-top: var(--space-md);
  color: var(--brand-blue);
  font-weight: 700;
}

.agent-card-cta .btn-link:hover {
  text-decoration: underline;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-section {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  position: relative;
}

/* How Track & Mascot Animation */
.how-track-wrapper {
  position: sticky;
  top: 95px;
  z-index: 25;
  width: 100%;
  max-width: 1100px;
  height: 80px;
  margin: 32px auto 0 auto;
  pointer-events: none;
}

@media (max-width: 767px) {
  .how-track-wrapper {
    display: none;
  }
}

.how-progress-line {
  position: absolute;
  bottom: 12px;
  left: 12%;
  right: 12%;
  height: 6px;
  background: var(--surface-container-highest);
  border-radius: 4px;
  overflow: hidden;
}

.how-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
  border-radius: 4px;
  transition: width 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.how-character {
  position: absolute;
  bottom: 8px;
  left: 0px;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  max-width: 68px;
  max-height: 68px;
  transition: left 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  will-change: left, transform;
}

.character-svg {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  display: block;
  overflow: visible;
}

.character-shadow {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  filter: blur(1.5px);
}

/* Vector Limb Walking Animations */
.how-character .leg-left { transform-origin: 44px 64px; }
.how-character .leg-right { transform-origin: 58px 64px; }
.how-character .arm-left { transform-origin: 43px 44px; }
.how-character .arm-right { transform-origin: 57px 44px; }

.how-character.is-walking .leg-left {
  animation: legWalkLeft 0.65s ease-in-out;
}
.how-character.is-walking .leg-right {
  animation: legWalkRight 0.65s ease-in-out;
}
.how-character.is-walking .arm-left {
  animation: armWalkLeft 0.65s ease-in-out;
}
.how-character.is-walking .arm-right {
  animation: armWalkRight 0.65s ease-in-out;
}

@keyframes legWalkLeft {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-28deg); }
  50% { transform: rotate(20deg); }
  75% { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}

@keyframes legWalkRight {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(28deg); }
  50% { transform: rotate(-20deg); }
  75% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

@keyframes armWalkLeft {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(22deg); }
  50% { transform: rotate(-18deg); }
  75% { transform: rotate(12deg); }
  100% { transform: rotate(0deg); }
}

@keyframes armWalkRight {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-22deg); }
  50% { transform: rotate(18deg); }
  75% { transform: rotate(-12deg); }
  100% { transform: rotate(0deg); }
}

/* Walking Stride Motion */
.how-character.is-walking {
  animation: mascotWalkStride 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes mascotWalkStride {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  20% {
    transform: translateX(-50%) translateY(-6px) rotate(4deg);
  }
  40% {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }
  60% {
    transform: translateX(-50%) translateY(-6px) rotate(4deg);
  }
  80% {
    transform: translateX(-50%) translateY(-2px) rotate(-1deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: 48px;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-card {
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.how-card:hover,
.how-card.active-step {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 36px rgba(21, 165, 225, 0.12), 0 0 0 1px var(--brand-blue);
}

.how-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 36px;
  font-weight: 900;
  color: var(--brand-blue);
  margin-bottom: var(--space-md);
  line-height: 1;
  display: block;
}

.how-card .text-h3 {
  color: var(--brand-navy);
  margin-bottom: var(--space-sm);
}

.how-card .text-body-md {
  color: var(--on-surface-variant);
  margin-bottom: var(--space-md);
}

.how-checks {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.how-check .material-symbols-outlined {
  font-size: 16px;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===========================
   SOCIAL PROOF
   =========================== */
.proof-section {
  padding: 96px 0;
  background: #fff;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) {
  .proof-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Video container */
.video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--brand-navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.video-container video,
.video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.video-caption-below {
  margin-top: var(--space-md);
}

.video-caption-below .text-h3 {
  color: var(--brand-navy);
  font-style: italic;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.4;
}

.video-caption-below .text-caption {
  color: var(--brand-blue);
  font-weight: 700;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(21, 165, 225, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  padding-left: 4px;
}

.video-play-btn:hover {
  transform: scale(1.1);
}

.video-play-btn .material-symbols-outlined {
  font-size: 48px;
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(15, 50, 92, 0.9), transparent);
  color: #fff;
  z-index: 4;
}

.video-caption .text-h3 {
  margin-bottom: 4px;
}

.video-caption .text-caption {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Case cards */
.case-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-card {
  padding: 24px;
  background: var(--brand-paper);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
}

.case-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.case-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-card-top .material-symbols-outlined {
  color: var(--brand-navy);
  opacity: 0.4;
}

.case-agent {
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.case-stat {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-blue);
}

.case-desc {
  font-size: 13px;
  color: var(--on-surface-variant);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  position: relative;
  background: var(--brand-navy);
  padding: 96px 0;
  overflow: hidden;
}

.circuit-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(21, 165, 225, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 165, 225, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-content .text-h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-content .text-body-lg {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #000000;
  color: var(--on-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(41, 71, 114, 0.5);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand .logo {
  color: var(--on-primary);
  margin-bottom: 8px;
}

.footer-brand .logo-img {
  height: 52px;
  filter: brightness(0) invert(1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (min-width: 768px) {
  .footer-brand .logo-img {
    height: 62px;
  }
}

.footer-brand .text-caption {
  color: var(--on-primary-container);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.footer-link {
  font-size: 13px;
  color: var(--on-primary-container);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--secondary-fixed);
}

.footer-link-bold {
  font-weight: 700;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-hero {
  position: relative;
  padding: 120px 0 60px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(21, 165, 225, 0.15), transparent 60%),
    linear-gradient(160deg, #001d3e 0%, var(--brand-navy) 100%);
  overflow: hidden;
}

.contact-hero .circuit-bg {
  opacity: 0.05;
}

.contact-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.contact-hero-content .text-h1 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.contact-hero-content .text-body-lg {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
}

.contact-section {
  padding: 80px 0;
  background: var(--brand-paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info .text-h2 {
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.contact-info .text-body-lg {
  color: var(--on-surface-variant);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(21, 165, 225, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon .material-symbols-outlined {
  color: var(--brand-blue);
  font-size: 24px;
}

.contact-info-text .text-h3 {
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.contact-info-text .text-body-md {
  color: var(--on-surface-variant);
}

/* Contact Form */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
  .contact-form-card {
    padding: 28px 20px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-navy);
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--on-surface);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 165, 225, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--outline);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.1);
}

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

.form-error {
  font-size: 12px;
  color: var(--error);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: filter 0.2s, transform 0.15s;
}

.form-submit:hover {
  filter: brightness(1.1);
}

.form-submit:active {
  transform: scale(0.97);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.form-success.visible {
  display: flex;
}

.form-success .material-symbols-outlined {
  font-size: 64px;
  color: #2e7d32;
}

.form-success .text-h3 {
  color: var(--brand-navy);
}

.form-success .text-body-md {
  color: var(--on-surface-variant);
  max-width: 360px;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ===========================
   UTILITIES
   =========================== */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page top spacing for fixed header */
.page-content {
  padding-top: 64px;
}

@media (min-width: 768px) {
  .page-content {
    padding-top: 80px;
  }
}