/* Ebisoft-inspired visual layer for AutoDeb landing and public pages. */
:root,
[data-theme="dark"] {
  --color-primary: #e7191d;
  --color-primary-light: #ff3838;
  --color-primary-dark: #9f2436;
  --color-secondary: #171d58;
  --color-secondary-light: #2b3275;
  --color-accent: #b21f35;
  --color-accent-light: #e7191d;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #4c5bff;
  --gradient-primary: linear-gradient(135deg, #e7191d 0%, #9f2436 44%, #171d58 100%);
  --gradient-hero: linear-gradient(135deg, #050507 0%, #10103a 42%, #431a3f 72%, #07070b 100%);
  --gradient-card: linear-gradient(145deg, rgba(231,25,29,0.14), rgba(23,29,88,0.18));
  --gradient-btn: linear-gradient(135deg, #e7191d 0%, #9f2436 48%, #171d58 100%);
  --gradient-btn-hover: linear-gradient(135deg, #ff3838 0%, #c2263f 48%, #273082 100%);
  --bg-primary: #050507;
  --bg-secondary: #090914;
  --bg-card: #0f1020;
  --bg-card-hover: #14152b;
  --bg-input: #0b0c18;
  --bg-code: #070817;
  --bg-overlay: rgba(5,5,7,0.88);
  --border: rgba(255,255,255,0.12);
  --border-subtle: rgba(255,255,255,0.08);
  --border-focus: #e7191d;
  --text-primary: #ffffff;
  --text-secondary: #c7cadf;
  --text-tertiary: #8589a7;
  --text-inverse: #050507;
  --shadow-glow: 0 0 42px rgba(231,25,29,0.25);
  --shadow-glow-cyan: 0 0 34px rgba(23,29,88,0.35);
  --shadow-glow-green: 0 0 28px rgba(178,31,53,0.24);
  --nav-bg: rgba(5,5,7,0.82);
  --header-height: 78px;
}

html[data-theme="light"] {
  --bg-primary: #050507;
  --bg-secondary: #090914;
  --bg-card: #0f1020;
  --bg-card-hover: #14152b;
  --bg-input: #0b0c18;
  --text-primary: #ffffff;
  --text-secondary: #c7cadf;
  --text-tertiary: #8589a7;
  --border: rgba(255,255,255,0.12);
  --border-subtle: rgba(255,255,255,0.08);
  color-scheme: dark;
}

body.landing-body {
  background:
    linear-gradient(180deg, rgba(231,25,29,0.12) 0%, rgba(5,5,7,0) 28%),
    linear-gradient(135deg, #050507 0%, #0b0b21 48%, #050507 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.hero-orb-1,
.hero-orb-2,
.hero-orb-3,
.orb {
  display: none !important;
}

.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.site-header.transparent {
  background: rgba(5,5,7,0.54);
  border-bottom-color: rgba(255,255,255,0.06);
}

.site-logo,
.footer-logo {
  gap: 0.7rem;
}

.logo-mark {
  width: 46px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-wordmark {
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(90deg, #ffffff 0%, #f33 42%, #c9cdfd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link,
.mobile-nav-link {
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(231,25,29,0.12);
}

.lang-toggle,
.theme-toggle,
.mobile-menu-btn {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.12);
}

.theme-toggle {
  display: none;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.btn {
  border-radius: 999px;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 15px 38px rgba(231,25,29,0.26);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(231,25,29,0.38);
}

.landing-body .header-login.btn.btn-primary,
.landing-body .auth-submit.btn.btn-accent {
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: linear-gradient(135deg, #171d58 0%, #28194a 58%, #3f1b4a 100%) !important;
  background-image: linear-gradient(135deg, #171d58 0%, #28194a 58%, #3f1b4a 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(5,5,7,0.24) !important;
  overflow: hidden;
  isolation: isolate;
}

.landing-body .header-login.btn.btn-primary::before,
.landing-body .auth-submit.btn.btn-accent::before,
.landing-body .header-login.btn.btn-primary:hover::before,
.landing-body .auth-submit.btn.btn-accent:hover::before {
  content: "" !important;
  display: none !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  background: none !important;
}

.landing-body .header-login.btn.btn-primary:hover,
.landing-body .header-login.btn.btn-primary:focus,
.landing-body .auth-submit.btn.btn-accent:hover,
.landing-body .auth-submit.btn.btn-accent:focus {
  color: #ffffff !important;
  background: linear-gradient(135deg, #20286f 0%, #34205c 58%, #54225c 100%) !important;
  background-image: linear-gradient(135deg, #20286f 0%, #34205c 58%, #54225c 100%) !important;
  box-shadow: 0 12px 26px rgba(5,5,7,0.30) !important;
  transform: translateY(-1px);
}

.btn-secondary,
.btn-outline-white {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  border-color: rgba(255,255,255,0.16);
}

.btn-secondary:hover,
.btn-outline-white:hover {
  color: #ffffff;
  border-color: rgba(231,25,29,0.55);
  background: rgba(231,25,29,0.12);
}

.btn-white {
  background: #ffffff;
  color: #10103a;
}

.hero {
  min-height: 94vh;
  padding-top: var(--header-height);
  background:
    linear-gradient(145deg, rgba(5,5,7,0.35), rgba(5,5,7,0.9)),
    var(--gradient-hero);
  overflow: hidden;
}

.hero-bg {
  opacity: 0.7;
}

.hero-grid,
.map-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 80%);
}

.hero-title {
  font-size: clamp(3.1rem, 7.4vw, 7.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title .line-1,
.hero-title .line-2 {
  display: block;
}

.hero-title .line-2,
.section-title,
.service-title,
.cta-title {
  background: linear-gradient(90deg, #ffffff 0%, #f33 47%, #aeb5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-eyebrow,
.section-tag,
.service-badge {
  color: #ffffff;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: inset 0 0 0 1px rgba(231,25,29,0.08);
}

.hero-eyebrow-dot,
.status-dot {
  background: #e7191d;
  box-shadow: 0 0 16px rgba(231,25,29,0.9);
}

.hero-description,
.section-subtitle,
.service-description,
.step-desc,
.mini-card-desc,
.feature-desc,
.rail-desc,
.contact-info-desc {
  color: var(--text-secondary);
}

.hero-dashboard,
.service-mockup,
.dashboard-card,
.contact-form-wrapper,
.contact-hours,
.map-wrapper,
.flow-diagram,
.faq-item,
.landing-info-card,
.feature-card,
.rail-card,
.service-mini-card,
.state-card,
.channel-card,
.charge-type,
.notif-card,
.contact-item,
.step-content {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)),
    rgba(10,10,20,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.36);
}

.hero-dashboard::before,
.dashboard-card::before,
.service-mockup::before,
.feature-card::before,
.rail-card::before,
.cta-section::before {
  background: linear-gradient(90deg, #e7191d, #9f2436, #171d58);
}

.hero-stat-card {
  background: rgba(5,5,7,0.86);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

.hero-stat-value,
.stat-value,
.dash-amount,
.rail-name,
.feature-title,
.mini-card-title,
.state-name,
.step-title,
.contact-form-title,
.contact-info-title {
  color: #ffffff;
}

.stats-strip,
.services-main,
.process-section,
.flow-section,
.states-section,
.faq-section,
.services-grid-section,
.contact-layout,
.section,
.rails-section {
  background: transparent;
}

.stat-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem 1rem;
}

.icon-box,
.rail-icon,
.mini-card-icon,
.contact-item-icon,
.state-indicator,
.channel-icon,
.notif-icon,
.charge-type-icon,
.service-feature-icon {
  background: rgba(231,25,29,0.12) !important;
  border-color: rgba(231,25,29,0.26) !important;
  color: #ff3b3f !important;
}

.icon-box svg,
.rail-icon,
.mini-card-icon svg,
.contact-item-icon svg,
.state-indicator svg,
.channel-icon svg,
.notif-icon svg,
.charge-type-icon svg,
.service-feature-icon svg {
  color: #ff3b3f !important;
}

.services-hero,
.how-hero,
.contact-hero {
  padding-top: calc(var(--header-height) + 4rem);
  background:
    linear-gradient(180deg, rgba(231,25,29,0.14), rgba(5,5,7,0)),
    linear-gradient(135deg, #050507 0%, #10103a 52%, #050507 100%);
}

.service-row {
  align-items: center;
}

.mockup-bar,
.dashboard-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.dash-row {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.dash-status-ok,
.rail-status.active,
.state-success .state-name {
  color: #61ffa3 !important;
}

.dash-status-pend,
.rail-status.dev {
  color: #ffb4b4 !important;
}

.step-number {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(231,25,29,0.3);
}

.step-connector {
  background: linear-gradient(180deg, rgba(231,25,29,0.8), rgba(255,255,255,0.08));
}

.step-tag {
  background: rgba(231,25,29,0.11);
  border-color: rgba(231,25,29,0.28);
  color: #ffb4b4;
}

.flow-node.primary,
.flow-node.secondary,
.flow-node.success,
.flow-node {
  background: rgba(255,255,255,0.045) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

.faq-trigger,
.faq-body p {
  color: var(--text-secondary);
}

.faq-question {
  color: #ffffff;
}

.form-control {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.12);
}

.form-control:focus {
  border-color: rgba(231,25,29,0.75);
  box-shadow: 0 0 0 4px rgba(231,25,29,0.16);
}

.cta-section {
  background:
    linear-gradient(135deg, rgba(231,25,29,0.22), rgba(23,29,88,0.36)),
    #07070b;
  border-block: 1px solid rgba(255,255,255,0.08);
}

.site-footer {
  background: #050507;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-tagline,
.footer-links a,
.footer-links span,
.footer-copy,
.footer-legal a {
  color: var(--text-secondary);
}

.footer-col-title {
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-inner {
    gap: 2.75rem;
    padding-top: calc(var(--header-height) + 2.5rem);
  }

  .hero-visual {
    order: 0;
    width: 100%;
    overflow: hidden;
  }

  .hero-dashboard,
  .dashboard-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.55rem, 13.2vw, 3.25rem);
    line-height: 1.03;
    overflow-wrap: normal;
  }

  .dashboard-body {
    padding: 1rem;
  }

  .dash-row {
    gap: 0.75rem;
  }

  .dash-label,
  .dash-amount {
    font-size: 0.82rem;
  }

  .dash-sublabel {
    font-size: 0.72rem;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .logo-wordmark {
    font-size: 1.1rem;
  }
}
