/* ============================================================
   AGINGO — Enterprise Execution Architecture
   Design System — translated from investor deck style guide
   ============================================================ */

/* --- Brand Fonts --- */
@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon-Semibold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 20px;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--white); }

:root {
  --blue:        #3D72F0;
  --cyan:        #00B8F5;
  --navy:        #0F1835;
  --dark:        #13243A;
  --text:        #0D0D14;
  --body:        #4A4A55;
  --muted:       #AAAAAA;
  --card-bg:     #F7F9FC;
  --white:       #FFFFFF;
  --border:      #E2E8F0;

  --font:        'Karbon', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-alt:    'Kanit', 'Segoe UI', Arial, sans-serif;
  --radius:      8px;
  --max-w:       1280px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* --- Utility --- */
.text-blue   { color: var(--blue); }
.text-cyan   { color: var(--cyan); }
.text-muted  { color: var(--body); }
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.bold        { font-weight: 700; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem);  letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem);     letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }
p  { color: var(--body); line-height: 1.75; font-size: 1.125rem; }

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Accent bar — matches investor deck's thin blue rule under titles */
.accent-bar {
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 16px;
}
.accent-bar.center { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #2960e0;
  border-color: #2960e0;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61,114,240,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--card-bg);
  color: var(--blue);
}

/* Focus states — keyboard accessibility */
.btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.btn-primary:focus-visible { outline-color: var(--white); }
.btn:disabled, .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,24,53,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61,114,240,0.2);
  height: 76px;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(61,114,240,0.2);
}
.nav-cta { margin-left: 16px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Hide CTA duplicate from list on desktop; show actual button */
.nav-links .nav-cta { display: none; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: 76px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(61,114,240,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,184,245,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,114,240,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,114,240,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--cyan);
}

.hero-title {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-title .accent { color: var(--cyan); }

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 56px;
}

.hero-stat {
  background: rgba(15,24,53,0.8);
  border: 1px solid rgba(61,114,240,0.2);
  padding: 24px;
}
.hero-stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hero-stat:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.hero-stat-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hero visual / right column */
.hero-visual {
  position: relative;
}

.arch-diagram {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(61,114,240,0.25);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(4px);
}

.arch-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 24px;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arch-layer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 4px;
}
.arch-layer.dpo { background: rgba(61,114,240,0.12); border-left: 3px solid var(--blue); }
.arch-layer.dto { background: rgba(61,114,240,0.08); border-left: 3px solid rgba(61,114,240,0.6); }
.arch-layer.dpx { background: rgba(0,184,245,0.08); border-left: 3px solid var(--cyan); }

.arch-layer-tag {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}
.arch-layer.dpx .arch-layer-tag { color: var(--cyan); }

.arch-layer-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.arch-unified {
  margin-top: 16px;
  padding: 16px;
  background: var(--navy);
  border: 1px solid rgba(0,184,245,0.3);
  border-radius: 4px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* --- Section Anatomy --- */
section { padding: 112px 0; }

.section-header {
  margin-bottom: 56px;
}
.section-header.center { text-align: center; }
.section-header.center .accent-bar { margin-left: auto; margin-right: auto; }

.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 1.2rem;
  color: var(--body);
  max-width: 640px;
  line-height: 1.7;
  font-weight: 400;
}
.section-header.center .section-sub { margin: 0 auto; }

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  object-fit: contain;
}

.card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.card h3 { margin-bottom: 12px; }
.card p  { font-size: 1.125rem; }

/* Card with left blue border (team/detail style from deck) */
.card-bordered {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  padding: 24px 24px 24px 28px;
}

/* Dark card */
.card-dark {
  background: var(--navy);
  border: 1px solid rgba(61,114,240,0.2);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-dark:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}
.card-dark { color: var(--white); }
.card-dark h3 { color: var(--white); }
.card-dark p  { color: rgba(255,255,255,0.7); font-size: 1.125rem; }
.card-dark .card-label { color: var(--cyan); }

/* Stat box — dark panel with hero number (from deck) */
.stat-box {
  background: var(--navy);
  border: 1px solid rgba(0,184,245,0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.stat-box-num {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-box-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --- Grids --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }

/* --- Platform Product Blocks --- */
.product-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.product-block:last-child { border-bottom: none; }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.feature-item-icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item-text h4 { font-size: 1.125rem; margin-bottom: 4px; }
.feature-item-text p  { font-size: 1.125rem; }

/* --- Use Cases Grid --- */
.use-case-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
  cursor: default;
}
.use-case-card:hover {
  border-top-color: var(--blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.use-case-card .uc-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}
.use-case-card h3 { margin-bottom: 10px; }
.use-case-card p  { font-size: 1.125rem; }

/* --- Section backgrounds --- */
.section-light {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

/* --- Dark section --- */
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p   { color: rgba(255,255,255,0.65); }
.section-dark .section-sub { color: rgba(255,255,255,0.65); }
.section-dark .accent-bar  { background: var(--cyan); }
.section-dark .label       { color: var(--cyan); }

/* --- Steps / Process --- */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }

.step-num {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.step-content h4 { margin-bottom: 6px; font-size: 1.125rem; }
.step-content p  { font-size: 1.125rem; }

/* --- Blue callout band (from deck) --- */
.callout-band {
  background: var(--blue);
  padding: 64px 0;
  text-align: center;
}
.callout-band h2 { color: var(--white); margin-bottom: 12px; }
.callout-band p  { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Comparison table --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-col { background: var(--white); }
.comparison-col.old { border-top: 4px solid var(--muted); }
.comparison-col.new { border-top: 4px solid var(--blue); }

.comparison-head {
  padding: 20px 24px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.comparison-col.old .comparison-head { color: var(--body); }
.comparison-col.new .comparison-head { color: var(--blue); }

.comparison-body { padding: 0 24px 24px; }
.comparison-body li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--body);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.comparison-body li::before { content: '·'; color: var(--muted); flex-shrink: 0; }
.comparison-col.new .comparison-body li::before { content: '✓'; color: var(--blue); font-weight: 700; }

/* --- Contact form --- */
.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A55' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61,114,240,0.12);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- Footer — Microsoft-style mega footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
}

/* Top CTA band inside footer */
.footer-cta {
  background: var(--navy);
  border-bottom: 1px solid rgba(61,114,240,0.2);
  padding: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-cta-text h3 { color: var(--white); margin-bottom: 6px; font-size: 1.5rem; }
.footer-cta-text p  { color: rgba(255,255,255,0.6); font-size: 1rem; margin: 0; }

/* Main link grid */
.footer-mega {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: color var(--transition);
  display: inline-block;
}
.footer-col ul a:hover { color: var(--cyan); }

/* Bottom bar */
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-logo img { height: 28px; width: auto; opacity: 0.6; }
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom-copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-mega-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .container { padding: 0 32px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .container { padding: 0 24px; }
  .grid-3, .grid-2, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-mega-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-cta { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(61,114,240,0.2);
    padding: 16px 20px 20px;
    gap: 2px;
    z-index: 99;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav.open .nav-links .nav-cta {
    display: block;
    margin-top: 8px;
  }
  .nav.open .nav-links .nav-cta a {
    display: block;
    text-align: center;
    padding: 12px 16px;
  }
  /* Hide the standalone CTA button on mobile (list item handles it) */
  .nav-cta:not(li) { display: none; }
}

@media (max-width: 480px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  .hero { min-height: auto; padding: 108px 0 64px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat-num { font-size: 1.75rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-box-num { font-size: 2.5rem; }
  .callout-band { padding: 56px 0; }
  .contact-form { padding: 28px 20px; }
  .form-grid { gap: 16px; }
}

/* --- Page header (non-home pages) --- */
.page-header {
  background: var(--navy);
  padding: 156px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(61,114,240,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header .label { color: var(--cyan); margin-bottom: 16px; }
.page-header h1 { color: var(--white); margin-bottom: 20px; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 600px; font-size: 1.25rem; font-weight: 400; line-height: 1.65; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.25s; opacity: 0; }
.fade-up-3 { animation-delay: 0.4s; opacity: 0; }
.fade-up-4 { animation-delay: 0.55s; opacity: 0; }

