/* ==========================================================================
   ACU (آکو) — Landing Page Styles
   ========================================================================== */

:root {
  --font-en: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-fa: "Estedad", var(--font-en);

  /* Dark Theme Palette */
  --bg: #080a0c;
  --bg-gradient: none;

  --surface: #0e1115;
  --surface-soft: #12161b;
  --surface-hover: #181d24;
  --surface-strong: #1f252e;
  --glass: rgba(8, 10, 12, 0.72);
  --glass-border: rgba(255, 255, 255, 0.05);

  --ink: #e2e6eb;
  --ink-soft: #9ba3af;
  --ink-muted: #646d79;

  --brand: #2b9d8f;
  --brand-light: #52b8ac;
  --brand-dark: #197065;
  --brand-deep: #0a302a;
  --brand-soft: rgba(43, 157, 143, 0.12);
  --brand-glow: rgba(43, 157, 143, 0.25);

  --warm: #e09f53;
  --warm-soft: rgba(224, 159, 83, 0.12);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.7);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --header-h: 72px;
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
.light-theme, html[data-theme="light"] {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f2f5;
  --surface-hover: #e6e9ee;
  --surface-strong: #dbe0e6;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);

  --ink: #111418;
  --ink-soft: #4a5462;
  --ink-muted: #788596;

  --brand: #26877b;
  --brand-light: #2b9d8f;
  --brand-dark: #16574f;
  --brand-deep: #0a302a;
  --brand-soft: rgba(38, 135, 123, 0.08);
  --brand-glow: rgba(38, 135, 123, 0.15);

  --warm: #d97706;
  --warm-soft: rgba(217, 119, 6, 0.1);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-fa);
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  font-variant-numeric: tabular-nums;
}

body.font-en { font-family: var(--font-en); }
body.font-fa { letter-spacing: -0.018em; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; outline: none; }
button { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--brand); color: #fff; }

/* Utilities & Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.text-center { text-align: center; }
.mt-medium { margin-top: 24px; }
.mt-large { margin-top: 48px; }

.section {
  padding-block: clamp(72px, 9vw, 128px);
  position: relative;
}

.alt-bg {
  background: var(--surface-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-subtitle {
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: var(--ink-soft);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.75;
}

.section-header {
  margin-bottom: clamp(44px, 6vw, 72px);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  inset-inline-start: 12px;
  padding: 8px 16px;
  background: var(--brand);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Header — transparent over hero, frosted once scrolled
   -------------------------------------------------------------------------- */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
html[data-theme="dark"] #main-header.scrolled,
.dark-theme #main-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.header-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.25s ease;
}
#main-header.scrolled .header-container { height: 60px; }

/* Header sits on the dark video before scroll → keep it legible */
#main-header:not(.scrolled) .brand-name,
#main-header:not(.scrolled) .nav-links a { color: #eef5f2; }
#main-header:not(.scrolled) .nav-links a:hover { color: #fff; }
#main-header:not(.scrolled) .icon-btn,
#main-header:not(.scrolled) .lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #eef5f2;
  backdrop-filter: blur(8px);
}
#main-header:not(.scrolled) .mobile-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
#main-header:not(.scrolled) .mobile-menu-btn span { background: #eef5f2; }

.logo-container { display: flex; align-items: center; gap: 10px; }
.logo { width: 32px; height: 32px; border-radius: 8px; }

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.nav-links { display: flex; align-items: center; gap: 22px; }

.nav-links a {
  position: relative;
  padding-block: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brand-light); }

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.nav-links a.active { color: var(--ink); }
#main-header:not(.scrolled) .nav-links a.active { color: #fff; }
.nav-links a.active::after { transform: scaleX(1); }

.header-end { display: flex; align-items: center; gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn, .lang-btn, .lang-btn-mob {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.icon-btn:hover, .lang-btn:hover { background: var(--surface-hover); color: var(--ink); border-color: var(--line-strong); }

.theme-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.theme-sun { display: none; }
.theme-moon { display: block; }
.dark-theme .theme-sun, html[data-theme="dark"] .theme-sun { display: block; }
.dark-theme .theme-moon, html[data-theme="dark"] .theme-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  font-weight: 700;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-hero { padding: 16px 32px; font-size: 1.02rem; border-radius: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 60%, var(--brand-dark) 130%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--brand-light); }

/* Glass button — used over the hero video */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.mobile-menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s ease; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  inset-inline: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.mobile-controls-row { display: flex; gap: 12px; }

/* --------------------------------------------------------------------------
   HERO — full-bleed cinematic video
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  margin-top: calc(var(--header-h) * -1); /* slide under the transparent header */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #f4f9f6;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* Readability: brand-tinted cinematic grade */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 20, 16, 0.55) 0%, rgba(8, 20, 16, 0.18) 34%, rgba(8, 20, 16, 0.3) 68%, rgba(8, 20, 16, 0.72) 100%),
    linear-gradient(100deg, rgba(7, 26, 20, 0.62) 0%, rgba(7, 26, 20, 0.22) 52%, rgba(7, 26, 20, 0) 78%);
}
[dir="ltr"] .hero-overlay {
  background:
    linear-gradient(to bottom, rgba(8, 20, 16, 0.55) 0%, rgba(8, 20, 16, 0.18) 34%, rgba(8, 20, 16, 0.3) 68%, rgba(8, 20, 16, 0.72) 100%),
    linear-gradient(260deg, rgba(7, 26, 20, 0.62) 0%, rgba(7, 26, 20, 0.22) 52%, rgba(7, 26, 20, 0) 78%);
}

/* Melt hero bottom into the page background for a seamless handoff */
.hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(40px, 7vh, 96px));
  padding-bottom: clamp(96px, 14vh, 168px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-clinical-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: #b5f3d8;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid rgba(181, 243, 216, 0.28);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  background: rgba(7, 29, 22, 0.3);
  backdrop-filter: blur(10px);
}

.badge-dot {
  display: none; /* Hide the generic AI status dot */
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-title .text-accent {
  display: block;
  color: #a7f3d0;
  margin-top: 8px;
}
.hero-title .text-accent::after {
  background: rgba(52, 211, 153, 0.24);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(240, 248, 244, 0.88);
  line-height: 2;
  margin-bottom: 36px;
  max-width: 560px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-cta-micro {
  font-size: 0.82rem;
  color: rgba(240, 248, 244, 0.62);
}

.hero-product-stage {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  margin-inline: auto;
  min-height: 0;
  pointer-events: none;
}

.hero-device-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  width: 100%;
  padding: 26px 18px 10px;
}

.hero-device-single {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 510px;
  padding: 24px;
}

.hero-device-single .hero-phone-main {
  width: clamp(210px, 32vw, 274px);
}

.hero-device-orbit {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 190px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 23, 18, 0.54);
  color: rgba(241, 250, 246, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  font-size: 0.76rem;
  font-weight: 700;
}
.hero-device-orbit svg { width: 18px; height: 18px; color: #8ff0c4; flex: 0 0 auto; }
.hero-device-orbit-top { top: 11%; inset-inline-start: 0; }
.hero-device-orbit-bottom { bottom: 14%; inset-inline-end: 0; }

.hero-phone {
  position: relative;
  width: clamp(120px, 100%, 176px);
  aspect-ratio: 430 / 932;
  margin: 0;
  justify-self: center;
  border-radius: 12.8% / 5.9%;
  padding: 3.5%;
  background: #010101;
  border: 1px solid #1b1721;
  box-shadow:
    inset 0 0 2px 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 3px #5c5956,
    0 34px 80px rgba(0, 0, 0, 0.42),
    0 10px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.hero-phone-hardware {
  position: absolute;
  top: 3.5%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.hero-phone-island {
  width: 28%;
  aspect-ratio: 120 / 35;
  border-radius: 999px;
  background: #010101;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5%;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.15);
}

.hero-phone-island::after {
  content: "";
  height: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6074bf 0, transparent 40%),
              radial-gradient(circle at 80% 80%, #513785 0, #24555e 20%, transparent 50%),
              #010101;
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.hero-phone-screen {
  flex: 1;
  width: 100%;
  margin: 0;
  border-radius: 10% / 4.43%;
  overflow: hidden;
  background: #06100d;
}

.hero-phone-main {
  width: clamp(174px, 100%, 218px);
  z-index: 4;
}

.hero-phone-left {
  width: clamp(108px, 100%, 148px);
  margin-top: 44px;
  z-index: 2;
}

.hero-phone-right {
  width: clamp(108px, 100%, 148px);
  margin-top: 64px;
  z-index: 2;
}

.hero-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 110px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  display: none; /* shown on wide screens only, replaces trust-bar collision */
}
[dir="ltr"] .hero-scroll-hint { transform: translateX(-50%); }
.scroll-hint-line {
  position: absolute;
  top: 8px;
  inset-inline-start: 50%;
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(50%);
  animation: scroll-hint 2s ease-in-out infinite;
}
[dir="ltr"] .scroll-hint-line { transform: translateX(-50%); }
@keyframes scroll-hint {
  0% { opacity: 0; translate: 0 0; }
  35% { opacity: 1; }
  100% { opacity: 0; translate: 0 12px; }
}

/* Trust strip — glass, floating on hero's lower edge */
.hero-trust-bar {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 0;
  padding-block: 20px;
  background: rgba(9, 19, 16, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px 20px;
}

.trust-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(240, 248, 244, 0.86);
  text-align: center;
  min-width: 0;
}
.trust-pill-item svg { width: 18px; height: 18px; color: #6ee7b7; flex-shrink: 0; }
.trust-pill-item span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

/* Narrative */
.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.narrative-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
}
.narrative-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-glow);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 23px; height: 23px; }

.narrative-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.narrative-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* Product Screens Showcase — Compact, Clean & Balanced */
.product-screens-showcase {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 2.5vw, 24px);
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.product-screen-card {
  margin: 0;
  flex: 0 1 210px;
  max-width: 210px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-screen-card-primary {
  flex: 0 1 225px;
  max-width: 225px;
  transform: translateY(-14px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  border-color: rgba(45, 168, 132, 0.35);
  z-index: 2;
}

.product-screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.product-screen-card:hover {
  transform: translateY(-6px);
}

.product-screen-card-primary:hover {
  transform: translateY(-20px);
}

@media (max-width: 768px) {
  .product-screens-showcase {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    max-width: 100%;
    gap: 10px;
    padding: 16px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .product-screen-card {
    flex: 0 1 115px;
    max-width: 120px;
    min-width: 90px;
    border-radius: 16px;
    scroll-snap-align: center;
  }
  .product-screen-card img {
    border-radius: 14px;
  }
  .product-screen-card-primary {
    flex: 0 1 135px;
    max-width: 140px;
    min-width: 105px;
    transform: translateY(-10px);
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .product-screens-showcase {
    gap: 6px;
    padding: 12px 4px;
  }
  .product-screen-card {
    flex: 0 1 100px;
    max-width: 105px;
    min-width: 82px;
    border-radius: 14px;
  }
  .product-screen-card img {
    border-radius: 12px;
  }
  .product-screen-card-primary {
    flex: 0 1 118px;
    max-width: 122px;
    min-width: 95px;
    transform: translateY(-8px);
  }
}

/* Bright Cinematic Motion Video Banner Section */
.lifestyle-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lifestyle-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lifestyle-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: brightness(0.96) contrast(1.05);
}

.lifestyle-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(13, 21, 18, 0.3) 30%, rgba(13, 21, 18, 0.3) 70%, var(--bg) 100%);
}

.lifestyle-container {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.lifestyle-glass-card {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 5vw, 48px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.lifestyle-title {
  font-size: clamp(1.35rem, 2.5vw, 2.0rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.lifestyle-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* How It Works — mountain-sea horizon band */
.horizon-bg { overflow: hidden; }

.horizon-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.horizon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.horizon-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 78%, var(--bg) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 34%, transparent), color-mix(in srgb, var(--bg) 34%, transparent));
}

.horizon-bg > .container { position: relative; z-index: 1; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-glow);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-light), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-glow);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; }

.feature-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Mixer */
.mixer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.mixer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}
.status-indicator.active {
  background: var(--brand-light);
  box-shadow: 0 0 10px var(--brand-light);
}

.icon-play { display: block; }
.icon-pause { display: none; }
.playing .icon-play { display: none; }
.playing .icon-pause { display: block; }

.visualizer-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 7px;
  margin-bottom: 24px;
}

.visualizer-bar {
  flex: 1;
  background: linear-gradient(to top, var(--brand-dark), var(--brand-light));
  border-radius: 2px;
  height: 4px;
  opacity: 0.3;
  transition: height 0.1s ease;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.channel-row {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.channel-title { font-size: 0.93rem; font-weight: 700; color: var(--ink); }
.channel-desc { font-size: 0.78rem; color: var(--ink-muted); }

.slider-wrapper { display: flex; align-items: center; gap: 12px; }

.slider-wrapper input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--line-strong);
  border-radius: 3px;
}
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-light);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.slider-wrapper input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-light);
  border: none;
  cursor: pointer;
}

.val-display {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-light);
  min-width: 38px;
  text-align: end;
}

.mixer-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.mixer-footer-note svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Clinic */
.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.clinic-grid .section-subtitle { margin-inline: 0; }

.clinic-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.clinic-feat-item { display: flex; gap: 14px; }

.feat-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-light);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--brand-glow);
}

.clinic-feat-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.clinic-feat-item p { font-size: 0.87rem; color: var(--ink-soft); }

.clinic-visual {
  transform: translateZ(0);
}

/* Mathematical Zero-Overflow MacBook Pro Container */
.clinic-visual-wrapper {
  position: relative;
  width: 518px;
  max-width: 100%;
  height: 312px;
  margin: 0 auto;
  overflow: hidden;
  direction: ltr !important;
}

.clinic-visual-wrapper * {
  direction: ltr !important;
}

.device-macbook-pro-2018,
.device-macbook-pro {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -370px;
  transform-origin: top center;
  transform: scale(0.70);
  flex-shrink: 0;
}

.device-macbook-pro-2018 .device-screen,
.device-macbook-pro .device-screen {
  margin: 0 auto !important;
  overflow: hidden !important;
}

.device-macbook-pro-2018 .device-screen img,
.device-macbook-pro .device-screen img,
.device-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
}

@media (max-width: 1100px) {
  .clinic-visual-wrapper {
    width: 440px;
    height: 264px;
  }
  .device-macbook-pro-2018,
  .device-macbook-pro {
    transform: scale(0.59);
  }
}

@media (max-width: 992px) {
  .clinic-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .clinic-content {
    align-items: center;
    text-align: center;
  }
  .clinic-features-list {
    text-align: start;
  }
  .clinic-cta-wrapper {
    justify-content: center;
  }
  .clinic-visual-wrapper {
    width: 440px;
    max-width: 100%;
    height: 264px;
  }
  .device-macbook-pro-2018,
  .device-macbook-pro {
    transform: scale(0.59);
  }
}

@media (max-width: 520px) {
  .clinic-visual-wrapper {
    width: 320px;
    height: 192px;
  }
  .device-macbook-pro-2018,
  .device-macbook-pro {
    transform: scale(0.43);
  }
}
  .device-macbook-pro {
    transform: scale(0.65);
  }
}

@media (max-width: 640px) {
  .clinic-visual-wrapper {
    width: 340px;
    max-width: 92vw;
    height: 205px;
  }
  .device-macbook-pro-2018,
  .device-macbook-pro {
    transform: scale(0.46);
  }
}

@media (max-width: 480px) {
  .clinic-visual-wrapper {
    width: 266px;
    max-width: 90vw;
    height: 160px;
  }
  .device-macbook-pro-2018,
  .device-macbook-pro {
    transform: scale(0.36);
  }
}

.clinic-dashboard-img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.laptop-base {
  position: relative;
  width: 112%;
  height: 18px;
  margin-inline-start: -6%;
  margin-top: -2px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #dce1e7 0%, #9ea7b2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(78, 87, 96, 0.4),
    0 14px 26px rgba(0, 0, 0, 0.12);
}

.laptop-base::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  width: 24%;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: rgba(72, 79, 87, 0.3);
  transform: translateX(50%);
}

[dir="ltr"] .laptop-base::before {
  transform: translateX(-50%);
}

.laptop-trackpad {
  position: absolute;
  inset-inline-start: 50%;
  top: 5px;
  width: 18%;
  height: 6px;
  border-radius: 999px;
  background: rgba(119, 128, 138, 0.34);
  transform: translateX(50%);
}

[dir="ltr"] .laptop-trackpad {
  transform: translateX(-50%);
}

/* Science */
.science-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.science-visual {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.science-proof-panel {
  position: relative;
  min-height: 600px;
  border-radius: 34px;
  padding: 36px 32px 0 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(235, 247, 242, 0.92) 0%, rgba(222, 241, 233, 0.82) 100%);
  border: 1px solid rgba(33, 75, 63, 0.08);
  box-shadow: 0 24px 64px rgba(8, 31, 24, 0.08);
}

[data-theme="dark"] .science-proof-panel {
  background:
    linear-gradient(180deg, rgba(17, 28, 24, 0.94) 0%, rgba(13, 20, 18, 0.98) 100%);
  border-color: rgba(110, 231, 183, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.science-proof-copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.science-proof-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(40, 122, 95, 0.12);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

[data-theme="dark"] .science-proof-label {
  background: rgba(110, 231, 183, 0.12);
  color: #b9f4da;
}

.science-proof-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--ink);
}

.science-proof-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.science-proof-stack {
  position: relative;
  margin-top: 36px;
  margin-inline-start: auto; /* Align to the left in RTL */
  width: min(90%, 460px);
  height: 420px;
}

.science-proof-shot {
  position: absolute;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(33, 75, 63, 0.08);
  box-shadow: 0 24px 56px rgba(8, 31, 24, 0.18);
}

[data-theme="dark"] .science-proof-shot {
  background: rgba(20, 31, 28, 0.92);
  border-color: rgba(110, 231, 183, 0.08);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.science-proof-shot-back {
  inset-inline-start: 0;
  top: 28px;
  width: 68%;
  transform: rotate(-6deg);
}

.science-proof-shot-front {
  inset-inline-end: 0;
  top: 64px;
  width: 72%;
  transform: rotate(6deg);
  z-index: 2;
}

.science-papers-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.paper-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease-out), border-color 0.24s ease;
}
.paper-card:hover { transform: translateY(-3px); border-color: var(--brand-glow); }

.paper-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-light);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.02em;
}

.paper-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.paper-finding {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.paper-doi {
  margin-top: 14px;
  font-size: 0.79rem;
  color: var(--ink-muted);
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.18);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.paper-link:hover {
  transform: translateY(-1px);
  border-color: var(--brand-glow);
  background: rgba(13, 148, 136, 0.14);
}

.paper-link-secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

/* Concrete use cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.use-cases-grid .review-card {
  min-height: 210px;
}

.reviews-marquee {
  overflow: hidden;
  position: relative;
  margin-inline: calc(clamp(20px, 4vw, 40px) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-block: 8px;
  animation: reviews-scroll 46s linear infinite;
}
.reviews-marquee:hover .reviews-marquee-track { animation-play-state: paused; }
.reviews-marquee .review-card {
  width: min(360px, 82vw);
  flex-shrink: 0;
  direction: rtl;
  text-align: start;
}
body.font-en .reviews-marquee .review-card { direction: ltr; }

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.24s var(--ease-out), border-color 0.24s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--brand-glow); }

/* Testimonial persona (avatar + name + role) — theme-aware */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.review-persona {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0d1512;
}
.review-avatar-1 { background: var(--brand-light); }
.review-avatar-2 { background: #38bdf8; }
.review-avatar-3 { background: #a7f3d0; }
.review-avatar-4 { background: #f472b6; }
.review-persona-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.review-role {
  font-size: 0.8rem;
  color: var(--brand-light);
}

.safety-section {
  background:
    linear-gradient(180deg, transparent, rgba(41, 119, 99, 0.05)),
    var(--bg);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.safety-card {
  position: relative;
  min-height: 245px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.safety-card-index {
  display: block;
  margin-bottom: 32px;
  color: var(--brand-light);
  font: 700 0.76rem/1 var(--font-en);
  letter-spacing: 0.16em;
}

.safety-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.12rem;
}

.safety-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.85;
}

.review-stars,
.review-marker {
  color: var(--warm);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-marker {
  letter-spacing: 0;
}

.review-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-light);
}

/* FAQ */
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s var(--ease-out);
}

.faq-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.faq-trigger {
  width: 100%;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.99rem;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
  gap: 18px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-trigger:hover {
  color: var(--brand-light);
  background: var(--brand-soft);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-light);
  transition: transform 0.24s ease;
  flex-shrink: 0;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 26px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
  transition: grid-template-rows 0.36s var(--ease-out), max-height 0.36s var(--ease-out), opacity 0.24s ease, padding 0.36s var(--ease-out);
}

.faq-content > p {
  min-height: 0;
  overflow: hidden;
}

.faq-item.active {
  border-color: var(--brand-glow);
  box-shadow: var(--shadow-sm);
}
.faq-item.active .faq-content {
  grid-template-rows: 1fr;
  max-height: 320px;
  opacity: 1;
  padding: 0 26px 22px;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Final CTA — cinematic image-backed panel
   -------------------------------------------------------------------------- */
.cta-section { overflow: hidden; }

.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 72%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(7, 24, 19, 0.55), rgba(7, 24, 19, 0.62));
}

.cta-section > .container { position: relative; z-index: 1; }

.cta-card {
  position: relative;
  overflow: hidden;
  background: rgba(10, 26, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 56px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-card .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: #d7f3e7;
}

.cta-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.cta-subtitle {
  font-size: 1rem;
  color: rgba(240, 248, 244, 0.86);
  margin-bottom: 32px;
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.8;
}

.cta-form {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 14px;
}

.form-group { display: flex; gap: 10px; }

.form-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px var(--brand-soft); }

.cta-card .form-input {
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
  color: #12312b;
}
.cta-card .form-input::placeholder { color: #5d7a72; }
.cta-card .form-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.cta-card #btn-subscribe {
  background: #0b1f19;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.cta-card #btn-subscribe:hover { background: #123028; }

.form-message {
  font-size: 0.84rem;
  margin-top: 10px;
  font-weight: 600;
  min-height: 1.2em;
}
.form-message.success { color: var(--brand-light); }
.form-message.error { color: #e25c5c; }
.cta-card .form-message.success { color: #a7f3d0; }
.cta-card .form-message.error { color: #ffd7d7; }

.form-input[aria-invalid="true"] {
  border-color: #e25c5c;
  box-shadow: 0 0 0 3px rgba(226, 92, 92, 0.14);
}

#btn-subscribe:disabled { opacity: 0.65; cursor: wait; transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-micro {
  font-size: 0.82rem;
  color: rgba(240, 248, 244, 0.7);
}

/* Footer */
.footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer > .container.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 2.6fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo { width: 28px; height: 28px; border-radius: 7px; }

.footer-desc {
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 320px;
}

.footer-beshno { font-size: 0.84rem; font-weight: 700; color: var(--brand-light); }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brand-light); }

.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; }

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.disclaimer { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.6; }
.copyright { font-size: 0.78rem; color: var(--ink-muted); }

/* Supplementary layout helpers */
.clinic-content { display: flex; flex-direction: column; justify-content: center; }
.clinic-cta-wrapper { display: flex; align-items: center; gap: 12px; }
.faq-q-text { font-size: 0.99rem; font-weight: 700; color: var(--ink); flex: 1; }
.font-fa { font-family: var(--font-fa); }
.footer-brand { display: flex; flex-direction: column; justify-content: flex-start; }
.header-cta { margin-inline-start: 4px; }
.play-btn-label { font-size: 0.9rem; font-weight: 700; }
.section-img { width: 100%; height: auto; display: block; }
.theme-btn, .theme-btn-mob { border-radius: var(--radius-sm); }

.theme-img { transition: opacity 0.3s ease; animation: img-fade-in 0.5s ease both; }
@keyframes img-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Accent spans, scroll reveal
   -------------------------------------------------------------------------- */
.text-accent {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.text-accent::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.08em;
  height: 0.32em;
  background: var(--brand-soft);
  border-radius: 4px;
  z-index: -1;
}

.emph {
  font-style: italic;
  font-weight: 800;
  color: var(--brand);
}

/* Scroll reveal (JS adds .in-view; honors data-reveal-delay via inline style) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Media Queries
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  .hero-scroll-hint { display: block; }
}

@media (max-width: 1080px) {
  .hero-container { grid-template-columns: 1fr; padding-bottom: clamp(140px, 20vh, 200px); }
  .hero-content { max-width: 720px; }
  .hero-product-stage {
    width: min(460px, 100%);
    margin-top: 12px;
  }
  .hero-device-cluster {
    width: min(460px, 100%);
    padding-inline: 12px;
  }
  .hero-device-single { min-height: 440px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .clinic-grid { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: 1fr; }
  .science-visual { position: static; }
}

@media (max-width: 992px) {
  .narrative-grid { grid-template-columns: 1fr; }
  .product-screens-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px; }
  .use-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr !important; gap: 32px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.9rem); }
  .hero-trust-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .product-screens-showcase {
    grid-template-columns: repeat(3, 72vw);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .product-screen-card {
    scroll-snap-align: center;
  }
  .product-screen-card-primary {
    transform: none;
  }
  .use-cases-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-group { flex-direction: column; }
  .hero-container { padding-top: calc(var(--header-h) + 56px); }
  .hero-trust-container {
    grid-template-columns: 1fr;
    gap: 12px 18px;
  }
  .trust-pill-item { font-size: 0.76rem; }
  .hero-product-stage {
    width: 100%;
  }
  .hero-device-cluster {
    width: 100%;
    padding: 18px 4px 10px;
    gap: 6px;
  }
  .hero-device-single {
    min-height: 390px;
    padding-inline: 34px;
  }
  .hero-device-single .hero-phone-main { width: clamp(184px, 54vw, 224px); }
  .hero-device-orbit {
    padding: 8px 10px;
    font-size: 0.67rem;
    max-width: 150px;
  }
  .hero-device-orbit-top { inset-inline-start: 0; top: 6%; }
  .hero-device-orbit-bottom { inset-inline-end: 0; bottom: 8%; }
  .hero-phone-main {
    width: clamp(148px, 44vw, 184px);
  }
  .hero-phone-left,
  .hero-phone-right {
    width: clamp(98px, 29vw, 124px);
    margin-top: 30px;
  }
  .science-proof-panel {
    min-height: auto;
    padding: 22px;
  }
  .science-proof-stack {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 24px;
    display: grid;
    gap: 14px;
  }
  .science-proof-shot,
  .science-proof-shot-back,
  .science-proof-shot-front {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — everything visible, no loops
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .hero-bg { background: url("assets/hero-poster.webp") center 38% / cover no-repeat; }
  .reviews-marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .reviews-marquee { -webkit-mask-image: none; mask-image: none; }
  .badge-dot, .scroll-hint-line { animation: none; }
  .science-proof-shot-back,
  .science-proof-shot-front { transform: none; }
}

/* --------------------------------------------------------------------------
   Hero refinement — a compact opening led by the real product
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: clamp(620px, 78svh, 740px);
}

.hero-container {
  min-height: clamp(620px, 78svh, 740px);
  padding-top: calc(var(--header-h) + clamp(24px, 4vh, 52px));
  padding-bottom: clamp(48px, 8vh, 82px);
}

.hero-content {
  max-width: 560px;
}

.hero-clinical-badge {
  margin-bottom: 16px;
  padding: 7px 12px;
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title .text-accent {
  margin-top: 3px;
}

.hero-subtitle {
  max-width: 510px;
  margin-bottom: 26px;
  line-height: 1.85;
}

.hero-cta-group {
  margin-bottom: 12px;
}

.hero-product-stage {
  position: absolute;
  inset-inline-end: clamp(4vw, 10vw, 15vw);
  top: 50%;
  width: clamp(230px, 24vw, 310px);
  height: auto;
  margin: 0;
  transform: translateY(-44%);
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 34px 42px rgba(1, 16, 13, 0.34));
}

.hero-product-stage .hero-phone {
  display: flex;
  width: 100%;
  max-width: 286px;
  padding: 7px;
  border: 2px solid #777b80;
  border-radius: 48px;
  background: linear-gradient(145deg, #111315, #000);
  box-shadow:
    inset 0 0 0 2px #24272a,
    inset 0 0 0 4px #050505,
    0 30px 70px rgba(0, 0, 0, 0.38);
}

.hero-product-stage .hero-phone-screen {
  border-radius: 39px;
  background: #050806;
}

.hero-product-stage .hero-shot-img {
  object-fit: cover;
  object-position: top center;
}

.hero-trust-bar,
.hero-scroll-hint {
  display: none;
}

@media (max-width: 992px) {
  .hero-section,
  .hero-container {
    min-height: 640px;
  }

  .hero-product-stage {
    inset-inline-end: 4vw;
    opacity: 0.94;
    width: clamp(205px, 27vw, 250px);
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
    padding-bottom: 44px;
  }

  .hero-container {
    min-height: auto;
  }

  .hero-container {
    display: flex;
    padding-top: calc(var(--header-h) + 42px);
    padding-bottom: 54px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .hero-subtitle {
    max-width: 92%;
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .hero-product-stage {
    position: relative;
    inset: auto;
    top: auto;
    bottom: auto;
    width: min(218px, 62vw);
    height: auto;
    margin: 22px auto 0;
    transform: none;
    opacity: 1;
  }

  .hero-product-stage .hero-phone {
    border-radius: 38px;
  }

  .hero-product-stage .hero-phone-screen {
    border-radius: 31px;
  }
}


/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERHAUL
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 44px;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    max-width: 580px;
    margin-inline: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-product-stage {
    position: relative;
    inset: auto;
    top: auto;
    transform: none;
    width: clamp(210px, 35vw, 270px);
    margin: 28px auto 0;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding-inline: 16px;
    height: 64px;
  }
  .header-actions .header-cta {
    display: none !important; /* Hide header CTA bar button on mobile; available in mobile nav */
  }
  .mobile-nav {
    top: 64px;
    inset-inline: 0;
    padding: 20px 24px 28px;
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  .mobile-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .mobile-controls-row {
    margin-top: 12px;
    margin-bottom: 14px;
    justify-content: flex-start;
  }
  
  .hero-title {
    font-size: clamp(2.0rem, 8vw, 2.7rem);
  }
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 290px;
  }
  .hero-product-stage {
    width: clamp(180px, 56vw, 230px);
    margin-top: 20px;
  }

  /* 3 Screenshots Showcase on Mobile */
  .product-screens-showcase {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    padding: 14px 6px;
    max-width: 100%;
    overflow: visible;
  }
  .product-screen-card {
    flex: 0 1 30%;
    max-width: 110px;
    min-width: 85px;
    border-radius: 14px;
  }
  .product-screen-card img {
    border-radius: 12px;
  }
  .product-screen-card-primary {
    flex: 0 1 36%;
    max-width: 130px;
    min-width: 100px;
    transform: translateY(-8px);
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 60px;
  }
  .mobile-nav {
    top: 60px;
    padding: 16px 20px 24px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.3rem);
  }
  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.65;
  }
  .product-screens-showcase {
    gap: 6px;
    padding: 10px 2px;
  }
  .product-screen-card {
    flex: 0 1 30%;
    max-width: 100px;
    min-width: 80px;
    border-radius: 12px;
  }
  .product-screen-card img {
    border-radius: 10px;
  }
  .product-screen-card-primary {
    flex: 0 1 36%;
    max-width: 118px;
    min-width: 92px;
    transform: translateY(-6px);
  }
}


/* English (LTR) Hero Title Overflow Fix */
[dir="ltr"] .hero-title {
  font-size: clamp(1.8rem, 4.2vw, 3.5rem);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

[dir="ltr"] .hero-title .text-accent {
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 768px) {
  [dir="ltr"] .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  [dir="ltr"] .hero-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }
}


/* Compact & Refined Science Proof Screenshots Sizing */
.science-proof-panel {
  min-height: 480px;
  padding: 32px 28px 0 28px;
}

.science-proof-stack {
  position: relative;
  margin-top: 24px;
  margin-inline-start: auto;
  width: min(85%, 340px);
  height: 310px;
}

.science-proof-shot {
  max-width: 210px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.science-proof-shot-back {
  top: 16px;
  width: 65%;
  transform: rotate(-4deg);
}

.science-proof-shot-front {
  top: 42px;
  width: 68%;
  transform: rotate(4deg);
  z-index: 2;
}

@media (max-width: 768px) {
  .science-proof-panel {
    min-height: auto;
    padding: 24px 20px;
  }
  .science-proof-stack {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
  }
  .science-proof-shot,
  .science-proof-shot-back,
  .science-proof-shot-front {
    position: relative;
    inset: auto;
    top: auto;
    bottom: auto;
    transform: none !important;
    flex: 0 1 135px;
    max-width: 140px;
    min-width: 100px;
    border-radius: 14px;
  }
  .science-proof-shot-front {
    transform: translateY(-8px) !important;
  }
}

@media (max-width: 480px) {
  .science-proof-stack {
    gap: 8px;
  }
  .science-proof-shot,
  .science-proof-shot-back,
  .science-proof-shot-front {
    flex: 0 1 115px;
    max-width: 118px;
    min-width: 85px;
    border-radius: 12px;
  }
  .science-proof-shot-front {
    transform: translateY(-6px) !important;
  }
}


/* Beshno Audiology Logo Footer Badge & Links */
.footer-beshno-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-card) 80%, transparent);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.footer-beshno-badge:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface-card) 92%, var(--accent));
  transform: translateY(-2px);
}

.copyright a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.copyright a:hover {
 color: var(--accent);
}

.footer-beshno-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.footer-beshno-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
 
 /* ==========================================================================
    Back to Top Button
    ========================================================================== */
 .back-to-top {
   position: fixed;
   bottom: 32px;
   inset-inline-end: 32px;
   z-index: 999;
   width: 44px;
   height: 44px;
   border-radius: var(--radius-full);
   background: var(--brand);
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: var(--shadow-md);
   opacity: 0;
   transform: translateY(16px) scale(0.9);
   pointer-events: none;
   transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.25s ease;
   border: none;
   cursor: pointer;
 }
 
 .back-to-top.visible {
   opacity: 1;
   transform: translateY(0) scale(1);
   pointer-events: auto;
 }
 
 .back-to-top:hover {
   background: var(--brand-light);
   transform: translateY(-3px) scale(1.05);
 }
 
 .back-to-top:active {
   transform: translateY(0) scale(0.95);
 }
 
 .back-to-top svg {
   stroke: #fff;
   stroke-width: 2.5;
   transition: transform 0.3s var(--ease-out);
 }
 
 .back-to-top:hover svg {
   transform: translateY(-2px);
 }
 
 @media (max-width: 768px) {
   .back-to-top {
     bottom: 20px;
     inset-inline-end: 20px;
     width: 40px;
     height: 40px;
   }
 }
