/* ======================================================
   ATD Design System — Modern Blue/Tech SaaS theme
   ====================================================== */

/* --- Tokens --- */
:root {
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-secondary: #0f172a;
  --brand-accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg: #fafbff;
  --bg-alt: #f0f4ff;
  --surface: #ffffff;
  --surface-soft: #f0f4ff;
  --surface-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a5a 100%);
  --text: #0f172a;
  --text-inverse: #f8fafc;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-full: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #030712;
  --bg-alt: #0a0f1a;
  --surface: #111827;
  --surface-soft: #1e293b;
  --brand-primary: #2563eb;
  --text: #f8fafc;
  --text-inverse: #0f172a;
  --muted: #94a3b8;
  --border: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --surface-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography (sans-serif tech feel) --- */
h1, h2, h3, h4 {
  font-family: 'Roboto Condensed', 'Segoe UI', Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 12px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--brand-accent);
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--brand-accent);
  flex-shrink: 0;
}

/* --- Layout --- */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  background-image: radial-gradient(var(--border) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

.section-dark {
  background: var(--surface-hero);
  color: var(--text-inverse);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverse);
}

.section-dark .muted {
  color: #94a3b8;
}

.text-center {
  text-align: center;
}

.row {
  display: flex;
  gap: 12px;
}

.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- Topbar / Navigation --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* No top stripe — clean topbar */

.topbar .container {
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: contain;
}

.brand-text {
  font-family: 'Roboto Condensed', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
}

.nav .btn-primary {
  color: #ffffff;
}

/* --- Hero Section (centered, no-image SaaS style) --- */
.hero {
  background: var(--surface-hero);
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
}

/* Subtle dot grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient glow orb */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  padding: 100px 0 80px;
  position: relative;
  z-index: 1;
}

/* Centered hero layout */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

/* Gradient highlight on key word */
.hero-copy h1 span {
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy > p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  max-width: 800px;
  width: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

/* Hero slideshow */
.hero-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 800px;
  width: 100%;
}

.hero-slideshow img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slideshow img:first-child {
  position: relative;
}

.hero-slideshow img.slide-active {
  opacity: 1;
}

/* Page-hero slideshow variant (inner pages) */
.page-hero-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero-slideshow img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.page-hero-slideshow img:first-child {
  position: relative;
}

.page-hero-slideshow img.slide-active {
  opacity: 1;
}

.hero-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-family: 'Roboto Condensed', monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.stat-chip:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: #e2e8f0;
}

.stat-chip svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-block {
  padding: 12px;
}

.stat-number {
  font-family: 'Roboto Condensed', monospace;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.section-dark .stat-label {
  color: #94a3b8;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.15);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link .card:hover {
  transform: translateY(-4px);
}

/* --- Feature Cards (glass-morphism) --- */
.feature-card {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.2);
}

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

/* Styled links inside feature cards */
.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Roboto Condensed', sans-serif;
  transition: all var(--transition);
}

.feature-card a:hover {
  color: var(--brand-accent);
  gap: 8px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* --- Media Cards --- */
.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.media-card .media-card-body {
  padding: 24px;
}

.media-card h3, .media-card h2 {
  padding: 0;
}

.media-card p, .media-card ul {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Legacy media-card compat (for inline padding) */
.card.media-card {
  padding: 0;
}

.card.media-card > img {
  border-radius: var(--radius) var(--radius) 0 0;
}

.card.media-card > h2,
.card.media-card > h3,
.card.media-card > p,
.card.media-card > ul,
.card.media-card > .actions,
.card.media-card > a {
  padding-left: 24px;
  padding-right: 24px;
}

.card.media-card > h2:first-of-type,
.card.media-card > h3:first-of-type {
  padding-top: 20px;
}

.card.media-card > a:last-child,
.card.media-card > p:last-child,
.card.media-card > .actions:last-child {
  padding-bottom: 24px;
}

/* --- How It Works Steps (connected timeline) --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  counter-reset: step;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
  opacity: 0.3;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-accent);
  font-family: 'Roboto Condensed', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.section-dark .step-number {
  background: var(--brand-secondary);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.section-dark .step p {
  color: #94a3b8;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-stars {
  color: var(--warning);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.testimonial-author {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* --- Logo Rail --- */
.logo-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  align-items: center;
}

.logo-rail-item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition);
}

.logo-rail-item:hover {
  box-shadow: var(--shadow);
}

.logo-rail-item img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.logo-rail-item:hover img {
  opacity: 1;
}

/* --- CTA Banner (gradient border) --- */
.cta-banner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Gradient top border */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.cta-banner h2 {
  color: var(--text);
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--surface-hero);
  color: var(--text-inverse);
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

/* Dot pattern on page hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.page-hero-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
  padding: 48px;
  position: relative;
  z-index: 1;
}

.page-hero-copy h1 {
  color: #ffffff;
}

.page-hero-copy p {
  color: #cbd5e1;
}

.page-hero-copy .eyebrow {
  color: var(--brand-accent);
}

.page-hero-copy a {
  color: #cbd5e1;
}

.page-hero-copy a:hover {
  color: #ffffff;
}

.page-hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Buttons --- */
.btn {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all var(--transition);
  font-family: 'Roboto Condensed', sans-serif;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 6%, transparent);
}

.hero .btn-outline {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero .btn-outline {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.25);
}

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

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --- Focus --- */
.btn:focus-visible,
.nav a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

/* --- Forms --- */
.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

input:focus,
textarea:focus {
  border-color: var(--brand-accent);
}

/* --- Accent variants --- */
.accent-info {
  border-left: 4px solid var(--brand-accent);
}

.accent-success {
  border-left: 4px solid var(--success);
}

/* --- Lists --- */
.list {
  padding-left: 20px;
}

.list.two-col {
  columns: 2;
  column-gap: 32px;
}

.list li {
  margin-bottom: 8px;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

/* --- Service Cards (inner page) --- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.10));
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h2 {
  font-size: 1.25rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.service-card ul li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  opacity: 0.6;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--brand-secondary);
  padding: 48px 0 24px;
  color: #94a3b8;
  position: relative;
}

.footer h3 {
  color: #ffffff;
}

.footer a {
  color: #94a3b8;
}

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

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tagline {
  color: #64748b;
  font-size: 0.85rem;
}

.footer .brand-text {
  color: #ffffff;
}

.footer .brand {
  margin-bottom: 16px;
}

.footer-about {
  margin-top: 16px;
}

.footer-legal {
  font-size: 0.82rem;
  margin-top: 8px;
}

.footer-contact-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 6px;
}

.footer-cta {
  margin-top: 16px;
}

/* --- 404 --- */
.notfound-wrap {
  padding: 100px 0;
}

.notfound-card {
  text-align: center;
}

/* --- Utility spacing --- */
main > .container {
  padding: 0 0 60px;
}

.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-lg { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 640px; }
.color-muted { color: var(--muted); }
.color-primary { color: var(--brand-primary); }
.color-white { color: #ffffff; }
.color-slate { color: #94a3b8; }
.pb-0 { padding-bottom: 0 !important; }
.font-sm { font-size: 0.92rem; }

/* Section-dark heading/text overrides */
.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark .color-muted {
  color: #94a3b8;
}

/* Center eyebrow in text-center contexts */
.text-center .eyebrow {
  justify-content: center;
}

/* Select (dropdown) styling */
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition);
  cursor: pointer;
  appearance: auto;
}

select:focus {
  border-color: var(--brand-accent);
}

/* Contact page helpers */
.contact-info-grid {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.contact-info-grid p {
  margin: 0;
}

.contact-info-grid strong {
  color: #ffffff;
}

.card-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.actions-center {
  justify-content: center;
}

.stat-hero {
  font-size: 3rem;
}

/* Feature icon centered variant */
.feature-icon-centered {
  margin: 0 auto 16px;
}

/* Sidebar card stack */
.card-stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.card-stack .card {
  text-align: center;
}

.card-stack .feature-icon {
  margin: 0 auto 16px;
}

/* Form intro text */
.form-intro {
  color: var(--muted);
  margin-bottom: 20px;
}

/* CTA/section-dark eyebrow */
.cta-banner .eyebrow,
.section-dark .eyebrow {
  color: var(--brand-accent);
}

.cta-banner .eyebrow::before,
.section-dark .eyebrow::before {
  background: var(--brand-accent);
}

/* Section promo image */
.section-promo-img {
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

/* --- Responsive --- */
@media (max-width: 920px) {
  .hero .container {
    padding: 60px 0 40px;
  }

  .hero-media {
    min-height: 200px;
  }

  .hero-slideshow img {
    min-height: 200px;
  }

  .steps::before {
    display: none;
  }

  .page-hero-layout {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .page-hero img {
    height: 200px;
  }

  .page-hero-slideshow img {
    height: 200px;
  }

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

  .cta-banner {
    padding: 32px;
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cta-banner .btn {
    align-self: center;
  }

  .section {
    padding: 48px 0;
  }

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

@media (max-width: 640px) {
  .list.two-col {
    columns: 1;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ======================================================
   Lightbox Gallery
   ====================================================== */

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: auto;
}

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0.7;
  z-index: 2;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}

.lb-close {
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  line-height: 1;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  line-height: 1;
  padding: 8px 16px;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-prev:hover { transform: translateY(-50%) scale(1.15); }
.lb-next:hover { transform: translateY(-50%) scale(1.15); }

.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

/* Make logo-rail items clickable */
.logo-rail-item[data-gallery] {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-rail-item[data-gallery]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
