/* Autonomy Today – Main layout and components */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Visible focus for keyboard users (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 0.25rem;
  transition: top 0.2s;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

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

.logo-link .logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.logo-link .logo-img + .logo-text {
  margin-left: 0.25rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 0.375rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

/* Products dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.35em;
  vertical-align: 0.15em;
  transition: transform 0.2s;
}

.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 0;
}

.dropdown a:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
  text-decoration: none;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: block;
}

.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after {
  transform: rotate(-135deg);
}

.dropdown-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.dropdown-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}

.dropdown-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s;
}

.has-dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .main-nav[aria-hidden="true"] ul {
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 0.75rem;
  }

  .has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .has-dropdown > a {
    flex: 1;
    min-width: 0;
  }

  .has-dropdown > a::after {
    display: none;
  }

  .dropdown-toggle {
    display: flex;
  }

  .main-nav .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
    margin-left: 1rem;
    border-left: 2px solid var(--border);
  }

  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    display: none;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
}

/* Theme toggle */
.theme-toggle {
  padding: 0.4rem 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Main content */
.main-content {
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

/* Buttons */
.btn + .btn {
  margin-left: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero glow button – animated RGB border */
.btn-hero-glow,
.btn-hero-glow:hover,
.btn-hero-glow::before,
.btn-hero-glow::after {
  transition: none !important;
}

.btn-hero-glow {
  position: relative;
  padding: 0.9rem 2.2rem;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  border-radius: 0.5rem;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-hero-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(0.5rem + 2px);
  padding: 2px;
  background: linear-gradient(
    90deg,
    #ff3868, #ff6b3b, #ffc53d, #30e87e, #3be0ff, #5b7cff, #b845ff, #ff3868
  );
  background-size: 200% 100%;
  animation: rgb-slide 3s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.btn-hero-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(0.5rem + 2px);
  background: linear-gradient(
    90deg,
    #ff3868, #ff6b3b, #ffc53d, #30e87e, #3be0ff, #5b7cff, #b845ff, #ff3868
  );
  background-size: 200% 100%;
  animation: rgb-slide 3s linear infinite;
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.btn-hero-glow:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-hero-glow:hover::after {
  opacity: 0.6;
}

@keyframes rgb-slide {
  to { background-position: -200% 0; }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #94a3b8;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin: 0 0 0.75rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid a {
  color: #94a3b8;
}

.footer-grid a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  text-align: center;
}

.footer-bottom a {
  color: #94a3b8;
}

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

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

.hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Video quad grid – Cadmus-style: video behind text, dark overlay, autoplay/loop */
.video-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.video-quad .quad-item {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.video-quad .quad-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.video-quad .quad-item .video-quad-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.35) 0%, rgba(10, 14, 23, 0.75) 100%);
  pointer-events: none;
}

.video-quad .quad-item .video-quad-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.video-quad .quad-item .video-quad-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.video-quad .quad-item .video-quad-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.video-quad .quad-item .video-quad-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 36ch;
}

.video-quad .quad-item:hover .video-quad-overlay,
.video-quad .quad-item:focus .video-quad-overlay {
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.25) 0%, rgba(10, 14, 23, 0.7) 100%);
}

.video-quad .quad-item:hover .video-quad-title,
.video-quad .quad-item:focus .video-quad-title {
  color: var(--accent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .video-quad {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--stat-number);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Testimonials */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card .agency {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-card .testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card-featured {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.testimonial-aside {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-aside .testimonial-photo {
  margin: 0 0 0.75rem;
}

.testimonial-aside .author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
}

.testimonial-aside .agency {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.testimonial-card-featured blockquote {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 500px) {
  .testimonial-card-featured {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-aside {
    width: 100%;
  }
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Agency logos scroll */
.agency-logos-section {
  background: var(--bg-secondary);
}

.agency-logos-scroll-wrap {
  overflow: hidden;
  margin-top: 1rem;
}

.agency-logos-scroll {
  display: flex;
  width: 100%;
}

.agency-logos-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 0;
  animation: agency-logos-scroll 40s linear infinite;
}

.agency-logos-track .agency-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.agency-logos-track .agency-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.9;
}

.agency-logos-track .agency-logo-item img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes agency-logos-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .screenshot-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.screenshot-item {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.screenshot-item a {
  flex: 1;
  display: flex;
  align-items: flex-start;
  background: #0d1117;
}

.screenshot-item figcaption {
  margin-top: auto;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}


.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.screenshot-item:hover img {
  opacity: 0.9;
}

.screenshot-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 80vh;
  border-radius: 0.5rem;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  color: #ccc;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  max-width: 800px;
}

/* Ecosystem / Grid */
.ecosystem-hero img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  display: block;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* FAQ Accordion */
.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group h2 {
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  background: var(--bg-tertiary);
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Product cards grid */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.product-card .product-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--accent);
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}

.product-card .btn {
  align-self: flex-start;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* About page – Who We Serve cards */
.serve-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.serve-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.serve-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.serve-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.serve-card li {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Support page cards */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  text-align: center;
}

.support-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.support-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

/* Contact form proper classes */
.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-field .required {
  color: var(--error);
}

.form-field .form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row .form-input {
  flex: 1;
}

.form-row-item {
  flex: 1;
}

.form-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.form-inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.form-inline-options label:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.form-inline-options input[type="radio"],
.form-inline-options input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.form-fieldset legend {
  font-weight: 500;
  margin-bottom: 0.35rem;
}

/* Contact info cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.contact-info-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

/* 404 page */
.error-404 {
  text-align: center;
  padding: 5rem 0;
}

.error-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: -1.5rem;
  user-select: none;
}

.error-404 h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.error-404 p {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Stat card subtitle (replaces inline styles) */
.stat-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer link spacing */
.footer-grid li {
  margin-bottom: 0.35rem;
}

.footer-grid li:last-child {
  margin-bottom: 0;
}
