/* ==========================================================================
   WINNERDEVS — AI BUSINESS AUTOMATION & REVENUE GROWTH AGENCY
   Core Design System & Stylesheet
   ========================================================================== */

/* --- Custom Properties / Tokens --- */
:root {
  /* Brand Palette (Foundation: #0D0650) */
  --navy: #0D0650;
  --navy-2: #09033B;
  --navy-3: #050124;
  --navy-light: #160D75;
  --navy-surface: #140E5E;
  
  /* Accents */
  --accent: #2E5BFF;
  --accent-2: #6366F1;
  --accent-light: #EEF2FF;
  --accent-hover: #1D46E6;
  --accent-glow: rgba(46, 91, 255, 0.25);
  
  /* Functional Accents */
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --cyan: #06B6D4;
  --amber: #F59E0B;
  --rose: #EF4444;

  /* Neutrals */
  --ink: #0F172A;
  --ink-secondary: #334155;
  --slate: #475569;
  --muted: #64748B;
  --muted-light: #94A3B8;
  
  /* Surfaces & Lines */
  --bg: #FFFFFF;
  --soft: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --tint: #EDF2F7;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-strong: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 5px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.07), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 18px 36px -8px rgba(13, 6, 80, 0.12), 0 6px 14px -3px rgba(15, 23, 42, 0.04);
  --shadow-navy: 0 20px 50px -12px rgba(13, 6, 80, 0.4);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--navy);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  font-weight: 600;
}

p {
  color: var(--slate);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--navy);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}

.section {
  padding-top: clamp(48px, 5.5vw, 76px);
  padding-bottom: clamp(48px, 5.5vw, 76px);
  position: relative;
}

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

.section-dark {
  background: radial-gradient(1200px 700px at 50% -10%, #1A106D 0%, var(--navy-3) 70%);
  color: #FFFFFF;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Eyebrows & Section Headers */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.section-dark .eyebrow {
  color: #818CF8;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 3.5vw, 42px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  margin-top: 10px;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.6;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(46, 91, 255, 0.2);
}

.badge-emerald {
  background: var(--emerald-soft);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--soft);
  color: var(--slate);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--navy);
  background: #FFFFFF;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(13, 6, 80, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 91, 255, 0.35);
  text-decoration: none;
}

.btn-ghost {
  background-color: #FFFFFF;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-light {
  background-color: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  background-color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn .arr {
  transition: transform var(--transition-fast);
}

.btn:hover .arr {
  transform: translateX(4px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 20px);
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(13, 6, 80, 0.22);
  flex-shrink: 0;
}

.brand-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand:hover .brand-logo {
  opacity: 0.88;
}

.site-footer .brand-logo {
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748B;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #0F172A;
  background-color: transparent;
  text-decoration: none;
}

.nav-links .chev {
  width: 13px;
  height: 13px;
  transition: transform var(--transition-fast);
  color: var(--muted);
  flex-shrink: 0;
}

.has-sub:hover .chev,
.has-sub:focus-within .chev {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Mega-Menu Dropdown (2-Column Grid matching screenshot) */
.sub {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 600px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 38px -10px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 28px;
  row-gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 120;
}

/* Invisible bridge so mouse never loses hover between nav link and dropdown */
.sub::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.is-open .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-sub.is-open .chev,
.has-sub:hover .chev,
.has-sub:focus-within .chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.sub a {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.sub a:hover {
  background-color: #F8FAFC;
  text-decoration: none;
}

.sub a .sub-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0284C7;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  line-height: 1;
  text-align: left !important;
  display: block;
}

.sub a b {
  font-family: var(--font-head, inherit);
  font-weight: 700;
  color: #0F172A;
  font-size: 0.92rem;
  line-height: 1.25;
  margin-bottom: 3px;
  text-align: left !important;
  display: block;
  transition: color var(--transition-fast);
}

.sub a:hover b {
  color: #0284C7;
}

.sub a span:not(.sub-num) {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.42;
  font-weight: 400;
  text-align: left !important;
  display: block;
}

.nav-cta {
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 28px;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--soft);
}

.mobile-menu details {
  border-bottom: 1px solid var(--soft);
}

.mobile-menu summary {
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.mobile-menu summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--muted);
}

.mobile-menu details[open] summary::after {
  content: "–";
}

.mobile-menu .m-sub {
  padding: 4px 0 12px 14px;
}

.mobile-menu .m-sub a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate);
  border: none;
  padding: 8px 0;
}

.mobile-menu .btn {
  margin-top: 18px;
  width: 100%;
}

/* Hero Section */
.hero {
  padding: clamp(44px, 5vw, 72px) 0 clamp(44px, 5vw, 72px);
  background: radial-gradient(1100px 500px at 90% -10%, rgba(46, 91, 255, 0.07), transparent 60%),
              radial-gradient(800px 400px at 0% 100%, rgba(16, 185, 129, 0.04), transparent 50%),
              #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  color: var(--slate);
  max-width: 34em;
  margin-top: 16px;
  line-height: 1.62;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* Interactive Growth Panel (System Architecture Demo) */
.panel {
  background: linear-gradient(160deg, #0D0650 0%, #150B73 50%, #060226 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 28px);
  color: #FFFFFF;
  box-shadow: var(--shadow-navy);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stepper-scroll {
  overflow-x: auto;
  padding: 24px 2px 14px;
  scrollbar-width: thin;
}

.stepper {
  position: relative;
  display: flex;
  min-width: 500px;
  justify-content: space-between;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.stepper .flowline {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--emerald) 70%, transparent);
  background-size: 200% 100%;
  animation: flowmove 4s linear infinite;
}

@keyframes flowmove {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.step-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 4px;
}

.step-node i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
}

.step-node.active i,
.step-node:hover i {
  border-color: #34D399;
  background: #34D399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.step-node b {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.step-node.active b,
.step-node:hover b {
  color: #FFFFFF;
}

.panel-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  min-height: 200px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.18);
  color: #A5B4FC;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feed-item .ic svg {
  width: 17px;
  height: 17px;
}

.feed-item p {
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  min-width: 0;
  margin: 0;
}

.feed-item p b {
  display: block;
  font-weight: 600;
  color: #FFFFFF;
}

.feed-item p span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.feed-item time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.panel-footer-note {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
}

/* Trust Bar */
.trust {
  background: var(--soft);
  border-block: 1px solid var(--line);
  padding: 18px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}

.trust-inner > span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-inner > span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.trust-inner .lead-in {
  color: var(--navy);
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.95rem;
}

.trust-inner .lead-in::before {
  display: none;
}

/* Generic Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

.card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.5vw, 28px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(46, 91, 255, 0.06);
  border-color: #CBD5E1;
}

.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #EEF2FF;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.card:hover .ic {
  transform: scale(1.05);
  background: #E0E7FF;
}

.card .ic svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--slate);
}

.problem-close {
  max-width: 820px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.problem-close em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Signature Growth Engine (From Traffic to Revenue) */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  position: relative;
  padding-top: 8px;
}

.eng-grid::before,
.eng-grid::after {
  display: none;
}

.stage {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.stage:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35);
}

.stage i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.stage:last-child i {
  border-color: #34D399;
  background: #34D399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

.stage .num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #818CF8;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.stage h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: #FFFFFF;
  font-weight: 700;
}

.stage ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.stage ul li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stage p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
  margin-top: auto;
}

.eng-foot {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eng-foot p {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Solutions Cards */
.sol-card .num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.sol-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 20px;
}

.sol-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sol-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.sol-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.sol-link:hover svg {
  transform: translateX(4px);
}

/* Foundation Card (Pillar 06 - Deliberately distinct so it doesn't dominate) */
.sol-foundation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  background: linear-gradient(135deg, var(--tint) 0%, #E8EEF8 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 38px);
}

.sol-foundation .tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.sol-foundation h3 {
  font-size: 1.38rem;
  margin-bottom: 10px;
}

.sol-foundation p {
  color: var(--slate);
  font-size: 0.96rem;
  max-width: 40em;
}

/* Process Timeline / Methodology (How We Work) */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 24px;
}

.proc-grid::before {
  display: none;
}

.proc {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.proc:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(46, 91, 255, 0.04);
  border-color: #CBD5E1;
}

.proc i {
  display: none;
}

.proc .num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #2E5BFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #EEF2FF;
  border: 1px solid rgba(46, 91, 255, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 12px;
}

.proc .num::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2E5BFF;
}

.proc h3 {
  margin: 0 0 10px 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.proc p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

.proc ul {
  margin-top: 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.proc ul li {
  font-size: 0.84rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Case Anatomy Section */
.anatomy {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(32px, 4vw, 56px);
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 22px;
}

.demo-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.anatomy h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  margin-bottom: 20px;
}

.an-block {
  margin-bottom: 20px;
}

.an-block b {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.an-block p {
  font-size: 0.95rem;
  color: var(--slate);
}

.measure-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Workflow Step List */
.wf {
  border-left: 2px solid var(--line);
  padding-left: 0;
  list-style: none;
}

.wf li {
  position: relative;
  padding: 0 0 24px 28px;
  font-size: 0.92rem;
}

.wf li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--accent);
}

.wf li:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.wf li:last-child::before {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.wf b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.wf span {
  font-size: 0.8rem;
  color: var(--muted);
}

.anatomy-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 24px clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.anatomy-foot p {
  font-size: 0.86rem;
  color: var(--slate);
  flex: 1;
  min-width: 240px;
}

.anatomy-foot p a {
  font-weight: 600;
  color: var(--navy);
}

/* Packages / Engagement Models */
.pkg {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px) 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.pkg.feat {
  border-color: var(--accent);
  box-shadow: 0 20px 48px -12px rgba(46, 91, 255, 0.22);
}

.pkg .tag {
  position: absolute;
  top: -12px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.pkg h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.pkg > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.pkg ul {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg ul li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate);
  align-items: flex-start;
}

.pkg ul svg {
  width: 17px;
  height: 17px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.pkg .btn {
  margin-top: auto;
  width: 100%;
}

.pack-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 28px;
}

/* AI Growth Audit Form Section */
.audit-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.next-steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.next-steps b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.next-steps p {
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.55;
}

.next-steps p strong {
  color: var(--ink);
}

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 34px);
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field label small {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.93rem;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.15);
}

.field .err {
  display: none;
  color: var(--rose);
  font-size: 0.8rem;
  margin-top: 5px;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--rose);
}

.field.invalid .err {
  display: block;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-check {
  position: relative;
}

.chip-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.chip-check span {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.chip-check span:hover {
  border-color: var(--accent);
  color: var(--navy);
}

.chip-check input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.chip-check input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: none;
  text-align: center;
  padding: 44px 16px;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--emerald);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--slate);
  max-width: 32em;
  margin: 0 auto;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list details {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-list details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  padding: 20px 24px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 64ch;
}

/* CTA Band */
.cta-band {
  text-align: center;
}

.cta-band .btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 44em;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--navy-3);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(60px, 8vw, 88px) 0 36px;
  font-size: 0.92rem;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(36px, 4vw, 60px);
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer .brand {
  color: #FFFFFF;
  margin-bottom: 18px;
}

.site-footer .brand .brand-icon {
  background: #FFFFFF;
  color: var(--navy);
}

.footer-desc {
  max-width: 30em;
  line-height: 1.62;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818CF8;
  margin-top: 18px;
}

.footer-grid h4 {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-grid ul li {
  margin-bottom: 11px;
}

.footer-grid ul a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-grid ul a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: inherit;
}

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

/* Breadcrumbs (for Subpages) */
.breadcrumbs {
  padding: 16px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.breadcrumbs li::after {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--slate);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* Page Header Banner (for Subpages) */
.page-hero {
  padding: clamp(40px, 4.8vw, 64px) 0;
  background: radial-gradient(1100px 400px at 85% -10%, rgba(46, 91, 255, 0.08), transparent 60%),
              #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--slate);
  max-width: 36em;
}

/* Feature Matrix & Comparison Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  background: #FFFFFF;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.matrix-table th {
  background: var(--soft);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* AI / LLM Direct Summary Box (AEO Feature - Machine-Readable Node) */
.ai-summary-box {
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 60%, #EEF2FF 100%);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  margin: 36px 0;
}

.ai-summary-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2E5BFF 0%, #6366F1 50%, #10B981 100%);
}

.ai-summary-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ai-summary-box-head h3,
.ai-summary-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.ai-summary-box-head h3 svg,
.ai-summary-box h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.ai-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4F46E5;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.ai-summary-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

.ai-summary-box dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ai-summary-box dl > div {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.ai-summary-box dl > div:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -3px rgba(99, 102, 241, 0.08);
}

.ai-summary-box dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ai-summary-box dt::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.ai-summary-box dd {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.ai-summary-box dd code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--navy);
}

/* Subtle Scroll Animations */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .eng-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1040px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid, .audit-grid, .anatomy-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sol-foundation {
    grid-template-columns: 1fr;
  }
  .proc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .eng-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
    padding-left: 0;
    border-left: none;
  }
  .stage {
    padding: 18px 16px;
  }
  .stage i {
    position: static;
    margin-bottom: 10px;
  }
  .proc-grid {
    grid-template-columns: 1fr;
    padding-top: 0;
    gap: 14px;
    border-left: none;
    padding-left: 0;
  }
  .proc {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }
  .ai-summary-box {
    padding: 18px 16px;
    margin: 20px 0;
  }
  .row-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .anatomy-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .anatomy-foot .btn {
    width: 100%;
  }
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -4px rgba(46, 91, 255, 0.45), 0 2px 8px rgba(46, 91, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.88);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.24s ease;
}

#backToTop::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--cyan));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: btt-spin 3s linear infinite;
}

@keyframes btt-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#backToTop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  z-index: 0;
}

#backToTop svg {
  position: relative;
  z-index: 1;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  box-shadow: 0 12px 32px -4px rgba(46, 91, 255, 0.6), 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-3px) scale(1.06);
}

#backToTop:hover::before {
  opacity: 1;
}

#backToTop:hover svg {
  transform: translateY(-2px);
}

#backToTop:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.1s;
}

/* Ripple ping effect on the button */
#backToTop .btt-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(46, 91, 255, 0.5);
  animation: btt-ping 2.4s ease-out infinite;
}

@keyframes btt-ping {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

/* =============================================
   ENHANCED CARD HOVER EFFECTS
   ============================================= */
.card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.5vw, 28px);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(46, 91, 255, 0.04) 0%, rgba(99, 102, 241, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.36s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(13, 6, 80, 0.13), 0 6px 16px -4px rgba(46, 91, 255, 0.1);
  border-color: rgba(46, 91, 255, 0.25);
}

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

.card:hover::after {
  transform: scaleX(1);
}

.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #EEF2FF;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.36s ease,
              box-shadow 0.36s ease,
              color 0.36s ease;
  position: relative;
  z-index: 1;
}

.card:hover .ic {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, #dde4ff, #ede9fe);
  box-shadow: 0 8px 20px -4px rgba(46, 91, 255, 0.28);
  color: var(--accent-2);
}

.card h3 {
  position: relative;
  z-index: 1;
}

.card p {
  position: relative;
  z-index: 1;
}

/* Stage cards (the numbered engine steps) enhanced hover */
.stage {
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.36s ease;
}

.stage:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: -4px 16px 32px -8px rgba(13, 6, 80, 0.15), 0 4px 12px rgba(46, 91, 255, 0.08);
}

/* Process cards enhanced hover */
.proc {
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(13, 6, 80, 0.12), 0 4px 12px rgba(46, 91, 255, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
