/* /css/styles.css */

/* ================= ROOT VARIABLES ================= */
:root {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-primary: #0b63ff;
  --color-primary-soft: rgba(11, 99, 255, 0.1);
  --color-primary-dark: #0542ad;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;
  --color-focus: #111827;

  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);

  --container-width: 1120px;

  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;

  --nav-height: 3.4rem;
  /* compact header for normal screens */
}

/* ================= RESET & BASE ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Improve focus visibility */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

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

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

p {
  margin: 0 0 0.75rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ================= LAYOUT HELPERS ================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Section spacing */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background-color: #e9f0ff;
}

/* Section headers */
.section__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.section__subtitle {
  color: var(--color-text-muted);
  max-width: 40rem;
}


/* Features section header: compact, centered horizontally but not vertically */
#features .section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* keep title near the top so cards sit directly below */
  text-align: center;
  min-height: auto;
  /* remove large viewport height so header doesn't create empty space */
  padding-block: 1.25rem;
  /* modest vertical breathing room */
}

/* See it in action section header: same styling as features */
#see-it-in-action .section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: auto;
  padding-block: 1.25rem;
}

#features .section__subtitle {
  margin-top: 0.75rem;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}

/* Make the features subtitle larger and more prominent while keeping it one line */
#features .section__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* Increase the main title size for the Features section */
#features .section__title {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 700;
}

#see-it-in-action .section__title {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tab-toggle {
  display: flex;
  gap: 0.65rem;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.tab-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.tab-dot:hover,
.tab-dot:focus {
  outline: none;
  transform: scale(1.05);
}

.tab-dot--active {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 99, 255, 0.24);
}

.why-media {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.9));
  border-radius: 1.5rem;
  padding: 0rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.why-media__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.why-copy {
  display: flex;
  align-items: center;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.why-list__item {
  position: relative;
  padding: 0.75rem 0;
  padding-left: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.why-list__item:last-child {
  border-bottom: none;
}

.why-list__item::before {
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* ================= NAVIGATION ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.95));
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
  gap: 1.25rem;
  padding-inline: 1.25rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav__logo {
  width: 70px;
  /* smaller logo for a leaner header */
  height: auto;
  margin-right: 0.5rem;
}

.nav__links-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

/* ===== NEW HORIZONTAL NAV MENU ===== */
.topbar-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  /* tighter spacing between nav items */
}

.nav-link {
  position: relative;
  font-size: 1rem;
  /* compact but readable */
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 0;
  /* reduced vertical padding */
  padding-inline: 6px;
  /* maintain horizontal click area */
  text-decoration: none;
  transition: color 0.18s ease, transform 0.12s ease;
}

.nav-link:hover {
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Underline highlight */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b63ff, #2563eb);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav__link--active {
  color: var(--color-primary-dark);
}

.nav__link--active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Right-side flags */
.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flag-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff20;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Language selector styling */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.language-selector__button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  user-select: none;
  min-width: 170px;
}

.language-selector__button:hover {
  background: #f5f5f5;
}

.language-selector__button:focus {
  box-shadow: 0 0 0 2px rgba(11, 99, 255, 0.3);
}

.language-selector__arrow {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
  margin-left: auto;
}

.language-selector__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  background-color: #f8fafc;
  border-radius: 2px;
  padding: 1px;
}

.language-selector__flag img {
  width: 100%;
  max-width: 40px;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.language-selector__flag img[alt="IL"] {
  max-width: 36px;
}


.language-selector.is-open .language-selector__arrow {
  transform: rotate(180deg);
}

.language-selector__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  min-width: 100%;
}

.language-selector.is-open .language-selector__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-selector__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.language-selector__option:hover {
  background: #f5f5f5;
}

.language-selector__option.is-selected {
  background: rgba(11, 99, 255, 0.1);
  color: var(--color-primary);
}

.nav__cta {
  display: inline-flex;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav__toggle:hover {
  background-color: rgba(148, 163, 184, 0.15);
}

.nav__toggle-bar {
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background-color: #111827;
  display: block;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--transition-med),
    color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast),
    border-color var(--transition-med);
  white-space: nowrap;
}

.nav__logo {
  width: 48px;
  height: auto;
}

/* Normalize browser blue focus and provide a consistent focus ring for buttons */
.btn:focus {
  outline: none;
}

/* Remove the blue click-focus (mouse/touch) ring but keep keyboard-visible focus */
.btn:focus:not(:focus-visible) {
  box-shadow: none;
}

/* Provide an accessible, consistent focus ring for keyboard users */
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: none;
}

.btn--small {
  padding-block: 0.55rem;
  padding-inline: 1.1rem;
  font-size: 0.88rem;
}

.btn--primary {
  background: linear-gradient(135deg, #0b63ff, #2563eb);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0542ad, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text);
}

.btn--ghost:hover {
  background-color: #ffffff;
  border-color: var(--color-primary);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background-color: #020617;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(105%) contrast(103%);
  transform: scale(1.01);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.62) 34%, rgba(2, 6, 23, 0.18) 64%, rgba(2, 6, 23, 0.04) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.28) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  padding-block: clamp(4rem, 8vw, 6rem);
}

.hero__text {
  max-width: 42rem;
  font-family: "Day One", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hero__text *,
.hero__actions .btn,
.hero__actions .btn * {
  font-family: inherit !important;
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* rotator fade animation */
:root {
  --rotator-duration: 420ms;
}

.hero-rotator,
#hero-rotator {
  display: inline-block;
  transition: opacity var(--rotator-duration) ease;
  opacity: 1;
  will-change: opacity;
  white-space: nowrap;
  /* keep phrases on one line */
  min-width: 20ch;
  /* reserve width for the longest phrase to avoid layout jump */
}

.hero-rotator.is-fading {
  opacity: 0;
}

/* company name left of rotator - inherit same h1 styles */
.hero-brand {
  display: inline-block;
  margin-right: 0.6rem;
  font-weight: inherit;
  color: inherit;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 1.5rem;
  max-width: 34rem;
  white-space: normal;
}

@media (max-width: 768px) {
  .hero__subtitle {
    white-space: normal;
    max-width: 100%;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__btn-secondary {
  backdrop-filter: blur(10px);
}

.hero__bullets {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.9);
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__bullets li::before {
  content: "•";
  color: #93c5fd;
  font-size: 1.1rem;
}

.hero__visual {
  position: relative;
  min-height: 42rem;
  perspective: 1400px;
  isolation: isolate;
}

.hero-device {
  --device-rotate-x: 10deg;
  --device-rotate-y: -24deg;
  --device-translate-x: -35%;
  --device-translate-y: -42%;
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(14rem, 24vw, 18.5rem);
  aspect-ratio: 1 / 1;
  transform: translate(var(--device-translate-x), var(--device-translate-y)) rotateX(var(--device-rotate-x)) rotateY(var(--device-rotate-y));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out, filter 160ms ease-out;
  z-index: 3;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
  filter: drop-shadow(0 22px 34px rgba(15, 23, 42, 0.22));
}

.hero-device:hover {
  filter: drop-shadow(0 22px 40px rgba(15, 23, 42, 0.26)) drop-shadow(0 0 26px rgba(147, 197, 253, 0.16));
}

.hero-device.is-dragging {
  cursor: grabbing;
  transition: none;
}

.hero-device__glow {
  position: absolute;
  inset: -18% -20%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.34), rgba(59, 130, 246, 0.12) 42%, transparent 70%);
  filter: blur(14px);
  transform: translateZ(-60px);
}

.hero-device__body,
.hero-device__side,
.hero-device__top {
  position: absolute;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #d8d6d1, #a8a39d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 30px 60px rgba(15, 23, 42, 0.36);
}

.hero-device__body {
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 12%),
    linear-gradient(145deg, #d9d7d1, #b7b2ac 58%, #a39d97);
  border: 1px solid rgba(155, 149, 142, 0.34);
}

.hero-device__body::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border-radius: 0.95rem;
  box-shadow:
    inset -1px 0 0 rgba(151, 146, 140, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.hero-device__body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 10% 88%, rgba(82, 78, 73, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 14% 86%, rgba(82, 78, 73, 0.08));
  pointer-events: none;
}

.hero-device__body>* {
  position: relative;
  z-index: 1;
}

.hero-device__face {
  position: absolute;
  inset: 15.5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9) 58%, rgba(203, 213, 225, 0.96));
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 10px 20px rgba(255, 255, 255, 0.78),
    inset 0 -10px 18px rgba(148, 163, 184, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-device__logo {
  width: 68%;
  height: auto;
  filter: contrast(1.1) saturate(0.9);
}

.hero-device__side {
  top: 1.2%;
  right: -18%;
  width: 24%;
  height: 98%;
  border-radius: 0.85rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #beb8b2, #9f9992 50%, #8f8983);
  transform: rotateY(90deg) translateZ(-0.7rem);
  transform-origin: left center;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.32),
    inset -1px 0 0 rgba(122, 116, 110, 0.28);
}

.hero-device__top {
  left: 1.2%;
  top: -18%;
  width: 98%;
  height: 24%;
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(180deg, #d4d0ca, #bcb7b1 56%, #ada7a1);
  transform: rotateX(90deg) translateZ(0.7rem);
  transform-origin: center bottom;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(122, 116, 110, 0.18);
}

.hero-device__screw {
  position: absolute;
  width: 0.96rem;
  height: 0.96rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #74706d, #dfddd8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    0 0 0 2px rgba(94, 88, 84, 0.18);
}

.hero-device__screw::before {
  content: "";
  position: absolute;
  inset: 46% 20%;
  height: 1px;
  background: rgba(51, 65, 85, 0.65);
  transform: rotate(-28deg);
}

.hero-device__screw--tl {
  top: 0.82rem;
  left: 0.82rem;
}

.hero-device__screw--tr {
  top: 0.82rem;
  right: 0.82rem;
}

.hero-device__screw--bl {
  bottom: 0.82rem;
  left: 0.82rem;
}

.hero-device__screw--br {
  bottom: 0.82rem;
  right: 0.82rem;
}

.hero-system {
  position: absolute;
  top: 50%;
  left: calc(50% + 15.25rem);
  right: auto;
  width: min(17.5rem, 34vw);
  max-width: calc(100% - (50% + 15.25rem));
  z-index: 5;
  opacity: 0;
  transform: translate(-50%, -50%) translateX(1rem) scale(0.96);
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out,
    filter 220ms ease-out;
  pointer-events: none;
  overflow: visible;
}

.hero-system.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) translateX(0) scale(1);
  z-index: 6;
  pointer-events: auto;
  filter: drop-shadow(0 22px 36px rgba(8, 15, 38, 0.26));
}

.hero-system__line {
  display: none;
}

.hero-system__line::before,
.hero-system__line::after {
  content: none;
}

.hero-system__dot {
  display: none;
}

.hero-system__card {
  position: relative;
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(22, 37, 74, 0.78));
  border: 1px solid rgba(191, 219, 254, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 45px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 2;
}

.hero-system__copy {
  min-width: 0;
}

.hero-system__kicker {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.8);
}

.hero-system__card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.1;
  color: #fff;
}

.hero-system__media {
  position: relative;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 24px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.hero-system__card::before {
  content: "System Match";
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(219, 234, 254, 0.88);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(191, 219, 254, 0.12);
}

.hero-system__media::before,
.hero-system__media::after {
  content: "";
  position: absolute;
}

.hero-system__media--barrier::before {
  left: 0.7rem;
  bottom: 0.7rem;
  width: 0.3rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #6b7280;
  box-shadow: 1.6rem 0 0 #9ca3af;
}

.hero-system__media--barrier::after {
  left: 0.9rem;
  top: 1.2rem;
  width: 2rem;
  height: 0.24rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1d5db 0 25%, #ef4444 25% 38%, #d1d5db 38% 64%, #ef4444 64% 77%, #d1d5db 77% 100%);
  transform: rotate(-28deg);
  transform-origin: left center;
}

.hero-system__media--shutter::before {
  inset: 0.85rem 0.8rem 0.8rem;
  border-radius: 0.35rem 0.35rem 0.5rem 0.5rem;
  background:
    repeating-linear-gradient(180deg, #d1d5db 0 0.2rem, #9ca3af 0.2rem 0.36rem);
  box-shadow: inset 0 0 0 0.18rem #6b7280;
}

.hero-system__media--shutter::after {
  left: 0.95rem;
  top: 0.65rem;
  width: 2rem;
  height: 0.22rem;
  background: #6b7280;
  border-radius: 999px;
}

.hero-system__media--floodlight::before {
  inset: 0.85rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at center, #fff9c4, #fcd34d 45%, #6b7280 46%, #374151 100%);
  transform: rotate(-8deg);
}

.hero-system__media--floodlight::after {
  left: 1.55rem;
  bottom: 0.45rem;
  width: 0.75rem;
  height: 0.45rem;
  background: #4b5563;
  border-radius: 0 0 0.3rem 0.3rem;
}

.hero-system__media--door::before {
  left: 1.15rem;
  top: 0.55rem;
  width: 1.55rem;
  height: 2.8rem;
  border-radius: 0.25rem 0.25rem 0.05rem 0.05rem;
  background: linear-gradient(90deg, #8b5a3c, #b97848 48%, #8b5a3c);
  box-shadow: inset 0 0 0 0.12rem rgba(82, 43, 24, 0.55);
}

.hero-system__media--door::after {
  right: 1.15rem;
  top: 2rem;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: #fbbf24;
}

.hero-system__media--field {
  background:
    linear-gradient(180deg, #dbeafe 0 24%, #86efac 24% 100%);
}

.hero-system__media--field::before {
  inset: 1rem 0.5rem 0.5rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.9) 49% 51%, transparent 51%),
    linear-gradient(180deg, transparent 49%, rgba(255, 255, 255, 0.9) 49% 51%, transparent 51%),
    radial-gradient(circle at center, transparent 0 0.55rem, rgba(255, 255, 255, 0.9) 0.55rem 0.62rem, transparent 0.62rem),
    linear-gradient(180deg, #22c55e, #15803d);
  box-shadow: inset 0 0 0 0.12rem rgba(255, 255, 255, 0.55);
}

.hero-system__media--field::after {
  inset: 0.55rem 0.65rem auto;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.75);
}

.hero-system__media--maglock::before {
  left: 0.65rem;
  right: 0.65rem;
  top: 1.55rem;
  height: 0.82rem;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, #6b7280, #111827);
  box-shadow:
    0 -0.3rem 0 0 rgba(229, 231, 235, 0.9),
    0 0.3rem 0 0 rgba(203, 213, 225, 0.95);
}

.hero-system__media--maglock::after {
  left: 1rem;
  right: 1rem;
  top: 1.78rem;
  height: 0.32rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8fafc, #94a3b8 30%, #f8fafc 60%, #94a3b8);
}

.hero-system__media--power::before {
  left: 0.85rem;
  top: 1.3rem;
  width: 2.2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #111827, #374151);
  box-shadow: inset 0 0 0 0.12rem rgba(255, 255, 255, 0.1);
}

.hero-system__media--power::after {
  left: 1.35rem;
  top: 1.62rem;
  width: 1.2rem;
  height: 0.46rem;
  border-radius: 0.15rem;
  background: linear-gradient(180deg, #9ca3af, #1f2937);
}

.hero-system__media--input::before {
  left: 0.75rem;
  right: 0.75rem;
  top: 1.15rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #d1d5db, #9ca3af);
  box-shadow: inset 0 0 0 0.12rem rgba(71, 85, 105, 0.28);
}

.hero-system__media--input::after {
  left: 1rem;
  top: 1.58rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: #374151;
  box-shadow: 0.62rem 0 0 #374151, 1.24rem 0 0 #374151, 1.86rem 0 0 #374151;
}

.hero-system--barrier .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(41, 18, 33, 0.82));
}

.hero-system--shutter .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(31, 41, 55, 0.82));
}

.hero-system--floodlight .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(52, 33, 7, 0.8));
}

.hero-system--door .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(55, 34, 19, 0.8));
}

.hero-system--field .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(16, 64, 45, 0.8));
}

.hero-system--maglock .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.2), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(30, 41, 59, 0.82));
}

.hero-system--power .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(20, 44, 92, 0.82));
}

.hero-system--input .hero-system__card {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(9, 17, 40, 0.9), rgba(39, 51, 74, 0.82));
}

/* ================= FEATURES ================= */
.features-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.45rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--color-border-subtle);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background-color var(--transition-med);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(37, 99, 235, 0.45);
  background-color: #f9fbff;
}

.feature-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  margin: 0 0 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 38%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(160deg, #dbe8ff, #eef3ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.feature-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform var(--transition-med), filter var(--transition-med);
  filter: saturate(1.02) contrast(1.01);
}

.feature-card:hover .feature-card__image {
  transform: scale(1.06);
}

.feature-card--no-subscription .feature-card__image {
  object-position: left center;
}

.feature-card--security .feature-card__image {
  object-position: center 38%;
}

.feature-card--no-internet .feature-card__image {
  object-position: right center;
}

.feature-card--guest-access .feature-card__image {
  object-position: 32% center;
}

.feature-card--smart-access .feature-card__image {
  object-position: 68% center;
}

.feature-card--user-management .feature-card__image {
  object-position: center 62%;
}

@media (max-width: 768px) {
  .feature-card {
    min-height: 200px;
  }

  .feature-card__media {
    aspect-ratio: 16 / 10;
  }
}

.feature-card__title {
  font-size: 1rem;
  margin: 0 0 0.45rem;
  text-align: center;
}

.feature-card__text {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}

/* ================= ABOUT ================= */
.about-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.about-layout__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.about__text {
  color: var(--color-text-muted);
}

/* ================= CONTACT ================= */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: flex-start;
}

.contact__bullets {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

.contact__bullets li+li {
  margin-top: 0.35rem;
}

.contact-form {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.contact-info__details {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact-video {
  margin-top: 1.5rem;
  max-width: 32rem;
}

.contact-video__player {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.contact-video {
  margin-top: 0;
  max-width: 100%;
}

.contact-cta {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(11, 99, 255, 0.08) 0%, rgba(11, 99, 255, 0.04) 100%);
  border: 1px solid rgba(11, 99, 255, 0.2);
  border-radius: 1.25rem;
  text-align: center;
}

.contact-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-cta__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-med);
  box-shadow: 0 4px 15px rgba(11, 99, 255, 0.3);
}

.contact-cta__button:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(11, 99, 255, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .contact-cta {
    padding: 2rem;
  }

  .contact-cta__title {
    font-size: 1.5rem;
  }
}

.contact-form__field {
  margin-bottom: 1rem;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.7rem 0.8rem;
  font: inherit;
  resize: vertical;
  min-height: 2.6rem;
  background-color: #f9fafb;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--color-primary-soft);
}

.contact-form__submit {
  width: 100%;
  margin-top: 0.3rem;
}

.contact-form__status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ================= FOOTER ================= */
.site-footer {
  padding: 2rem 0 2.4rem;
  background-color: #020617;
  color: rgba(209, 213, 219, 0.9);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.site-footer__tagline {
  color: rgba(156, 163, 175, 0.95);
}

/* ================= TAB NAVIGATION ================= */
.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.tab-toggle {
  display: flex;
  gap: 0.65rem;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.tab-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.tab-dot:hover,
.tab-dot:focus {
  outline: none;
  transform: scale(1.05);
}

.tab-dot--active {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 99, 255, 0.24);
}

.tab-button {
  display: none;
}

.tab-content {
  position: relative;
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.tab-pane--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.why-grid,
.where-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-media,
.where-media {
  text-align: center;
}

.why-media__image,
.where-media__image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-copy,
.where-copy {
  padding: 0 1rem;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.why-list__item {
  position: relative;
  padding: 0.75rem 0;
  padding-left: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.why-list__item:last-child {
  border-bottom: none;
}

.where-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.where-list__item {
  position: relative;
  padding: 0.75rem 0;
  padding-left: 2rem;
  font-size: 1rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.where-list__item:last-child {
  border-bottom: none;
}

.where-list__item::before {
  content: none;
}

@media (max-width: 768px) {

  .why-list__item,
  .where-list__item {
    padding: 0.9rem 0.8rem 0.9rem 2.4rem;
    font-size: 1.05rem;
  }

  .why-list__item::before,
  .where-list__item::before {
    content: none;
  }

  .why-grid,
  .where-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tab-navigation {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 280px;
  }
}

/* ================= REVEAL / SCROLL ANIMATIONS ================= */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease-out,
    transform 500ms ease-out;
}

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

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero__content {
    min-height: min(46rem, calc(100vh - var(--nav-height)));
  }

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

  .hero__visual {
    min-height: 36rem;
    max-width: 46rem;
    width: 100%;
    margin-inline: auto;
  }

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

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-layout,
  .contact-layout {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding-inline: 1rem;
    direction: ltr;
  }

  /* Default and English: logo on right, hamburger on left */
  .nav__brand {
    order: 1;
  }

  .nav__toggle {
    display: inline-flex;
    order: -1;
  }

  /* Hebrew: logo on left, hamburger on right */
  body.rtl .nav__brand {
    order: -1 !important;
  }

  body.rtl .nav__toggle {
    display: inline-flex !important;
    order: 1 !important;
  }

  .nav__links-wrapper {
    position: absolute;
    inset-inline: 0;
    top: var(--nav-height);
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.97),
        rgba(248, 250, 252, 0.98));
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    display: grid;
    grid-template-columns: 1fr;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-med),
      opacity var(--transition-med);
  }

  .nav__links-wrapper.is-open {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .topbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.4rem 0.35rem;
  }

  .nav-link {
    padding-block: 0.35rem;
  }

  /* Mobile: language selector inside nav menu */
  .language-selector {
    position: static !important;
    margin: 0.75rem 1.4rem;
    width: calc(100% - 2.8rem);
  }

  body.rtl .language-selector,
  body:not(.rtl) .language-selector {
    position: static !important;
    left: auto !important;
    right: auto !important;
  }

  .nav__cta {
    margin: 0.4rem 1.4rem 0.9rem;
    justify-self: flex-start;
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero__content {
    padding-block: 3.2rem 4.2rem;
    min-height: min(38rem, calc(100vh - var(--nav-height)));
  }

  .hero__title {
    font-size: clamp(2.05rem, 8vw, 2.5rem);
  }

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

@media (max-width: 480px) {
  #features .section__subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    padding-inline: 0.5rem;
  }

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

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= RESPONSIVE SCALING ================= */
/* Desktop: larger logo, more spacing */
@media (min-width: 769px) {
  .nav {
    justify-content: flex-start;
  }

  .nav__links-wrapper {
    justify-content: flex-start;
    flex: 1;
    margin-left: 2rem;
  }

  .nav__brand {
    position: static;
  }

  body.rtl .nav__links-wrapper {
    margin-left: 0;
    margin-right: 2rem;
  }

  /* English layout: logo on left, nav after it (to the right) */
  body:not(.rtl) .language-selector {
    margin-left: auto;
  }

  /* RTL layout (Hebrew): logo on far right, nav after it (to the left) */
  body.rtl .nav {
    direction: rtl;
  }

  body.rtl .nav__links-wrapper {
    justify-content: flex-start;
  }

  body.rtl .topbar-nav {
    direction: rtl;
  }

  body.rtl .language-selector {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  :root {
    --nav-height: 4.2rem;
    /* modest increase on very large screens */
  }

  .nav {
    height: var(--nav-height);
  }

  .nav__logo {
    width: 95px;
    /* slightly larger on wide screens */
  }

  .nav__links-wrapper {
    gap: 2rem;
  }

  .topbar-nav {
    gap: 2.5rem;
  }

  .nav-link {
    font-size: 1.04rem;
    padding: 10px 6px;
  }
}

/* Tablet: moderate scaling */
@media (max-width: 1024px) and (min-width: 769px) {
  :root {
    --nav-height: 4.8rem;
  }

  .nav {
    height: var(--nav-height);
    justify-content: center;
  }

  .nav__logo {
    width: 95px;
  }

  .topbar-nav {
    gap: 2.25rem;
  }

  .nav__links-wrapper {
    gap: 2rem;
    justify-content: center;
  }

  .nav-link {
    font-size: 1.02rem;
    padding: 12px 6px;
  }
}

/* Mobile: compact sizes, stacked layout preserved */
@media (max-width: 768px) {
  .nav__logo {
    width: 65px;
  }

  .topbar-nav {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .nav__links-wrapper {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 8px 0;
  }
}