@font-face {
  font-family: "Golos Text";
  src: url("/assets/golos-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  src: url("/assets/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: dark;
  --paper: #151617;
  --ink: #f8f6ef;
  --muted: #a9a8a3;
  --line: #353639;
  --width: min(1320px, 100% - clamp(28px, 8vw, 128px));
  --gap: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 "Golos Text", "Noto Sans Hebrew", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.site-header, .site-footer, .showcase { width: var(--width); margin-inline: auto; }

.site-header {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.105em;
}

.wordmark b { font-weight: 900; }
.wordmark i { width: 7px; height: 7px; border-radius: 50%; background: #ff7a2f; }

.languages {
  display: flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.languages a {
  min-width: 38px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.languages a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.languages a:hover:not([aria-current]) { background: #303135; color: var(--ink); }

.intro {
  padding-block: clamp(34px, 5vw, 72px) clamp(24px, 3.8vw, 51px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  align-items: end;
  gap: 24px 38px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

:lang(he) .intro h1 { letter-spacing: -.055em; }
.intro p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.45;
}

.product-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.product-row + .product-row { margin-top: var(--gap); }
.product-row-featured { grid-template-columns: minmax(0, 1fr); }

.product-card {
  --tone: #fb7930;
  --highlight: #ffb06f;
  --shade: #be4314;
  --surface-text: #1a1512;
  position: relative;
  isolation: isolate;
  grid-row: 1;
  min-width: 0;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(143deg, var(--highlight), var(--tone) 61%, var(--shade));
  color: var(--surface-text);
  border-radius: 20px;
}

[data-product="your-tongue"] { --tone: #adc6ff; --highlight: #d8e4ff; --shade: #658aea; }
[data-product="hr0110"] { --tone: #c6a2fa; --highlight: #e5cfff; --shade: #9562e6; }
[data-product="leadmachine"] { --tone: #66d5a6; --highlight: #acffd6; --shade: #399c79; }
[data-product="dev-0110"] { --tone: #e0e978; --highlight: #f2f8ad; --shade: #a3ad40; }

.product-copy {
  position: relative;
  z-index: 1;
  padding: clamp(21px, 3.4vw, 43px);
  padding-inline-end: clamp(74px, 7vw, 96px);
  pointer-events: none;
}

.product-copy h2 {
  margin: 9px 0 5px;
  font-size: clamp(2rem, 4.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}

.product-tag {
  margin: 0;
  font-size: .78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.product-line { margin: 8px 0 0; font-size: clamp(1rem, 1.5vw, 1.25rem); }

.product-art {
  position: relative;
  flex: 1;
  min-height: 215px;
  overflow: hidden;
  pointer-events: none;
  direction: ltr;
}

.product-art::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -14%;
  width: 87%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #ffffff75;
  box-shadow: 0 0 0 28px #ffffff1f, 0 0 0 55px #ffffff17, 0 0 0 82px #ffffff19;
}

.preview-frame {
  position: absolute;
  left: 7%;
  top: 7px;
  width: 88%;
  padding: 5px;
  background: #ffffff70;
  border: 1px solid #ffffff73;
  border-radius: 15px;
  transform: rotate(-3deg);
  transform-origin: 55% 45%;
  box-shadow: 0 12px 26px #14161f36, 0 33px 55px #14161f3e;
  transition: transform .34s ease;
}

.preview-frame img { display: block; width: 100%; height: auto; border-radius: 9px; background: #222; }
.product-card:has(.product-toggle:hover) .preview-frame { transform: rotate(-1deg) translateY(-5px); }

.product-toggle {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.product-toggle:focus-visible { outline-offset: -5px; outline-color: #171413; }
.toggle-icon {
  position: absolute;
  inset-block-start: clamp(21px, 3vw, 36px);
  inset-inline-end: clamp(19px, 3vw, 36px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1c1b1a;
  color: #faf8f2;
}

.toggle-icon::before, .toggle-icon::after { content: ""; position: absolute; width: 16px; height: 1.5px; background: currentColor; }
.toggle-icon::after { transform: rotate(90deg); }
.product-toggle[aria-expanded="true"] .toggle-icon::after { display: none; }

.product-row-featured .product-card {
  min-height: clamp(360px, 36vw, 510px);
  display: grid;
  grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
  align-items: stretch;
  border-radius: 24px;
}

.product-row-featured .product-copy {
  align-content: center;
  padding-inline-end: 5px;
  padding-inline-start: clamp(26px, 5.3vw, 76px);
}

.product-row-featured h2 { margin-block: 14px 12px; font-size: clamp(3rem, 7vw, 6.7rem); }
.product-row-featured .product-line { font-size: clamp(1.18rem, 2.35vw, 2.1rem); line-height: 1.18; letter-spacing: -.038em; font-weight: 550; }
.product-row-featured .product-art { position: static; overflow: visible; }
.product-row-featured .product-art::before { top: -26%; right: -4.5%; width: 53%; }
.product-row-featured .preview-frame { top: 9%; left: auto; inset-inline-end: -2%; width: 59%; transform: rotate(-5deg); }
.product-row-featured .product-card:has(.product-toggle:hover) .preview-frame { transform: rotate(-3deg) translateY(-4px); }
:root[dir="rtl"] .product-row-featured .preview-frame { right: auto; left: -2%; }

.product-details {
  position: relative;
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(24px, 4.2vw, 55px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #202122;
  scroll-margin-top: 16px;
}

.product-details figure { margin: 0; min-width: 0; }
.product-details img { display: block; width: 100%; height: auto; border-radius: 11px; background: #191919; }
.product-details figcaption { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.detail-copy { padding-inline-end: 20px; }
.detail-copy h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.75rem); letter-spacing: -.075em; line-height: 1.05; }
.detail-copy p { margin: 15px 0 22px; color: #d2d0ca; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.visit { display: inline-flex; gap: 14px; align-items: center; min-height: 48px; padding: 8px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 650; }
.visit:hover { background: #e2dccf; }
.detail-close { position: absolute; inset-block-start: 11px; inset-inline-end: 11px; width: 43px; height: 43px; border: 1px solid #5a5a59; border-radius: 50%; background: #202122; font-size: 24px; line-height: 1; cursor: pointer; }
.detail-close:hover { background: #313234; }

.card-fallback { position: absolute; z-index: 3; bottom: 15px; inset-inline-start: 18px; padding: 8px 14px; border-radius: 999px; background: #191919; color: #fff; }
.site-footer { padding-block: 28px 34px; color: var(--muted); font-size: 14px; }
.site-footer a:hover { color: var(--ink); }

@media (min-width: 768px) and (max-width: 1000px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-card { min-height: 370px; }
  .product-row-featured .preview-frame { top: 15%; }
}

@media (max-width: 767px) {
  :root { --gap: 12px; }
  .site-header { height: 62px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .product-row, .product-row-featured { grid-template-columns: minmax(0, 1fr); }
  .product-card, .product-details { grid-row: auto; }
  .product-card { min-height: clamp(310px, 78vw, 440px); border-radius: 16px; }
  .product-row-featured .product-card { display: flex; min-height: clamp(350px, 91vw, 490px); border-radius: 18px; }
  .product-row-featured .product-copy { padding-inline-end: 74px; }
  .product-row-featured h2 { margin-block: 8px; font-size: clamp(2.75rem, 10vw, 4.75rem); }
  .product-row-featured .product-art { position: relative; overflow: hidden; }
  .product-row-featured .product-art::before { top: -10%; right: -12%; width: 87%; }
  .product-row-featured .preview-frame, :root[dir="rtl"] .product-row-featured .preview-frame { width: 91%; left: 6%; right: auto; top: 8px; }
  .toggle-icon { width: 44px; height: 44px; }
  .product-details { grid-template-columns: minmax(0, 1fr); padding-block-start: 58px; gap: 23px; }
  .detail-copy { padding-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .preview-frame { transition: none; }
}
