:root {
  --bg: #020617;
  --bg-alt: #0b1120;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: rgba(56, 189, 248, 0.35);
  --card: rgba(15, 23, 42, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.35);
}

body.theme-dark {
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg));
  color: var(--text);
}

body.theme-light {
  background: #f9fafb;
  color: #0f172a;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

body.theme-light .site-header {
  background: rgba(249, 250, 251, 0.9);
  border-bottom-color: rgba(209, 213, 219, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(27, 225, 255, 0.7), 0 0 26px rgba(87, 155, 255, 0.22);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  justify-content: center;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icons a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px;
  border-radius: 999px;
  transition: color 150ms ease-out, background 150ms ease-out;
  font-size: 1.1em;
}

.social-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
}

.social-icons a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

body.theme-light .social-icons a {
  color: #6b7280;
}

body.theme-light .social-icons a:hover {
  color: #111827;
  background: rgba(243, 244, 246, 0.9);
}

.header-spacer {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  transition: color 150ms ease-out, background 150ms ease-out;
}

.nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

body.theme-light .nav a {
  color: #6b7280;
}

body.theme-light .nav a:hover {
  color: #111827;
  background: rgba(243, 244, 246, 0.9);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  cursor: pointer;
}

/* Layout */

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 40px 0 20px;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.hero h1 span {
  background: linear-gradient(120deg, #38bdf8, #a855f7, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Buttons */

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-primary {
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.98));
  color: #e0f2fe;
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--muted);
}

body.theme-light .btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb;
}

body.theme-light .btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

/* Hero panel */

.hero-panel {
  position: relative;
  min-height: 260px;
}

.hero-panel-inner {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98));
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

body.theme-light .hero-panel-inner {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), #ffffff);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  padding: 8px 9px;
  font-size: 0.78rem;
  color: var(--muted);
}

body.theme-light .metric {
  background: #f9fafb;
  border-color: rgba(209, 213, 219, 0.9);
}

.metric-label {
  margin-bottom: 2px;
}

.metric-value {
  font-size: 0.96rem;
  color: #e5e7eb;
  font-weight: 500;
}

body.theme-light .metric-value {
  color: #111827;
}

.metric-note {
  font-size: 0.74rem;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Sections */

.section {
  margin-top: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-kicker {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28rem;
}

body.theme-dark .section-kicker a {
  color: #ffffff;
}

@media (min-width: 768px) {
  .section-kicker {
    margin-right: 24px;
  }
}

/* Grid */

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* Cards */

.card {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  padding: 14px 14px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

body.theme-light .card {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card-title {
  font-size: 1rem;
  margin: 0 0 6px;
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-list {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

.card-price {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Clients */

.client-card {
  text-align: center;
  font-size: 0.9rem;
}

.client-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

body.theme-light .client-card a {
  color: #111827;
}

.client-card-logo {
  width: 110px;
  height: 72px;
  object-fit: contain;
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
  padding: 10px 12px;
}

body.theme-light .faq-item {
  background: #ffffff;
}

.faq-q {
  font-size: 0.9rem;
  font-weight: 500;
}

.faq-a {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.contact-meta li::before {
  content: "• ";
}

.contact-form label {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 0.86rem;
  margin-top: 2px;
  margin-bottom: 10px;
}

body.theme-light .contact-form input,
body.theme-light .contact-form textarea {
  background: #f9fafb;
  color: #111827;
  border-color: rgba(209, 213, 219, 0.9);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-footnote {
  font-size: 0.78rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7dd3fc;
}

body.theme-light .eyebrow {
  color: #0369a1;
}

.page-hero {
  padding-top: 8px;
}

.page-intro {
  max-width: 52rem;
  color: var(--muted);
}

.contact-card {
  margin-top: 24px;
  display: grid;
  gap: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

body.theme-light .contact-card {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

@media (min-width: 720px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

.contact-card-copy {
  color: var(--muted);
}

.stack-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.stack-list li {
  margin-bottom: 6px;
}

.cta-band {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

body.theme-light .cta-band {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* Footer */

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 30px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

body.theme-light .site-footer {
  border-top-color: rgba(209, 213, 219, 0.9);
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent);
}

.cookie-consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 14px;
  color: #e5e7eb;
  padding: 12px 14px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.cookie-consent-banner p {
  margin: 0;
  line-height: 1.4;
  color: inherit;
  flex: 1;
}

.cookie-consent-banner a.cookie-consent-settings {
  color: #38bdf8;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cookie-consent-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.cookie-consent-hidden {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* Carousel */

.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 10px 12px;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 210px;
  height: 150px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
