/* ==========================================================================
   Taxximo AI dispecing - landing page styles
   Dark futuristic theme. Mobile-first. No frameworks, no external assets.
   ========================================================================== */

:root {
  --navy: #0A0F1E;
  --navy-2: #0E1526;
  --teal: #00C8D7;
  --teal-dim: #0A8A94;
  --yellow: #FFC300;
  --ink: #EAF3F5;
  --ink-dim: #A9B7C4;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.10);
  --radius: 16px;
  --container-w: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--navy);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(0, 200, 215, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(255, 195, 0, 0.06), transparent 55%);
  background-repeat: no-repeat;
}

h1, h2, h3, p, ul, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Ambient aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.aurora-1 {
  width: 600px;
  height: 600px;
  top: -12%;
  left: -12%;
  background: radial-gradient(circle, var(--teal), transparent 70%);
  opacity: 0.08;
  animation: auroraDrift1 42s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 500px;
  height: 500px;
  top: 38%;
  right: -16%;
  background: radial-gradient(circle, var(--yellow), transparent 70%);
  opacity: 0.06;
  animation: auroraDrift2 55s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 550px;
  height: 550px;
  bottom: -16%;
  left: 22%;
  background: radial-gradient(circle, var(--teal), transparent 70%);
  opacity: 0.07;
  animation: auroraDrift3 48s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes auroraDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-50px, 30px) scale(1.1); }
}
@keyframes auroraDrift3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -50px) scale(1.2); }
}

/* ---------- Header ---------- */
.site-header {
  padding: 14px 0;
}
.logo { height: 38px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 8px 0 36px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(0, 200, 215, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.16);
}
.hero h1 .accent { color: var(--teal); text-shadow: 0 0 24px rgba(0, 200, 215, 0.55); }
.hero .sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-dim);
  max-width: 46ch;
}
.hero-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 215, 0.5);
  background: var(--glass-bg);
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.link-secondary:hover {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(0, 200, 215, 0.35);
  background: rgba(0, 200, 215, 0.08);
}
.link-secondary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Hero CTA styled as a mini-player card */
.hero-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 14px 14px;
  max-width: 420px;
  background: var(--glass-bg);
  border: 1px solid rgba(0, 200, 215, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0, 200, 215, 0.12), 0 8px 30px rgba(0, 200, 215, 0.18);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hero-player:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 200, 215, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 200, 215, 0.22), 0 12px 40px rgba(0, 200, 215, 0.32);
}
.hero-player:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.hero-player-play {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: #00232A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(0, 200, 215, 0.14), 0 0 22px rgba(0, 200, 215, 0.65);
  transition: box-shadow 0.15s ease;
}
.hero-player-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.hero-player:hover .hero-player-play {
  box-shadow: 0 0 0 6px rgba(0, 200, 215, 0.2), 0 0 28px rgba(0, 200, 215, 0.9);
}
.hero-player-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: auto;
}
.hero-player-title { font-weight: 700; font-size: 1rem; }
.hero-player-desc { font-size: 0.82rem; color: var(--ink-dim); }
.hero-player-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  flex: 0 0 auto;
}
.hero-player-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), var(--teal-dim));
  opacity: 0.55;
  animation: wave 1.2s ease-in-out infinite;
}
.hero-player-wave span:nth-child(1) { height: 35%; animation-delay: 0.00s; }
.hero-player-wave span:nth-child(2) { height: 60%; animation-delay: 0.08s; }
.hero-player-wave span:nth-child(3) { height: 90%; animation-delay: 0.16s; }
.hero-player-wave span:nth-child(4) { height: 50%; animation-delay: 0.24s; }
.hero-player-wave span:nth-child(5) { height: 75%; animation-delay: 0.32s; }
.hero-player-wave span:nth-child(6) { height: 40%; animation-delay: 0.40s; }
.hero-player-wave span:nth-child(7) { height: 65%; animation-delay: 0.48s; }
.hero-player-wave span:nth-child(8) { height: 95%; animation-delay: 0.56s; }
.hero-player-wave span:nth-child(9) { height: 45%; animation-delay: 0.64s; }
.hero-player-wave span:nth-child(10) { height: 70%; animation-delay: 0.72s; }
.hero-player-wave span:nth-child(11) { height: 55%; animation-delay: 0.80s; }
.hero-player-wave span:nth-child(12) { height: 30%; animation-delay: 0.88s; }

/* AI dispatcher hero illustration - subdued background element */
.hero-art {
  --hero-art-opacity: 0.2;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 200px;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, #000 30%, transparent 80%);
  mask-image: linear-gradient(225deg, #000 0%, #000 30%, transparent 80%);
  animation: heroArtIn 0.8s ease 0.15s forwards;
}
@keyframes heroArtIn {
  from { opacity: 0; transform: translateY(-50%) translateX(12px); }
  to { opacity: var(--hero-art-opacity); transform: translateY(-50%) translateX(0); }
}
@media (min-width: 640px) {
  .hero-art { --hero-art-opacity: 0.32; width: 380px; right: 0; }
}
@media (min-width: 1000px) {
  .hero-art { --hero-art-opacity: 0.32; width: 430px; right: -10px; }
}

/* Waveform decorative visual */
.waveform {
  margin-top: 28px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.waveform span {
  display: block;
  flex: 1 1 auto;
  max-width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), var(--teal-dim));
  box-shadow: 0 0 6px rgba(0, 200, 215, 0.5);
  animation: wave 1.4s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: #00232A;
}
.btn-glow {
  box-shadow: 0 0 0 1px rgba(0, 200, 215, 0.4), 0 8px 30px rgba(0, 200, 215, 0.35);
}
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(0, 200, 215, 0.6), 0 10px 36px rgba(0, 200, 215, 0.5); }
.btn-block { width: 100%; }

/* ---------- Sections generic ---------- */
section { padding: 56px 0; position: relative; z-index: 1; }
h2 {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 26ch;
}
section > .container > .sub {
  margin-top: 10px;
  color: var(--ink-dim);
  max-width: 50ch;
}

/* Glass card base */
.card, .player, .step, .lead-form, .faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Pain cards ---------- */
.card-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  padding: 20px;
  border-left: 3px solid var(--yellow);
}
.card h3 {
  font-size: 1.02rem;
  font-weight: 700;
}
.card p {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

/* ---------- Demos / players ---------- */
.player-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.player {
  padding: 18px;
  border-left: 3px solid var(--teal);
}
.player-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.play-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(0, 200, 215, 0.12);
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.play-btn svg { width: 20px; height: 20px; fill: currentColor; }
/* icon swap driven by .is-playing (the hidden attribute has no effect on inline SVG) */
.play-btn .icon-pause { display: none; }
.player.is-playing .play-btn .icon-play { display: none; }
.player.is-playing .play-btn .icon-pause { display: block; }
.play-btn:hover { background: rgba(0, 200, 215, 0.22); }
.player.is-playing .play-btn {
  background: var(--teal);
  color: #00232A;
  box-shadow: 0 0 0 4px rgba(0, 200, 215, 0.18);
}
.player-info h3 { font-size: 1rem; font-weight: 700; }
.player-info p { margin-top: 2px; color: var(--ink-dim); font-size: 0.88rem; }

.player-progress {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1 1 auto;
  height: 9px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 5px) bottom / 100% 100%,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 2px, transparent 2px 7px) bottom / 100% 65%,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 4px) bottom / 100% 40%,
    rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px 5px) bottom / 100% 100%,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 7px) bottom / 100% 65%,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 2px, transparent 2px 4px) bottom / 100% 40%,
    var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 200, 215, 0.6);
  transition: width 0.1s linear;
}
.time {
  flex: 0 0 auto;
  min-width: 5.5ch;
  text-align: right;
  font-size: 0.78rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demos-cta {
  margin-top: 28px;
  text-align: center;
}

/* ---------- How it works ---------- */
.steps {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.step { padding: 22px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 195, 0, 0.14);
  border: 1px solid rgba(255, 195, 0, 0.4);
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; font-weight: 700; }
.step p { margin-top: 6px; color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- Benefits ---------- */
.benefit-list {
  margin-top: 24px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.benefit-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-dim);
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(0, 200, 215, 0.7);
}
.benefit-list strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.faq-item { padding: 6px 20px; }
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  padding-bottom: 16px;
  color: var(--ink-dim);
  font-size: 0.94rem;
}

/* ---------- Contact form ---------- */
.lead-form {
  margin-top: 28px;
  padding: 26px;
  display: grid;
  gap: 16px;
}
.lead-form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; color: var(--ink-dim); }
.field input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.2);
}
.field input.invalid {
  border-color: rgba(255, 107, 107, 0.6);
}
.field input.invalid:focus {
  border-color: rgba(255, 107, 107, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}
.field-error {
  margin: 0;
  font-size: 0.82rem;
  color: #FF6B6B;
}
.field-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.microtext {
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-align: center;
}
.form-error {
  font-size: 0.88rem;
  color: #FF6B6B;
  text-align: center;
}
.form-success {
  margin-top: 28px;
  padding: 26px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 200, 215, 0.4);
  background: rgba(0, 200, 215, 0.08);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}
.logo-footer { height: 34px; opacity: 0.85; }
.footer-inner p { color: var(--ink-dim); font-size: 0.88rem; }
.footer-inner a { color: var(--teal); }
.gdpr { font-size: 0.78rem; opacity: 0.7; max-width: 50ch; }

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 20px;
  background: var(--navy-2);
  border-top: 1px solid var(--glass-border);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 640px) {
  .sticky-cta { display: none !important; }
}

/* ---------- Success state ---------- */
.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 200, 215, 0.14);
  border: 1px solid rgba(0, 200, 215, 0.4);
  color: var(--teal);
  font-weight: 800;
  margin-right: 6px;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 639px) {
  section { padding: 36px 0; }
  .hero { padding-bottom: 20px; }
  .hero-cta .btn { width: 100%; }
  .hero-player { width: 100%; max-width: none; }
  .link-secondary { width: 100%; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .player-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .hero h1 { max-width: 22ch; }
  /* 4 pain cards: keep 2x2 so the last card is never orphaned */
  .card-grid { grid-template-columns: 1fr 1fr; }
}
