:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2f;
  --panel-2: #122338;
  --line: rgba(231, 196, 111, 0.28);
  --gold: #e8c46f;
  --cyan: #13d7ff;
  --red: #ff5a4f;
  --green: #7bd88f;
  --text: #f7fbff;
  --muted: #aec0d6;
  --ink: #08121f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(19, 215, 255, 0.12), transparent 33rem),
    linear-gradient(180deg, #06101e 0%, #081325 48%, #f5f7fb 48%, #f5f7fb 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 100vw;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(5, 13, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 142px;
  height: auto;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.93rem;
}

.site-header nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 850;
}

.nav-cta,
.button.primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

main {
  max-width: 100vw;
  overflow: hidden;
}

.hero,
.section,
.motion-band {
  width: min(1220px, calc(100vw - 36px));
  margin-inline: auto;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  padding: clamp(48px, 7vw, 86px) 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.4rem, 6.8vw, 6.6rem);
  line-height: 0.92;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.lead {
  color: #ffffff;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 760;
}

.hero p:not(.eyebrow):not(.lead),
.motion-copy p,
.section-head p,
.split p,
.stacked-cards p,
.chapter-copy p,
.tablet-grid p,
.process-section p,
.pricing-section p {
  color: var(--muted);
}

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

figure {
  margin: 0;
}

.hero-visual,
.split figure,
.portal-proof,
.analytics-grid figure,
.image-chapter figure,
.tablet-grid figure,
.remote-grid figure,
.tv-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #06101e;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-visual img {
  width: 100%;
  min-height: 410px;
  object-fit: cover;
}

figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.motion-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
  padding: 34px clamp(18px, 4vw, 44px);
  margin-bottom: 70px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #0b1a2d;
}

.motion-copy h2 {
  color: #ffffff;
}

.race-animation {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #07111f, #142945);
  border: 1px solid rgba(19, 215, 255, 0.18);
}

.anim-head {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: #ffffff;
}

.anim-head span {
  color: var(--cyan);
  font-weight: 900;
}

.anim-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 1fr;
  gap: 14px;
  align-items: center;
  width: calc(100% - 40px);
  margin: 14px 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  animation: rowGlow 3.6s infinite ease-in-out;
}

.anim-row span {
  color: var(--gold);
  font-weight: 900;
}

.anim-row i {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.anim-row i::after {
  position: absolute;
  top: -5px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(19, 215, 255, 0.85);
  content: "";
  animation: lapDot 3.6s infinite ease-in-out;
}

.row-two {
  animation-delay: 0.4s;
}

.row-two i::after {
  background: var(--gold);
  animation-delay: 0.4s;
}

.row-three {
  animation-delay: 0.8s;
}

.row-three i::after {
  background: var(--red);
  animation-delay: 0.8s;
}

.anim-line {
  position: absolute;
  inset: auto 20px 18px;
  display: flex;
  justify-content: space-between;
}

.anim-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.replay-video {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(19, 215, 255, 0.18);
  border-radius: 8px;
  background: #06101e;
}

.replay-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06101e;
  object-fit: cover;
}

.replay-video figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes lapDot {
  0% { left: 0; transform: scale(1); }
  45% { left: calc(100% - 18px); transform: scale(1.18); }
  100% { left: 0; transform: scale(1); }
}

@keyframes rowGlow {
  0%, 100% { transform: translateY(0); border-color: transparent; }
  45% { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2); }
}

.section {
  width: 100%;
  margin-inline: 0;
  padding: 78px max(18px, calc((100vw - 1220px) / 2));
  background: #f5f7fb;
  color: var(--ink);
}

.section .eyebrow {
  color: #006d86;
}

.section-head {
  max-width: 880px;
  margin-bottom: 32px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  padding-inline: clamp(0px, 2vw, 20px);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  color: #273c54;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: #9a6b00;
  font-weight: 950;
}

.feature-grid,
.pricing-grid,
.steps,
.tablet-grid,
.remote-grid,
.tv-grid {
  display: grid;
  gap: 16px;
}

.feature-grid,
.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.stacked-cards article,
.chapter-copy,
.tablet-grid article,
.steps article,
.pricing-grid article,
.commercial-note {
  border: 1px solid rgba(8, 18, 31, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.feature-grid article,
.stacked-cards article,
.chapter-copy,
.tablet-grid article,
.steps article,
.pricing-grid article {
  padding: 22px;
}

.feature-grid p,
.stacked-cards p,
.tablet-grid p,
.steps p,
.pricing-grid p,
.commercial-note {
  color: #38506a;
}

.num,
.plan {
  display: inline-flex;
  margin-bottom: 18px;
  color: #006d86;
  font-weight: 950;
}

.portal-proof {
  margin-top: 28px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.analytics-section,
.tablet-section,
.tv-section,
.pricing-section {
  background: #eef3f8;
}

.stacked-cards {
  display: grid;
  gap: 14px;
}

.image-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.chapter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tablet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tablet-grid article {
  padding: 0 0 22px;
  overflow: hidden;
}

.tablet-grid h3,
.tablet-grid p {
  padding-inline: 22px;
}

.tablet-grid figure {
  margin-bottom: 20px;
  border: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.remote-grid,
.tv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-section {
  padding-top: 48px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-section {
  padding-bottom: 86px;
}

.pricing-grid article h3 {
  margin-bottom: 8px;
  font-size: 1.75rem;
  color: #0a1828;
}

.pricing-grid article h3 small {
  font-size: 0.68em;
}

.price-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-plan.featured {
  border-color: rgba(154, 107, 0, 0.45);
  box-shadow: inset 0 4px 0 var(--gold);
}

.price-note {
  margin-bottom: 4px;
  color: #526a85;
  font-weight: 850;
}

.option-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
  color: #243a53;
  font-size: 0.96rem;
}

.option-list li {
  padding: 10px 12px;
  border: 1px solid rgba(8, 18, 31, 0.1);
  border-radius: 6px;
  background: #f5f8fc;
}

.option-list strong {
  color: #9a6b00;
}

.commercial-note {
  margin-top: 18px;
  padding: 18px 20px;
}

.final-pdf {
  margin-top: 18px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 28px;
  color: #dfe9f5;
  background: #07111f;
  font-size: 0.95rem;
}

.footer a {
  color: #ffffff;
}

@media (max-width: 1040px) {
  .hero,
  .split,
  .motion-band,
  .analytics-grid,
  .image-chapter,
  .remote-grid,
  .tv-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 320px;
    max-width: calc(100% - 36px);
  }

  .site-header nav a {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .site-header .nav-cta {
    grid-column: 1 / -1;
  }

  .brand span {
    display: none;
  }

  .hero,
  .motion-band {
    width: min(calc(100% - 36px), 354px);
    margin-left: 18px;
    margin-right: auto;
  }

  .section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.06rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .final-pdf {
    width: 100%;
  }

  .hero-visual img {
    min-height: 230px;
  }

  .feature-grid,
  .pricing-grid,
  .steps,
  .tablet-grid {
    grid-template-columns: 1fr;
  }

  .anim-row {
    grid-template-columns: 1fr;
  }

  .anim-row i {
    width: 100%;
  }
}

/* i18n language switcher */
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.language-switcher a {
  min-height: 34px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #dfe9f5;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.language-switcher a.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .site-header nav,
html[dir="rtl"] .language-switcher,
html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .language-switcher {
    width: 320px;
    max-width: calc(100% - 36px);
  }

  .language-switcher a {
    flex: 1 1 42px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body {
    background: #ffffff !important;
    color: #0a1828 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header {
    display: none;
  }

  .language-switcher {
    display: none;
  }

  .hero,
  .section,
  .motion-band {
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    break-inside: auto;
  }

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

  .hero-visual img {
    min-height: 0;
  }

  .motion-band,
  .analytics-grid,
  .image-chapter,
  .remote-grid,
  .tv-grid,
  .split {
    grid-template-columns: 1fr !important;
  }

  .feature-grid,
  .pricing-grid,
  .steps,
  .tablet-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .button,
  .final-pdf {
    display: none;
  }

  h1,
  h2,
  h3,
  .lead,
  .hero p:not(.eyebrow):not(.lead),
  .motion-copy p,
  .section-head p,
  .split p,
  .stacked-cards p,
  .chapter-copy p,
  .tablet-grid p,
  .process-section p,
  .pricing-section p,
  .feature-grid p,
  .commercial-note {
    color: #0a1828 !important;
  }

  .section,
  .motion-band,
  .hero-visual,
  .portal-proof,
  .analytics-grid figure,
  .image-chapter figure,
  .tablet-grid article,
  .remote-grid figure,
  .tv-grid figure,
  .price-plan {
    break-inside: avoid;
  }
}
