:root {
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --muted-bg: #F2F2EE;
  --topbar-bg: rgba(251, 251, 249, 0.9);
  --ink: #0E0F12;
  --ink-soft: #4B4E57;
  --ink-muted: #767A86;
  --invert-bg: #0E0F12;
  --invert-ink: #FFFFFF;
  --dark: #0E0F12;
  --dark-card: #17191F;
  --border: #E5E5DF;
  --border-dark: #272A34;
  --accent: #E6391F;
  --accent-hover: #CC2E16;
  --accent-soft: rgba(230, 57, 31, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(14, 15, 18, 0.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B0C10;
  --surface: #14161D;
  --muted-bg: #1B1E27;
  --topbar-bg: rgba(11, 12, 16, 0.9);
  --ink: #F3F4F7;
  --ink-soft: #B4B8C5;
  --ink-muted: #848999;
  --invert-bg: #F3F4F7;
  --invert-ink: #0B0C10;
  --dark: #06070A;
  --dark-card: #12141B;
  --border: #262A36;
  --border-dark: #262A36;
  --accent: #FF4A2E;
  --accent-hover: #E6391F;
  --accent-soft: rgba(255, 74, 46, 0.16);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--ink-muted);
}

/* Prevent grid children from blowing out viewport width on mobile */
.hero-grid > *,
.offer-grid > *,
.contact-box > *,
.video-grid > *,
.steps-grid > *,
.about-card > *,
.trust-row > * {
  min-width: 0;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 2px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text .muted {
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

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

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted-bg);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.theme-btn:hover {
  border-color: var(--ink);
}

.theme-btn:active {
  transform: scale(0.95);
}

.theme-btn .icon-sun {
  display: none;
}

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

[data-theme="dark"] .theme-btn .icon-sun {
  display: block;
}

.lang-switch {
  display: inline-flex;
  background: var(--muted-bg);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn.active {
  background: var(--invert-bg);
  color: var(--invert-ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
  font-size: 14px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 9px 16px;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #FFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFF;
}

.btn-outline-light:hover {
  border-color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--ink-soft);
  background: var(--muted-bg);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 14px;
  margin-bottom: 22px;
  max-width: 100%;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-sub strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.trust-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Hero Phone Showcase */
.hero-showcase {
  display: flex;
  justify-content: center;
}

.phone-stage {
  width: min(330px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #0E0F12;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
  border: 6px solid #1C1E26;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.sound-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(8px);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.phone-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 15, 18, 0.74);
  backdrop-filter: blur(10px);
  color: #FFF;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-title {
  font-size: 13px;
  font-weight: 600;
}

.hero-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 14px;
}

.switch-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 9px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.switch-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.switch-chip.active {
  background: var(--invert-bg);
  border-color: var(--invert-bg);
  color: var(--invert-ink);
}

.switcher-note {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 10px;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-muted {
  background: var(--muted-bg);
}

.section-dark {
  background: var(--dark);
  color: #FFF;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.section-dark .section-kicker.accent {
  color: #FF6B52;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
}

.section-desc {
  max-width: 420px;
  color: #B4B7C2;
  font-size: 15.5px;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--invert-bg);
  border-color: var(--invert-bg);
  color: var(--invert-ink);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.video-card.hidden {
  display: none;
}

.video-wrap {
  position: relative;
  aspect-ratio: 9 / 14.5;
  background: #0E0F12;
  overflow: hidden;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: linear-gradient(to top, rgba(14, 15, 18, 0.45), rgba(14, 15, 18, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.play-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0E0F12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.play-overlay:hover .play-circle {
  transform: scale(1.08);
  background: var(--accent);
  color: #FFF;
}

.video-wrap.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  background: rgba(14, 15, 18, 0.78);
  color: #FFF;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.card-meta {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--muted-bg);
  color: var(--ink-soft);
  width: fit-content;
}

.tag-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.phone-caption .tag-accent {
  background: var(--accent);
  color: #FFF;
}

.tag-dark {
  background: var(--invert-bg);
  color: var(--invert-ink);
}

.card-meta h3 {
  font-size: 18px;
}

.card-meta p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Offers */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offer-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.offer-featured {
  border-color: rgba(230, 57, 31, 0.65);
  box-shadow: 0 24px 60px rgba(230, 57, 31, 0.14);
}

.offer-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FF7861;
}

.offer-card h3 {
  font-size: 26px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}

.price-main {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.price-sub {
  font-size: 14px;
  color: #A2A6B5;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  flex: 1;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #D7DAE3;
}

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

.check-list strong {
  color: #FFF;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* About */
.about-card {
  display: grid;
  grid-template-columns: 148px 1fr 144px;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.about-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  padding-left: 28px;
  color: var(--ink);
}

.about-logo svg {
  width: 108px;
  height: 108px;
  display: block;
}

.about-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.about-body h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.about-body p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-body strong {
  color: var(--ink);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-word;
}

.about-links a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 14px;
}

.contact-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pilot-form {
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.pilot-form h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.pilot-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 0;
}

.pilot-form input,
.pilot-form select {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pilot-form input:focus,
.pilot-form select:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form-hint {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.footer-logo {
  width: 28px;
  height: 28px;
  color: var(--ink);
  flex-shrink: 0;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .offer-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-template-columns: 148px 1fr;
  }

  .about-logo {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 22px;
  }

  .about-logo svg {
    width: 84px;
    height: 84px;
  }

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 32px));
  }

  .topbar-inner {
    height: 64px;
    gap: 8px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .theme-btn {
    width: 34px;
    height: 34px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 32px 0 52px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-ctas .btn,
  .contact-direct .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .video-grid,
  .steps-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .offer-card {
    padding: 24px 20px;
  }

  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px 20px;
  }

  .about-photo {
    margin: 0 auto;
  }

  .about-links {
    justify-content: center;
  }

  .contact-box {
    padding: 22px 18px;
    gap: 24px;
  }

  .pilot-form {
    padding: 18px 16px;
  }

  .brand-text {
    display: none;
  }
}
