:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.008 150);
  --surface-strong: oklch(0.925 0.022 150);
  --ink: oklch(0.17 0.025 150);
  --muted: oklch(0.42 0.026 150);
  --line: oklch(0.86 0.015 150);
  --primary: oklch(0.4 0.106 150);
  --primary-deep: oklch(0.255 0.074 150);
  --primary-soft: oklch(0.78 0.1 150);
  --accent: oklch(0.56 0.19 257);
  --accent-deep: oklch(0.33 0.16 257);
  --signal: oklch(0.84 0.15 88);
  --white: oklch(1 0 0);
  --focus: oklch(0.66 0.2 257);
  --font: "Alexandria", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --max-width: 1440px;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5.5rem, 10vw, 10rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-family: var(--font);
}

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

a {
  color: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--accent-deep);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in oklch, var(--line) 74%, transparent);
  background: color-mix(in oklch, var(--white) 94%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.section-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.header-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-word {
  display: grid;
  gap: 0.02rem;
  line-height: 1.1;
}

.brand-word strong {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-word span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.main-nav a {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.language-button.is-active {
  color: var(--white);
  background: var(--primary);
}

.hero {
  width: min(100%, var(--max-width));
  min-height: min(820px, calc(100svh - 5.25rem));
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 5rem) var(--page-gutter) clamp(3rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.hero-copy {
  max-width: 44rem;
  animation: hero-enter 800ms var(--ease-out) both;
}

.hero-brand-name {
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-brand-name span + span {
  padding-inline-start: 0.9rem;
  border-inline-start: 1px solid var(--line);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.15rem, 6.6vw, 5.9rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

html[dir="rtl"] .hero h1 {
  max-width: 13ch;
  font-size: clamp(3.05rem, 6vw, 5.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.26rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.button {
  min-height: 3.3rem;
  padding: 0.78rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 220ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button-primary {
  color: var(--white);
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.hero-stage {
  position: relative;
  min-height: clamp(34rem, 54vw, 46rem);
  overflow: hidden;
  border-radius: 16px;
  color: var(--white);
  background: var(--primary-deep);
  isolation: isolate;
  animation: stage-enter 900ms 80ms var(--ease-out) both;
}

.hero-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 900ms var(--ease-out);
}

.hero-stage:hover .hero-product {
  transform: scale(1.025);
}

.stage-coordinate {
  position: absolute;
  z-index: 3;
  color: color-mix(in oklch, var(--white) 68%, transparent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.stage-coordinate-top {
  top: 1.3rem;
  left: 1.4rem;
  padding: 0.35rem 0.5rem;
  color: var(--white);
  background: var(--primary-deep);
}

.stage-coordinate-bottom {
  right: 1.4rem;
  bottom: 1.35rem;
  letter-spacing: 0;
}

.stage-caption {
  position: absolute;
  z-index: 3;
  bottom: 1.3rem;
  left: 1.4rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  background: var(--primary-deep);
}

.stage-caption span {
  color: color-mix(in oklch, var(--white) 68%, transparent);
  font-size: 0.72rem;
}

.stage-caption strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
}

.identity-strip {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.identity-strip > div {
  min-height: 7.5rem;
  padding: 1.55rem clamp(1rem, 2.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.identity-strip > div + div {
  border-inline-start: 1px solid var(--line);
}

.identity-strip span {
  color: var(--muted);
  font-size: 0.72rem;
}

.identity-strip strong,
.identity-strip a {
  font-size: clamp(0.88rem, 1.4vw, 1.06rem);
  font-weight: 600;
  text-decoration: none;
}

.intro-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  display: grid;
  grid-template-columns: 0.36fr 1.22fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
}

.section-index {
  margin: 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.intro-heading h2,
.section-title-row h2,
.approach-lead h2,
.identity-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[dir="rtl"] .intro-heading h2,
html[dir="rtl"] .section-title-row h2,
html[dir="rtl"] .approach-lead h2,
html[dir="rtl"] .identity-heading h2 {
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.intro-copy p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.products-section {
  padding-bottom: var(--section-space);
}

.section-title-row {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  align-items: end;
  gap: 2rem;
}

.section-title-row h2 {
  max-width: 14ch;
}

.section-title-row > p {
  max-width: 28rem;
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.product-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.product-tile-feature {
  grid-column: span 7;
  grid-row: span 2;
}

.product-tile-scale {
  grid-column: span 5;
}

.product-tile-doorbell,
.product-tile-sensors {
  grid-column: span 5;
}

.product-tile-case {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.product-visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.product-tile-feature .product-visual {
  min-height: 38rem;
}

.product-tile-case .product-visual {
  min-height: 27rem;
}

.product-visual-dark {
  background: var(--primary-deep);
}

.product-visual-blue {
  background: var(--accent-deep);
}

.product-visual-yellow {
  background: var(--signal);
}

.product-visual img {
  width: min(82%, 35rem);
  max-height: 31rem;
  object-fit: contain;
  transition: transform 650ms var(--ease-out);
}

.product-tile:hover .product-visual img {
  transform: scale(1.035) translateY(-4px);
}

.product-code {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  color: color-mix(in oklch, var(--ink) 66%, transparent);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-visual-dark .product-code,
.product-visual-blue .product-code {
  color: color-mix(in oklch, var(--white) 70%, transparent);
}

.product-details {
  padding: clamp(1.35rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
}

.product-details > div {
  display: grid;
  gap: 0.25rem;
}

.product-details p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.product-details > div p {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
}

.product-details h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.product-details > a {
  width: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.product-details > a span:last-child {
  transition: transform 200ms var(--ease-out);
}

.product-details > a:hover span:last-child {
  transform: translate(2px, -2px);
}

html[dir="rtl"] .product-code {
  right: 1rem;
  left: auto;
}

.approach-section {
  color: var(--white);
  background: var(--primary-deep);
}

.approach-inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(4rem, 10vw, 10rem);
}

.approach-lead img {
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.approach-lead h2 {
  max-width: 10ch;
}

.approach-lead > p {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: color-mix(in oklch, var(--white) 68%, transparent);
  font-size: 1rem;
  line-height: 1.85;
}

.principles {
  align-self: end;
}

.principles article {
  padding: 1.65rem 0 1.8rem;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 1rem;
  border-top: 1px solid color-mix(in oklch, var(--white) 22%, transparent);
}

.principles article:last-child {
  border-bottom: 1px solid color-mix(in oklch, var(--white) 22%, transparent);
}

.principles h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.principles p {
  margin: 0;
  color: color-mix(in oklch, var(--white) 66%, transparent);
  font-size: 0.82rem;
  line-height: 1.7;
}

.identity-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.identity-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 2rem;
}

.identity-heading > p {
  margin: 0.6rem 0 0;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 600;
}

.identity-heading h2 {
  max-width: 13ch;
}

.identity-content {
  margin-top: clamp(3rem, 7vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.logo-panel {
  min-height: 28rem;
  padding: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  background: var(--surface);
}

.logo-panel > img {
  width: min(100%, 46rem);
  margin-block: auto;
}

.logo-panel-copy {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.8;
}

.contact-panel {
  padding: clamp(2rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  color: var(--white);
  background: var(--accent-deep);
}

.contact-panel dl {
  margin: 0;
}

.contact-panel dl > div {
  padding: 1.35rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--white) 24%, transparent);
}

.contact-panel dl > div:first-child {
  border-top: 1px solid color-mix(in oklch, var(--white) 24%, transparent);
}

.contact-panel dt {
  color: color-mix(in oklch, var(--white) 64%, transparent);
  font-size: 0.68rem;
}

.contact-panel dd {
  margin: 0.35rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
}

.contact-panel dd a {
  text-underline-offset: 0.3rem;
}

.button-light {
  width: fit-content;
  color: var(--accent-deep);
  background: var(--white);
}

.site-footer {
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  min-height: 14rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.brand-lockup-footer {
  color: var(--white);
}

.brand-lockup-footer .brand-word span {
  color: color-mix(in oklch, var(--white) 60%, transparent);
}

.footer-meta {
  display: grid;
  gap: 0.5rem;
  text-align: end;
}

.footer-meta a {
  font-size: 0.84rem;
  font-weight: 500;
  text-underline-offset: 0.25rem;
}

.footer-meta p {
  margin: 0;
  color: color-mix(in oklch, var(--white) 58%, transparent);
  font-size: 0.7rem;
}

html[dir="rtl"] .main-nav a::after {
  transform-origin: left;
}

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

html[dir="rtl"] .button svg,
html[dir="rtl"] .product-details > a span:last-child {
  transform: scaleX(-1);
}

html[dir="rtl"] .footer-meta {
  text-align: start;
}

@keyframes hero-enter {
  from {
    transform: translateY(1.25rem);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes stage-enter {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 4.7rem);
  }

  .hero-stage {
    min-height: 36rem;
  }

  .product-tile-feature {
    grid-column: span 7;
  }

  .product-tile-scale,
  .product-tile-doorbell,
  .product-tile-sensors {
    grid-column: span 5;
  }

  .principles article {
    grid-template-columns: 1fr;
  }

  .principles p {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero-stage {
    min-height: min(118vw, 42rem);
  }

  .identity-strip {
    grid-template-columns: 1fr;
  }

  .identity-strip > div {
    min-height: 5.5rem;
  }

  .identity-strip > div + div {
    border-top: 0;
    border-inline-start: 0;
  }

  .intro-section {
    grid-template-columns: 0.28fr 1fr;
  }

  .intro-copy {
    grid-column: 2;
  }

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

  .section-title-row > p {
    justify-self: start;
  }

  .product-tile-feature,
  .product-tile-scale,
  .product-tile-doorbell,
  .product-tile-sensors {
    grid-column: 1 / -1;
  }

  .product-tile-feature .product-visual {
    min-height: 34rem;
  }

  .product-tile-case {
    grid-template-columns: 1fr;
  }

  .product-tile-case .product-visual {
    grid-row: 1;
  }

  .approach-inner {
    grid-template-columns: 1fr;
  }

  .approach-lead h2 {
    max-width: 13ch;
  }

  .approach-lead img {
    margin-bottom: 4rem;
  }

  .identity-heading {
    grid-template-columns: 1fr;
  }

  .identity-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 1rem;
  }

  .header-inner {
    min-height: 4.7rem;
    gap: 1rem;
  }

  .brand-word span {
    display: none;
  }

  .brand-lockup img {
    width: 36px;
    height: 36px;
  }

  .language-button {
    padding-inline: 0.58rem;
  }

  .hero {
    padding-top: 2.75rem;
    gap: 2.75rem;
  }

  .hero-brand-name {
    margin-bottom: 2rem;
  }

  .hero h1,
  html[dir="rtl"] .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .hero-intro {
    margin-top: 1.5rem;
  }

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

  .hero-stage {
    min-height: 29rem;
  }

  .hero-product {
    object-position: 52% center;
  }

  .stage-caption {
    max-width: 50%;
  }

  .intro-section {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    grid-column: auto;
  }

  .product-mosaic {
    gap: 0.8rem;
  }

  .product-visual,
  .product-tile-feature .product-visual,
  .product-tile-case .product-visual {
    min-height: 24rem;
  }

  .approach-lead h2 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .principles article {
    grid-template-columns: 1fr;
  }

  .logo-panel {
    min-height: 23rem;
    padding: 2rem 1.25rem;
  }

  .contact-panel {
    padding: 2rem 1.25rem;
  }

  .footer-inner {
    min-height: 17rem;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
  }

  .footer-meta {
    text-align: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
