/* LastFit teaser — design tokens */
:root {
  --bg: #080A09;
  --surface: #121416;
  --surface-elevated: #191C20;
  --border: #292D31;
  --border-subtle: #1C1F22;
  --border-hover: #3A3F44;
  --text: #F7F8F7;
  --text-secondary: #94989A;
  --text-muted: #666B6E;
  --green: #BFFF2E;
  --error: #F0867A;
  --header-h: 72px;
  --ease-in: cubic-bezier(.2,.7,.2,1);
  --ease-sweep: cubic-bezier(.55,0,.45,1);
  --font: 'Space Grotesk', 'Cairo', system-ui, sans-serif;
  --font-latin: 'Space Grotesk', system-ui, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  min-height: 100vh;
}
a { color: var(--text); text-decoration: none; }
input, textarea, button { font: inherit; }
::placeholder { color: var(--text-muted); opacity: 1; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
  width: 100%;
}
.accent { color: var(--green); }

/* Focus rings */
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.nav__link:focus-visible, .footer__link:focus-visible { outline-offset: 4px; border-radius: 4px; }
.logo-link:focus-visible { outline-offset: 4px; }
.btn--primary:focus-visible { outline-color: var(--text); }
.lang__btn:focus-visible, .pill:focus-visible, .checkbox:focus-visible, .menu-btn:focus-visible { outline-offset: 2px; }

/* Keyframes */
@keyframes lfRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lfBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes lfSweep { from { left: -180px; } to { left: 100%; } }
@keyframes lfSweepRtl { from { right: -180px; } to { right: 100%; } }
@keyframes lfSpin { to { transform: rotate(360deg); } }

/* Typography roles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.15; font-weight: 700; }
.section__body { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  border: 1px solid transparent;
  transition: filter .2s, transform .15s, border-color .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--bg); font-weight: 600; }
.btn--primary:hover { filter: brightness(1.07); color: var(--bg); }
.btn--secondary { background: transparent; border-color: var(--border); color: var(--text); font-weight: 500; }
.btn--secondary:hover { border-color: var(--text-secondary); background: var(--surface); color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; }
.header__skin {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.is-scrolled .header__skin,
.header.is-open .header__skin { background: rgba(8,10,9,.82); }
.header.is-scrolled .header__skin {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: flex; align-items: center; border-radius: 6px; }
.logo { width: auto; }
.logo--header { height: 26px; }
.logo--footer { height: 20px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__link { color: var(--text-secondary); padding: 6px 2px; border-radius: 4px; transition: color .2s; }
.nav__link:hover { color: var(--text); }
.header__cluster { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang__btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary);
  transition: background .2s, color .2s;
}
.lang__btn[aria-pressed="true"] { background: var(--green); color: var(--bg); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-btn__bars { display: flex; flex-direction: column; gap: 5px; }
.menu-btn__bars span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.menu-btn__x { display: none; font-size: 18px; line-height: 1; }
.header.is-open .menu-btn__bars { display: none; }
.header.is-open .menu-btn__x { display: block; }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}
.mobile-menu__link {
  font-size: 32px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu__link:focus-visible { outline-offset: 4px; }
.mobile-menu__cta { margin-top: 24px; width: 100%; padding: 0 24px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(820px, calc(100svh - var(--header-h)));
  display: grid;
  align-content: center;
  padding: 64px 0 96px;
}
.hero__mark {
  position: absolute;
  top: 50%;
  inset-inline-end: -8vw;
  width: 46vw;
  max-width: 760px;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
}
.hero__mark-img { width: 100%; height: auto; animation: lfBreathe 10s ease-in-out infinite; }
.hero__mark-mobile { display: none; width: 132px; height: auto; margin-bottom: 8px; animation: lfBreathe 10s ease-in-out infinite; }
.hero__container { position: relative; }
.hero__content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero__eyebrow { animation: lfRise .8s var(--ease-in) both; }
.hero__title {
  font-size: clamp(40px, 6.2vw, 86px);
  line-height: 1.1;
  font-weight: 700;
  animation: lfRise .8s .1s var(--ease-in) both;
}
.hero__body {
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  animation: lfRise .8s .2s var(--ease-in) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  animation: lfRise .8s .3s var(--ease-in) both;
}

/* Sections */
.section {
  border-top: 1px solid var(--border-subtle);
  padding: clamp(80px, 10vw, 128px) 0;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-in), transform .7s var(--ease-in);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 64px;
  align-items: end;
}
.about__head { display: flex; flex-direction: column; gap: 16px; }
.about__body { max-width: 520px; }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  transition: border-color .25s;
}
.card:hover { border-color: var(--border-hover); }
.card__num {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--green);
}
.card__title { font-size: 22px; line-height: 1.3; font-weight: 600; }
.card__body { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* Teaser */
.teaser { overflow: hidden; }
.teaser__statement {
  margin: 0 auto;
  text-align: center;
  max-width: 860px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.2;
  font-weight: 700;
}
.teaser__track {
  position: relative;
  height: 1px;
  background: var(--border);
  margin-top: clamp(40px, 6vw, 72px);
}
.teaser__sweep {
  position: absolute;
  top: -1px;
  height: 3px;
  width: 180px;
  border-radius: 2px;
  background: var(--green);
  animation: lfSweep 4.5s var(--ease-sweep) infinite;
}
[dir="rtl"] .teaser__sweep { animation-name: lfSweepRtl; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px 64px;
  align-items: start;
}
.contact__intro { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 36px);
}
.form { display: flex; flex-direction: column; gap: 20px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--radio { gap: 10px; }
.label { font-size: 14px; font-weight: 500; }
.label__opt { color: var(--text-secondary); font-weight: 400; }
.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  unicode-bidi: plaintext;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(191,255,46,.16); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input--textarea { resize: vertical; min-height: 112px; }
.error { font-size: 13px; line-height: 1.5; color: var(--error); }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--error);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.alert__icon {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--error);
  color: var(--error);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--text-secondary); }
.pill__mark { display: none; }
.pill[aria-checked="true"] { background: var(--green); border-color: var(--green); color: var(--bg); font-weight: 600; }
.pill[aria-checked="true"] .pill__mark { display: inline; }

.consent { display: flex; gap: 12px; align-items: flex-start; }
.checkbox {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text-secondary);
  background: var(--bg);
  color: var(--bg);
  transition: background .2s, border-color .2s;
}
.checkbox__mark { display: none; font-size: 14px; font-weight: 700; line-height: 1; }
.checkbox[aria-checked="true"] { background: var(--green); border-color: var(--green); }
.checkbox[aria-checked="true"] .checkbox__mark { display: inline; }
.checkbox.is-invalid { border-color: var(--error); }
.consent__label { font-size: 14px; line-height: 1.55; color: var(--text-secondary); cursor: pointer; padding-top: 2px; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 4px; }
.btn--submit { padding: 0 28px; }
.btn--submit:disabled { opacity: .75; cursor: progress; transform: none; }
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(8,10,9,.3);
  border-top-color: var(--bg);
  animation: lfSpin .8s linear infinite;
}
.btn--submit__busy { display: none; }
.form.is-loading .spinner, .form.is-loading .btn--submit__busy { display: inline-block; }
.form.is-loading .btn--submit__idle { display: none; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--text-secondary); max-width: 320px; }

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 8px;
}
.success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.success__title { font-size: 26px; line-height: 1.25; font-weight: 700; }
.success__body { color: var(--text-secondary); font-size: 16px; max-width: 360px; }
#lf-reset { margin-top: 8px; }
#lf-reset:hover { background: var(--surface-elevated); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__row--meta { align-items: flex-start; gap: 12px 32px; }
.footer__nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.footer__link { color: var(--text-secondary); transition: color .2s; }
.footer__link:hover { color: var(--text); }
.footer__text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.footer__privacy { max-width: 560px; }

/* Mobile (< 760px) */
@media (max-width: 759.98px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero__mark { display: none; }
  .hero__mark-mobile { display: block; }
}
@media (min-width: 760px) {
  .mobile-menu { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
