/* =========================================
   GRC360 v3 — Main Stylesheet
   ========================================= */

/* ---- Design Tokens ---- */
:root {
  /* Brand Colors — official GRC360 palette, drawn from the logo mark */
  --brand-purple: #7A2BC2; /* primary */
  --brand-orange: #FB8F20; /* secondary */
  --brand-pink:   #EC2B79; /* accent */
  --brand-slate:  #657086; /* brand neutral (wordmark) */
  --brand-green:  #0EA144; /* success / compliant */
  --brand-amber:  #F3810D; /* secondary — deep */
  --brand-red:    #DC2626; /* danger / at-risk */
  --brand-blue:   #2B67C2; /* info */
  --brand-gray:   #737373; /* neutral */

  /* Navy scale — dark hero/section backgrounds, derived from --brand-purple */
  --navy-900: #12061D;
  --navy-800: #250D3A;
  --navy-700: #371357;
  --navy-600: #4F1C7E;
  --navy-500: #7A2BC2;

  /* Coral scale — primary CTAs/accents, derived from --brand-orange */
  --coral-600: #F3810D;
  --coral-500: #FB8F20;
  --coral-400: #FDAE55;
  --coral-300: #FEC98F;

  /* Neutral Colors */
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Light Blue (brand accent bg) */
  --blue-50:  #F1F6FC;
  --blue-100: #E1EEF9;

  /* Typography */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Spacing (8px grid) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

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

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);
  --shadow-coral: 0 4px 20px rgba(251,143,32,0.35);
  --shadow-navy: 0 4px 20px rgba(37,13,58,0.3);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 96px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul { list-style: none; }

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

input, select, textarea, button {
  font-family: var(--font-sans);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ---- Typography Utilities ---- */
.text-gradient {
  background: linear-gradient(135deg, #FDAE55 0%, #FEC98F 50%, #FB8F20 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s linear infinite;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-500);
  background: rgba(251, 143, 32, 0.08);
  border: 1px solid rgba(251, 143, 32, 0.2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.section-header h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-xl);
}

.btn--primary {
  background: var(--coral-500);
  color: var(--white);
  border-color: var(--coral-500);
  box-shadow: var(--shadow-coral);
}

.btn--primary:hover {
  background: var(--coral-600);
  border-color: var(--coral-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(251,143,32,0.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--gray-300);
}

.btn--outline-dark:hover {
  border-color: var(--navy-800);
  background: var(--gray-50);
}

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.btn--link {
  background: none;
  border: none;
  box-shadow: none;
  color: var(--coral-500);
  font-weight: 600;
  padding: 0;
  gap: var(--sp-1);
}

.btn--link:hover {
  color: var(--coral-600);
  gap: var(--sp-3);
}

/* ================================
   NAVBAR
   ================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gray-200), 0 4px 16px rgba(0,0,0,0.06);
}

.navbar {
  height: var(--nav-height);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.navbar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.navbar__logo {
  height: 72px;
  width: auto;
  transition: filter var(--transition-slow);
}

/* Logo: white when on dark hero */
.site-header:not(.is-scrolled) .navbar__logo {
  filter: brightness(0) invert(1);
}

/* Only shown inside the fullscreen mobile menu — see mobile breakpoint */
.navbar__menu-logo {
  display: none;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.site-header.is-scrolled .navbar__link {
  color: var(--gray-600);
}

.site-header.is-scrolled .navbar__link:hover,
.site-header.is-scrolled .navbar__link.active {
  color: var(--navy-800);
  background: var(--gray-100);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.site-header.is-scrolled .btn--outline {
  color: var(--navy-800);
  border-color: var(--gray-300);
}

.site-header.is-scrolled .btn--outline:hover {
  border-color: var(--navy-800);
  background: var(--gray-50);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  z-index: 1000; /* above .navbar__menu (999) so the close (X) icon stays clickable when the menu is open */
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.site-header.is-scrolled .navbar__toggle span {
  background: var(--navy-800);
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

/* Grid dot overlay */
.hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

/* Decorative animated blobs */
.hero__blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.35;
}

.hero__blob--1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--coral-500), transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite;
}

.hero__blob--2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, #7A2BC2, transparent 70%);
  animation: blobFloat2 22s ease-in-out infinite;
  opacity: 0.25;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, #EC2B79, transparent 70%);
  animation: blobFloat3 14s ease-in-out infinite;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--nav-height) + var(--sp-24)) var(--sp-24);
}

.hero__content {
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(251, 143, 32, 0.2);
  border: 1px solid rgba(251, 143, 32, 0.4);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-6);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--coral-400);
  border-radius: var(--radius-full);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__trust-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.badge-pill {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ================================
   STATS SECTION
   ================================ */
.stats-section {
  background: var(--navy-800);
  padding: var(--sp-16) 0;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
  position: relative;
}

.stat-card {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-card:last-child {
  border-right: none;
}

.stat-card__number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--coral-400);
  line-height: 1;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.stat-card__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--sp-2);
}

.stat-card__desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ================================
   PLATFORM OVERVIEW
   ================================ */
.platform-overview {
  padding: var(--sp-24) 0;
  background: var(--white);
}

.platform-overview__image {
  margin-top: var(--sp-8);
}

.platform-overview__frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--gray-200);
  background: var(--gray-50);
}

.platform-overview__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 80%, rgba(255,255,255,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.platform-overview__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================================
   CAPABILITIES
   ================================ */
.capabilities {
  padding: var(--sp-24) 0;
  background: var(--gray-50);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.capability-card {
  --card-accent: var(--brand-purple);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Cycle each capability through the full brand palette */
.capability-card:nth-child(9n+1) { --card-accent: var(--brand-purple); }
.capability-card:nth-child(9n+2) { --card-accent: var(--brand-orange); }
.capability-card:nth-child(9n+3) { --card-accent: var(--brand-pink); }
.capability-card:nth-child(9n+4) { --card-accent: var(--brand-slate); }
.capability-card:nth-child(9n+5) { --card-accent: var(--brand-blue); }
.capability-card:nth-child(9n+6) { --card-accent: var(--brand-green); }
.capability-card:nth-child(9n+7) { --card-accent: var(--brand-red); }
.capability-card:nth-child(9n+8) { --card-accent: var(--brand-amber); }
.capability-card:nth-child(9n+9) { --card-accent: var(--brand-gray); }

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-card__icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--card-accent) 12%, white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  transition: all var(--transition-base);
}

.capability-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--card-accent);
}

.capability-card:hover .capability-card__icon {
  background: color-mix(in srgb, var(--card-accent) 20%, white);
}

.capability-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.capability-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ================================
   FEATURE SHOWCASE
   ================================ */
.feature-showcase {
  padding: var(--sp-24) 0;
  background: var(--white);
}

.feature-showcase .section-header {
  margin-bottom: var(--sp-20);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--gray-100);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row__num {
  display: block;
  font-size: 5rem;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.feature-row__content h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--sp-4);
  line-height: 1.3;
}

.feature-row__content p {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.feature-row__image {
  position: relative;
}

.feature-row__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ================================
   FRAMEWORKS
   ================================ */
.frameworks {
  background: var(--navy-800);
  padding: var(--sp-24) 0;
  position: relative;
  overflow: hidden;
}

.frameworks::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}

.frameworks__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-16);
  align-items: start;
}

.frameworks__header {
  padding-top: var(--sp-4);
}

.frameworks__header .section-tag {
  color: var(--coral-400);
  background: rgba(251, 143, 32, 0.15);
  border-color: rgba(251, 143, 32, 0.3);
}

.frameworks__header h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.frameworks__header p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.frameworks__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.framework-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: default;
}

.framework-tag:hover {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: var(--white);
  transform: translateY(-1px);
}

/* ================================
   DEPLOYMENT OPTIONS
   ================================ */
.deployment {
  padding: var(--sp-24) 0;
  background: var(--blue-50);
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.deployment-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.deployment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.deployment-card--featured {
  border-color: var(--coral-500);
  border-width: 2px;
  box-shadow: var(--shadow-coral);
}

.deployment-card--featured:hover {
  box-shadow: 0 8px 32px rgba(251,143,32,0.3);
}

.deployment-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--coral-500);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.deployment-card__icon {
  width: 64px;
  height: 64px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  padding: var(--sp-3);
}

.deployment-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deployment-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--sp-3);
}

.deployment-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.deployment-card__features {
  list-style: none;
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.deployment-card__features li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.deployment-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1585B' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ================================
   PRICING CTA
   ================================ */
.pricing-cta {
  padding: var(--sp-24) 0;
  background: var(--white);
}

.pricing-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: var(--sp-16);
  border: 1px solid var(--gray-200);
}

.pricing-cta__content .section-tag {
  display: block;
  text-align: left;
  margin-bottom: var(--sp-3);
}

.pricing-cta__content h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
  margin-bottom: var(--sp-4);
}

.pricing-cta__content p {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.pricing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.pricing-cta__visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ================================
   DEMO CTA
   ================================ */
.demo-cta {
  padding: var(--sp-24) 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.demo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}

.demo-cta::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(251,143,32,0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.demo-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.demo-cta__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.demo-cta__content p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.demo-cta__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* ================================
   CONTACT FORM
   ================================ */
.contact-section {
  padding: var(--sp-24) 0;
  background: var(--white);
}

.contact-form-wrapper {
  max-width: 860px;
  margin-inline: auto;
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: var(--sp-12);
  border: 1px solid var(--gray-200);
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  transition: all var(--transition-base);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.form-control:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(37,13,58,0.08);
}

.form-control::placeholder {
  color: var(--gray-400);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-privacy {
  margin-bottom: var(--sp-6);
}

.form-privacy p {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.7;
}

.form-privacy a {
  color: var(--coral-500);
  text-decoration: underline;
}

.g-recaptcha {
  margin-bottom: var(--sp-6);
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
  background: var(--navy-900);
  padding-top: var(--sp-20);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.footer-address {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  display: flex;
  gap: var(--sp-2);
}

.footer-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}

.footer-credit {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  margin-top: var(--sp-4);
}

.footer-credit a {
  color: var(--coral-400);
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: var(--sp-5) 0;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ================================
   LOGO SIZE FIX
   ================================ */
.navbar__logo {
  height: 72px !important;
}

/* ================================
   HERO — Two-Column Grid
   ================================ */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero__content {
  max-width: none;
}

/* tsparticles canvas sits between blobs and content */
#tsparticles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__background {
  z-index: 0;
}

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

.hero__scroll-indicator {
  z-index: 2;
}

/* Dashboard visual (right side) */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__dashboard {
  position: relative;
  animation: heroFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.6));
}

.hero__dashboard img {
  width: 100%;
  border-radius: var(--radius-xl);
  display: block;
}

/* Floating stat badges over dashboard */
.hero__float-badge {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 140px;
}

.hero__float-badge--1 {
  top: -16px;
  right: -16px;
  animation: floatBadge1 4.5s ease-in-out infinite;
}

.hero__float-badge--2 {
  bottom: 24px;
  left: -24px;
  animation: floatBadge2 5.5s ease-in-out infinite;
}

.hero__float-badge__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__float-badge__icon--coral { background: rgba(251,143,32,0.12); }
.hero__float-badge__icon--navy  { background: rgba(37,13,58,0.08); }

.hero__float-badge__icon svg {
  width: 18px;
  height: 18px;
}

.hero__float-badge__text {
  display: flex;
  flex-direction: column;
}

.hero__float-badge__num {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
}

.hero__float-badge__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1.3;
}

/* ================================
   HERO — Logo Orbit Visual
   ================================ */
.hero__logo-orbit {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative spinning rings */
.hero__orbit-ring {
  position: absolute;
  border-radius: 50%;
  border-style: dashed;
  pointer-events: none;
}

.hero__orbit-ring--1 {
  width: 300px;
  height: 300px;
  border-width: 1px;
  border-color: rgba(251,143,32,0.18);
  animation: orbitRingCW 50s linear infinite;
}

.hero__orbit-ring--2 {
  width: 440px;
  height: 440px;
  border-width: 1px;
  border-color: rgba(255,255,255,0.06);
  animation: orbitRingCCW 80s linear infinite;
}

/* Logo glow */
.hero__logo-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,143,32,0.2) 0%, rgba(37,13,58,0.1) 55%, transparent 100%);
  animation: logoPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* Central logo */
.hero__logo-center {
  position: relative;
  z-index: 2;
  width: 180px;
}

.hero__logo-center img {
  width: 100%;
  display: block;
  filter: brightness(0) invert(1);
  drop-shadow: 0 0 40px rgba(251,143,32,0.3);
}

/* Orbit badges — shared */
.hero__orbit-badge {
  position: absolute;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 148px;
  z-index: 4;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__orbit-badge:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.32);
}

.hero__orbit-badge__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__orbit-badge__icon--coral { background: rgba(251,143,32,0.10); color: var(--coral-500); }
.hero__orbit-badge__icon--navy  { background: rgba(37,13,58,0.07); color: var(--navy-800); }

.hero__orbit-badge__icon svg {
  width: 18px;
  height: 18px;
}

.hero__orbit-badge__text {
  display: flex;
  flex-direction: column;
}

.hero__orbit-badge__num {
  display: block;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
}

.hero__orbit-badge__label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1.4;
  margin-top: 2px;
}

/* Individual badge positions */
.hero__orbit-badge--1 { top: 4%;   right: 2%;  animation: orbitFloat1 4.2s ease-in-out infinite; }
.hero__orbit-badge--2 { top: 42%;  right: -4%; animation: orbitFloat2 5.1s ease-in-out infinite; }
.hero__orbit-badge--3 { bottom: 6%; right: 3%;  animation: orbitFloat3 4.8s ease-in-out infinite; }
.hero__orbit-badge--4 { bottom: 8%; left: 0%;   animation: orbitFloat4 5.6s ease-in-out infinite; }
.hero__orbit-badge--5 { top: 4%;   left: 0%;   animation: orbitFloat5 3.9s ease-in-out infinite; }

/* ================================
   VALUE PROPS — "Simple, Fast, Secure"
   ================================ */
.value-props {
  padding: var(--sp-24) 0;
  background: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.value-card {
  --card-accent: var(--brand-purple);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Cycle each value prop through the brand palette */
.value-card:nth-child(4n+1) { --card-accent: var(--brand-purple); }
.value-card:nth-child(4n+2) { --card-accent: var(--brand-orange); }
.value-card:nth-child(4n+3) { --card-accent: var(--brand-green); }
.value-card:nth-child(4n+4) { --card-accent: var(--brand-blue); }

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent);
}

.value-card__bg-icon {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100px;
  height: 100px;
  opacity: 0.04;
}

.value-card__bg-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--navy-800);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.value-card__icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--card-accent) 12%, white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.value-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--card-accent);
}

.value-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.value-card__metric {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  padding-top: var(--sp-5);
}

.value-card__metric-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--card-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.value-card__metric-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 80px;
}

/* ================================
   FEATURE TABS (replaces feature-showcase)
   ================================ */
.feature-tabs {
  padding: var(--sp-24) 0;
  background: var(--gray-50);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

/* Tab navigation — horizontal pill row */
.tabs__nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
  width: 100%;
}

.tabs__nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--gray-200);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  position: relative;
}

.tab-btn:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.tab-btn:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

/* Collapse duplicate borders between adjacent pills */
.tab-btn + .tab-btn { margin-left: -2px; }

.tab-btn:hover {
  border-color: var(--coral-500);
  color: var(--coral-500);
  z-index: 1;
}

/* Progress bar that drains across the bottom of the active tab */
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--coral-500);
  transition: none;
}

.tab-btn.active::after {
  width: 100%;
  transition: width 5s linear;
}

/* Reset instantly when a new tab becomes active */
.tab-btn.tab-reset::after {
  transition: none;
  width: 0%;
}

.tab-btn.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-navy);
}

.tab-btn__num {
  font-size: var(--text-xs);
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
}

.tab-btn:not(.active) .tab-btn__num {
  background: var(--gray-100);
  color: var(--gray-500);
}

.tab-btn__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Tab panels */
.tabs__content {
  position: relative;
  min-height: 480px;
}

.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.tab-panel.active {
  display: grid;
  animation: tabFadeIn 0.4s ease forwards;
}

.tab-panel__content {
  padding: var(--sp-8);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.tab-panel__num {
  display: block;
  font-size: 5rem;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.04em;
}

.tab-panel__content h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--sp-4);
  line-height: 1.3;
}

.tab-panel__content p {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.tab-panel__image {
  position: relative;
}

.tab-panel__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.tab-panel__image:hover img {
  transform: scale(1.02);
}

/* decorative glow behind tab image */
.tab-panel__image::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle at center, rgba(251,143,32,0.15), transparent 70%);
  border-radius: var(--radius-2xl);
  z-index: 0;
  pointer-events: none;
}

.tab-panel__image img {
  position: relative;
  z-index: 1;
}

/* ================================
   FRAMEWORKS — Scrolling Marquee
   ================================ */
.frameworks {
  background: var(--navy-800);
  padding: var(--sp-24) 0 0;
  position: relative;
  overflow: hidden;
}

.frameworks::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}

.frameworks .container {
  position: relative;
  z-index: 1;
}

.frameworks__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: end;
  margin-bottom: var(--sp-16);
}

.frameworks__header-left .section-tag {
  color: var(--coral-400);
  background: rgba(251,143,32,0.15);
  border-color: rgba(251,143,32,0.3);
}

.frameworks__header-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-top: var(--sp-3);
}

.frameworks__header-right p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

/* Marquee wrapper — full-bleed */
.frameworks__marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: var(--sp-8) 0 var(--sp-12);
}

/* Fade edges */
.frameworks__marquee::before,
.frameworks__marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.frameworks__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--navy-800), transparent);
}

.frameworks__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--navy-800), transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.marquee-row--forward {
  animation: marqueeForward 35s linear infinite;
}

.marquee-row--reverse {
  animation: marqueeReverse 28s linear infinite;
}

.marquee-row:hover {
  animation-play-state: paused;
}

.framework-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-base);
  cursor: default;
}

.framework-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-400);
  flex-shrink: 0;
  opacity: 0.7;
}

.framework-pill:hover {
  background: rgba(251,143,32,0.2);
  border-color: var(--coral-400);
  color: var(--white);
  transform: translateY(-2px);
}

/* Remove old .frameworks__inner and .frameworks__tags styles */
.frameworks__inner { display: contents; }
.frameworks__tags  { display: none; }

/* ================================
   PAGE HERO — compact dark banner for inner pages
   ================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--sp-20)) 0 var(--sp-20);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  text-align: center;
}

.page-hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.page-hero__blob--1 {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--coral-500), transparent 70%);
  opacity: 0.5;
  animation: blobFloat1 18s ease-in-out infinite;
}

.page-hero__blob--2 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, var(--brand-pink), transparent 70%);
  opacity: 0.3;
  animation: blobFloat2 22s ease-in-out infinite;
}

.page-hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

.page-hero__crumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-5);
}

.page-hero__crumb a { color: rgba(255,255,255,0.6); }
.page-hero__crumb a:hover { color: var(--white); }
.page-hero__crumb span[aria-hidden] { opacity: 0.5; }
.page-hero__crumb em { color: var(--white); font-style: normal; }

.page-hero h1 {
  position: relative;
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin: 0 auto var(--sp-5);
}

.page-hero p {
  position: relative;
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero__actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

/* ================================
   PROSE — legal / long-form text pages
   ================================ */
.legal-page {
  padding: var(--sp-24) 0;
  background: var(--white);
}

.legal-page__meta {
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-16);
}

.prose {
  max-width: 820px;
  margin-inline: auto;
  color: var(--gray-700);
  line-height: 1.8;
}

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy-800);
  margin: var(--sp-12) 0 var(--sp-4);
}

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

.prose h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-800);
  margin: var(--sp-8) 0 var(--sp-3);
}

.prose p { margin-bottom: var(--sp-5); }

.prose ul, .prose ol {
  margin: 0 0 var(--sp-5) var(--sp-6);
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: var(--sp-2); }

.prose a { color: var(--coral-500); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--coral-600); }

.prose strong { color: var(--navy-800); font-weight: 600; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-6);
  font-size: var(--text-sm);
}

.prose th, .prose td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--gray-200);
}

.prose th { background: var(--gray-50); color: var(--navy-800); font-weight: 600; }

/* ================================
   FAQ ACCORDION
   ================================ */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition-base);
}

.faq-item.is-open { border-color: var(--coral-500); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-800);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-500);
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: 1.7;
  padding: 0 var(--sp-6);
}

.faq-item.is-open .faq-item__a {
  max-height: 400px;
  padding: 0 var(--sp-6) var(--sp-5);
}

/* ================================
   PRICING TABLE
   ================================ */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}

.pricing-plan {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.pricing-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-plan--featured {
  border-color: var(--coral-500);
  box-shadow: var(--shadow-coral);
  position: relative;
}

.pricing-plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral-500);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-plan__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--sp-2);
}

.pricing-plan__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--sp-6);
  min-height: 40px;
}

.pricing-plan__price {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: var(--sp-1);
}

.pricing-plan__price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-500);
}

.pricing-plan__cta { margin: var(--sp-6) 0; width: 100%; justify-content: center; }

.pricing-plan__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border-top: 1px solid var(--gray-100);
  padding-top: var(--sp-6);
  margin-top: auto;
}

.pricing-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.pricing-plan__features svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: var(--brand-green);
}

/* ================================
   LOGO GRID — partners / customers
   ================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
}

.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  filter: grayscale(1);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.logo-grid__item:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--coral-500);
  transform: translateY(-2px);
}

.logo-grid__item img { max-height: 32px; width: auto; }

/* ================================
   TESTIMONIAL CARD
   ================================ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  color: var(--navy-800);
  line-height: 1.6;
  font-weight: 500;
}

.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after { content: '\201D'; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--coral-500);
  flex-shrink: 0;
}

.testimonial-card__name { font-size: var(--text-sm); font-weight: 700; color: var(--navy-800); }
.testimonial-card__role { font-size: var(--text-xs); color: var(--gray-500); }

/* ================================
   AUTH CARD — login / signup
   ================================ */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--sp-12)) var(--sp-6) var(--sp-12);
  background: var(--blue-50);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-10);
}

.auth-card__logo { height: 40px; width: auto; margin-bottom: var(--sp-8); }

.auth-card h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--sp-2);
}

.auth-card__subtitle { color: var(--gray-500); font-size: var(--text-sm); margin-bottom: var(--sp-8); }

.auth-card .form-group { margin-bottom: var(--sp-5); }

.auth-card__submit { width: 100%; justify-content: center; margin-top: var(--sp-2); }

.auth-card__footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--sp-6);
}

.auth-card__footer a { color: var(--coral-500); font-weight: 600; }

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--gray-400);
  font-size: var(--text-xs);
  margin: var(--sp-6) 0;
}

.auth-card__divider::before,
.auth-card__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }

  /* Hero becomes single column on tablet */
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

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

  /* Value props 2-col on tablet */
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature tabs */
  .tab-panel.active {
    grid-template-columns: 1fr;
  }

  /* !important: several pages (page-products.css, page-solutions.css,
     page-pricing.css) give their own reverse-row variant an unconditional,
     higher-specificity `order` on .tab-panel__image/__content for desktop
     alternation. On tablet/mobile every row must stack image-on-top
     regardless of that, so this has to win outright rather than rely on
     specificity/source order across files we don't control from here. */
  .tab-panel__image {
    order: -1 !important;
  }

  /* Text + image content rows (about-us, customer-experience, partners) —
     stack with the image on top, same as .tab-panel above. */
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .feature-row__image {
    order: -1 !important;
  }

  /* Frameworks header */
  .frameworks__header {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .deployment-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .pricing-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .pricing-cta__visual {
    display: none;
  }

  .demo-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .demo-cta__image {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .pricing-table {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

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

  .page-hero h1 {
    font-size: var(--text-5xl);
  }
}

/* ================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Navbar mobile */
  .navbar__toggle {
    display: flex;
  }

  /* backdrop-filter creates a new containing block for position:fixed
     descendants in several mobile browsers, which was trapping the
     fullscreen .navbar__menu inside .site-header's own small box instead of
     the viewport. Cancel it whenever the mobile menu is open (main.js toggles
     this class independently of .is-scrolled). */
  .site-header.is-nav-open {
    backdrop-filter: none;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-8);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-16) var(--sp-6);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
  }

  .navbar__menu.is-open {
    transform: translateX(0);
  }

  .navbar__menu-logo {
    display: block;
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
  }

  .navbar__nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 0;
  }

  .navbar__nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }

  .navbar__nav li:last-child {
    border-bottom: none;
  }

  .navbar__link {
    display: block;
    width: 100%;
    padding: var(--sp-4) 0;
    border-radius: 0;
    text-align: center;
    font-size: var(--text-xl);
    color: var(--white);
  }

  /* The menu-open state forces .is-scrolled on the header (see main.js) so the
     top bar reads correctly behind the hamburger icon — but that class also
     drives the desktop "scrolled" grey nav-link color, which otherwise wins
     here on specificity. Pin menu links back to white explicitly. */
  .site-header.is-scrolled .navbar__menu .navbar__link {
    color: var(--white);
  }

  .site-header.is-scrolled .navbar__menu .navbar__link:hover,
  .site-header.is-scrolled .navbar__menu .navbar__link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
  }

  .navbar__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    align-items: stretch;
    gap: var(--sp-3);
  }

  .navbar__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Deal Registration: solid white pill with brand-colored text on mobile.
     Specificity (.navbar__menu .navbar__actions .btn--outline) deliberately
     beats both the plain .btn--outline rule and the desktop
     .site-header.is-scrolled .btn--outline rule, regardless of scroll state. */
  .navbar__menu .navbar__actions .btn--outline {
    background: var(--white);
    color: var(--brand-purple);
    border-color: var(--white);
  }

  .navbar__menu .navbar__actions .btn--outline:hover {
    background: var(--gray-50);
    color: var(--brand-purple);
    border-color: var(--gray-50);
  }

  /* Hero */
  .hero .container {
    padding-block: calc(var(--nav-height) + var(--sp-16)) var(--sp-16);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stat-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Capabilities */
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  /* Value props single col mobile */
  .value-grid {
    grid-template-columns: 1fr;
  }

  /* Tabs nav horizontal scroll */
  .tabs__nav {
    gap: var(--sp-2);
  }

  /* flex:1 (base rule) lets the 4 pills shrink below their label's natural
     width, wrapping "Evidence Collection" / "Risk & Reporting" onto two
     lines. Size each pill to its own content instead and let the row
     scroll horizontally — matches .tabs__nav's existing overflow-x:auto. */
  .tab-btn {
    flex: 0 0 auto;
  }

  .tab-btn__label {
    font-size: var(--text-xs);
    white-space: nowrap;
  }

  /* Stop the auto-rotating tabs from jerking the rest of the page: with
     .tab-panel using display:none/grid, the section's height came from
     whichever single panel was active, so switching panels (different text
     length + stacked image) changed the section height and shoved every
     section below it up/down. Instead, stack all panels in the same grid
     cell so the container auto-sizes to the tallest one and never changes
     height when the active panel changes — inactive panels stay in normal
     flow (just invisible/non-interactive) rather than being removed via
     display:none. */
  .tabs__content {
    display: grid;
    min-height: 0;
  }

  .tab-panel {
    grid-area: 1 / 1;
    display: grid !important;
    grid-template-columns: 1fr;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .tab-panel.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  /* Section headers */
  .section-header h2 {
    font-size: var(--text-3xl);
  }

  /* Contact form */
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: var(--sp-8);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-col--brand {
    grid-column: auto;
  }

  /* Pricing CTA */
  .pricing-cta__inner {
    padding: var(--sp-10);
  }

  .pricing-cta__actions {
    flex-direction: column;
  }

  .pricing-cta__actions .btn {
    justify-content: center;
  }

  /* Page hero */
  .page-hero {
    padding: calc(var(--nav-height) + var(--sp-12)) 0 var(--sp-12);
  }

  .page-hero h1 {
    font-size: var(--text-4xl);
  }

  .page-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .page-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pricing table / logo grid */
  .pricing-table {
    grid-template-columns: 1fr;
  }

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

  /* Auth card */
  .auth-card {
    padding: var(--sp-6);
  }
}

/* ================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ================================ */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-4);
  }

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

  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .stat-card:last-child {
    border-bottom: none !important;
  }

  .hero__trust {
    flex-direction: column;
    align-items: flex-start;
  }
}
