/* ============================================================
   MERIDEON AGENT SECURITY PLATFORM — Website Design System
   merideon.ai
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand colors */
  --navy:           #1D2044;
  --accent:         #4A7BBF;
  --accent-hover:   #3a6aae;
  --accent-light:   #eff4ff;
  --accent-border:  #93c5fd;

  /* Surfaces */
  --canvas:         #ffffff;
  --surface:        #f8fafc;
  --surface-2:      #f1f5f9;

  /* Text */
  --text-primary:   #1e293b;
  --text-secondary: #64748b;
  --text-muted:     #94a3b8;
  --text-on-dark:   #ffffff;

  /* Borders */
  --border:         #e5e7eb;
  --border-strong:  #cbd5e1;

  /* Status */
  --success:        #22c55e;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(29,32,68,0.08);
  --shadow-lg:    0 12px 48px rgba(29,32,68,0.12);
  --shadow-hero:  0 24px 80px rgba(29,32,68,0.16);

  /* Spacing */
  --space-1:  4px;   --space-2:  8px;   --space-3: 12px;
  --space-4: 16px;   --space-5: 20px;   --space-6: 24px;
  --space-8: 32px;   --space-10: 40px;  --space-12: 48px;
  --space-16: 64px;  --space-20: 80px;  --space-24: 96px;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 64px;
  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--canvas);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
.t-display {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.t-h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.t-h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.t-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.t-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.t-body { font-size: 1rem; line-height: 1.7; color: var(--text-primary); }
.t-small { font-size: 0.875rem; color: var(--text-secondary); }
.t-caption { font-size: 0.8125rem; color: var(--text-muted); }
.t-mono { font-family: 'JetBrains Mono', monospace; }

.t-navy    { color: var(--navy); }
.t-accent  { color: var(--accent); }
.t-muted   { color: var(--text-muted); }
.t-white   { color: var(--text-on-dark); }

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
}

.section { padding: var(--space-20) 0; }
.section--sm { padding: var(--space-12) 0; }
.section--lg { padding: calc(var(--space-24) * 1.25) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 56rem; }
.max-w-4xl { max-width: 64rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(74,123,191,0.25);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,123,191,0.35);
}

.btn--secondary {
  background: var(--canvas);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid transparent;
  padding: 10px 16px;
}
.btn--ghost:hover { background: var(--accent-light); }

.btn--dark {
  background: var(--canvas);
  color: var(--navy);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--dark:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--sm { padding: 7px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }

.btn-group { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--surface {
  background: var(--surface);
  border-color: var(--border);
}
.card--surface:hover { background: var(--canvas); }

.card--accent-left {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-4);
  transition: gap var(--t-fast);
}
.card__link:hover { gap: 8px; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--t-normal), box-shadow var(--t-normal);
}

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

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 30px;
  height: 30px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__logo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.nav__logo-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.1;
}

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

.nav__link {
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav__link:hover { color: var(--navy); background: var(--surface); }
.nav__link.active { color: var(--accent); font-weight: 600; }

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.nav__dropdown-toggle:hover { color: var(--navy); background: var(--surface); }
.nav__dropdown-toggle svg { transition: transform var(--t-fast); }
.nav__dropdown:hover .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.nav__dropdown-item:hover { background: var(--surface); }

.nav__dropdown-item-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.nav__dropdown-item-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.nav__dropdown-item-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--canvas);
  padding: var(--space-6);
  overflow-y: auto;
  z-index: 99;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: block; }

.nav__mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.nav__mobile-section {
  padding: 14px 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__mobile-sub {
  display: block;
  padding: 10px var(--space-4);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--surface);
}

.nav__mobile-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__actions .btn:not(.btn--primary) { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: color var(--t-fast);
}
.footer__link:hover { color: #ffffff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast);
}
.footer__bottom-link:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--blue  { background: var(--accent-light); color: var(--accent); }
.badge--navy  { background: rgba(29,32,68,0.08); color: var(--navy); }
.badge--green { background: #dcfce7; color: #166534; }
.badge--amber { background: #fef3c7; color: #92400e; }

/* ── Feature Pill Row ─────────────────────────────────────── */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

/* ── Browser Frame Mockup ─────────────────────────────────── */
.browser-frame {
  position: relative;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center center;
  filter: drop-shadow(0 32px 80px rgba(29,32,68,0.20));
  transition: transform var(--t-slow), filter var(--t-slow);
}

.browser-frame:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-4px);
  filter: drop-shadow(0 48px 100px rgba(29,32,68,0.25));
}

.browser-chrome {
  background: #f1f5f9;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-bottom: none;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }

.browser-bar {
  flex: 1;
  background: var(--canvas);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-content {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: var(--canvas);
}

/* ── Step Items ───────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(to right, var(--accent-light), var(--accent-light));
  border: 1px dashed var(--accent-border);
  background: none;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Stat / Feature Card Grid ─────────────────────────────── */
.stat-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.stat-card__value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  position: relative;
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.pricing-feature svg { flex-shrink: 0; margin-top: 2px; }
.pricing-feature--disabled { color: var(--text-muted); }
.pricing-feature--disabled svg { opacity: 0.4; }

/* ── Accordion / FAQ ──────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }

.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item:last-child { border-bottom: none; }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  cursor: pointer;
  background: var(--canvas);
  transition: background var(--t-fast);
}

.accordion__trigger:hover { background: var(--surface); }

.accordion__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--t-fast);
}

.accordion__item.open .accordion__icon { transform: rotate(45deg); }

.accordion__body {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  background: var(--canvas);
}
.accordion__item.open .accordion__body { display: block; }

.accordion__answer {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--canvas);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,123,191,0.15);
}

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

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

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}

/* ── Marquee / Trust Bar ──────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  overflow: hidden;
}

.trust-bar__track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.trust-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.trust-bar__sep {
  color: var(--border-strong);
  font-weight: 300;
  font-size: 1.2rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-bar__track { animation: none; }
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.cta-banner__sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

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

.pt-nav { padding-top: var(--nav-h); }

/* ── Responsive Grid Adjustments ─────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .browser-frame { transform: none; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
  .section--lg { padding: var(--space-16) 0; }
}

/* ── Page-specific hero padding ───────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--space-20));
  padding-bottom: var(--space-20);
}

/* ── Appliance color accents ──────────────────────────────── */
.appliance--so    { --app-color: #4A7BBF; --app-bg: #eff4ff; }
.appliance--ipam  { --app-color: #059669; --app-bg: #d1fae5; }
.appliance--router { --app-color: #7c3aed; --app-bg: #ede9fe; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes arcSweep {
  0%   { stroke-dashoffset: 80;  opacity: 0; }
  10%  { opacity: 1; }
  50%  { stroke-dashoffset: 0;   opacity: 1; }
  80%  { stroke-dashoffset: -80; opacity: 0.3; }
  100% { stroke-dashoffset: -80; opacity: 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ── Phase 4 Polish ───────────────────────────────────────── */

/* Smooth scroll already set via HTML. Focus-visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--color-accent, #4A7BBF);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Selection color */
::selection {
  background: rgba(74, 123, 191, 0.2);
  color: var(--navy, #1D2044);
}

/* Print styles */
@media print {
  .nav, footer, .cta-banner { display: none; }
  body { font-size: 12pt; color: #000; }
  a { text-decoration: underline; color: #000; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-fade-in-up { opacity: 1; transform: none; }
}
