:root {
  color-scheme: light;
  --bg: #f4f8ff;
  --bg-strong: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.75);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-border: rgba(18, 64, 145, 0.12);
  --text: #0d1b38;
  --text-soft: #51617f;
  --text-inverse: #f7fbff;
  --primary: #1565f0;
  --primary-strong: #0e47b7;
  --primary-soft: rgba(21, 101, 240, 0.12);
  --accent: #20c4da;
  --shadow: 0 20px 60px rgba(13, 27, 56, 0.12);
  --shadow-soft: 0 12px 30px rgba(13, 27, 56, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-strong: #0b1730;
  --bg-soft: rgba(8, 18, 34, 0.72);
  --surface: rgba(11, 23, 48, 0.8);
  --surface-strong: #0f1d37;
  --surface-border: rgba(136, 182, 255, 0.14);
  --text: #edf4ff;
  --text-soft: #a7b7d6;
  --text-inverse: #061221;
  --primary: #5c9dff;
  --primary-strong: #8ac1ff;
  --primary-soft: rgba(92, 157, 255, 0.16);
  --accent: #4de0f6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(32, 196, 218, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(21, 101, 240, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-strong), var(--bg));
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  transition: background 0.35s ease, color 0.35s ease;
}

body[dir="rtl"] {
  font-family: "Tahoma", "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .topbar {
  background: rgba(9, 18, 35, 0.7);
}

.brand img {
  width: clamp(132px, 16vw, 170px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-soft);
}

.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

body[dir="rtl"] .nav a::after {
  transform-origin: right;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn,
.menu-btn {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  font-weight: 800;
}

.lang-btn {
  min-width: 92px;
}

.theme-icon-dark {
  display: none;
}

body[data-theme="dark"] .theme-icon-light {
  display: none;
}

body[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.section {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 130px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1,
.section-heading h2,
.cta-copy h2 {
  margin: 20px 0 18px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-heading h2,
.cta-copy h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-text,
.section-heading p,
.feature-card p,
.comparison-card li,
.showcase-copy p,
.video-meta span,
.cta-copy p,
.form-note,
.trust-strip p,
.footer p {
  color: var(--text-soft);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-inverse);
  box-shadow: 0 18px 35px rgba(21, 101, 240, 0.24);
}

.btn-secondary {
  border-color: var(--surface-border);
  background: var(--surface);
}

.btn-block {
  width: 100%;
}

.hero-metrics,
.feature-grid,
.showcase-grid,
.video-grid {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.metric-card,
.feature-card,
.comparison-card,
.showcase-card,
.video-card,
.cta-card,
.trust-strip {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.hero-visual {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 10% 5% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(21, 101, 240, 0.25), transparent 60%);
  filter: blur(18px);
}

.device-frame {
  position: relative;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(219, 232, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .device-frame {
  background: linear-gradient(180deg, rgba(20, 37, 67, 0.98), rgba(12, 23, 43, 0.92));
  border-color: rgba(131, 178, 255, 0.18);
}

.device-frame img,
.showcase-card img,
video {
  border-radius: 18px;
}

.trust-strip {
  padding: 24px 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.feature-card {
  padding: 26px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-inverse);
  font-weight: 800;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.comparison-card {
  padding: 28px;
}

.comparison-card ul {
  margin: 18px 0 0;
  padding-inline-start: 22px;
}

.comparison-card li + li {
  margin-top: 14px;
}

.comparison-card-highlight {
  background:
    linear-gradient(135deg, rgba(21, 101, 240, 0.16), rgba(32, 196, 218, 0.1)),
    var(--surface);
}

.comparison-card-muted {
  background:
    linear-gradient(135deg, rgba(115, 140, 180, 0.08), rgba(115, 140, 180, 0.03)),
    var(--surface);
}

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

.showcase-card:first-child {
  grid-column: 1 / -1;
}

.showcase-card,
.video-card {
  overflow: hidden;
}

.showcase-copy,
.video-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 18px;
}

.showcase-copy span,
.video-meta span {
  color: var(--primary);
  font-weight: 800;
}

.showcase-copy h3,
.video-meta h3,
.feature-card h3,
.comparison-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.showcase-card img,
video {
  width: 100%;
  height: auto;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(32, 196, 218, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(21, 101, 240, 0.12), rgba(255, 255, 255, 0.22)),
    var(--surface);
}

.demo-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="dark"] .demo-form {
  background: rgba(7, 17, 31, 0.52);
}

.demo-form label {
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 700;
}

.demo-form input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--bg-strong);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.demo-form input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.demo-form input[aria-invalid="true"] {
  border-color: #d93025;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12);
}

.submit-btn {
  position: relative;
  gap: 10px;
}

.submit-btn[disabled] {
  cursor: wait;
  opacity: 0.82;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

.form-note {
  margin: 0;
  padding: 12px 14px 0;
  min-height: 34px;
}

.form-note[data-state="success"] {
  color: #0d8c57;
}

.form-note[data-state="error"] {
  color: #c8352e;
}

.form-note[data-state="loading"] {
  color: var(--primary);
}

.form-honeypot,
.submission-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.submission-frame {
  border: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  padding: 0 0 42px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero,
  .cta-card,
  .feature-grid,
  .showcase-grid,
  .video-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

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

@media (max-width: 860px) {
  .topbar {
    border-radius: 28px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100vw - 20px, 100%);
  }

  .topbar {
    padding: 12px;
    gap: 12px;
  }

  .brand img {
    width: 122px;
  }

  .control-btn {
    min-width: 44px;
    height: 44px;
  }

  .lang-btn {
    min-width: 82px;
    padding: 0 12px;
  }

  .section {
    padding: 56px 0;
  }

  .metric-card,
  .feature-card,
  .comparison-card,
  .cta-card,
  .trust-strip {
    padding: 22px;
  }

  .showcase-copy,
  .video-meta {
    padding: 20px 20px 14px;
  }
}
