@font-face {
  font-family: "PingHL";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.emess.co.il/fonts/PingHL-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "PingHL";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://www.emess.co.il/fonts/PingHL-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "PingHL";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://www.emess.co.il/fonts/PingHL-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "PingHL";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://www.emess.co.il/fonts/PingHL-Heavy.woff2") format("woff2");
}

:root {
  --ink: #ffffff;
  --cyan: #72d7f2;
  --gold: #ffc018;
  --gold-deep: #f2a400;
  --card-red: #d71924;
  --card-wine: #2b1029;
  --input: #e8b9bd;
  --input-dark: #c8b7b9;
  --page-bg: #081022;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "PingHL", sans-serif;
}

button,
input {
  font: inherit;
}

.landing {
  min-height: 100vh;
  overflow-x: hidden;
}

.stage {
  position: relative;
  min-height: max(100vh, calc(100vw * 984 / 1600));
  background-color: var(--page-bg);
  background-image: url("assets/backgrounds/hero-desktop.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.stage::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: clamp(115px, 10vw, 160px);
  background: linear-gradient(180deg, #030406 0 70%, rgba(3, 4, 6, 0.94) 84%, rgba(3, 4, 6, 0) 100%);
  content: "";
  pointer-events: none;
}

.brand-strip {
  position: absolute;
  z-index: 2;
  top: calc(100vw * 66 / 1600);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(38px, 4.7vw, 76px);
  transform: translateX(-50%);
  direction: ltr;
}

.brand-strip img {
  display: block;
  width: auto;
  height: clamp(38px, 3.2vw, 52px);
  object-fit: contain;
}

.brand-strip img[alt="אמס"] {
  height: clamp(34px, 2.9vw, 48px);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.headline {
  position: absolute;
  top: calc(100vw * 215 / 1600);
  width: min(32vw, 460px);
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3.3vw, 55px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
}

.headline span {
  display: block;
  color: var(--cyan);
}

.headline-right {
  right: 8.7vw;
  font-size: clamp(38px, 3.7vw, 62px);
  text-align: right;
}

.headline-left {
  left: 8.9vw;
  font-weight: 700;
  text-align: left;
}

.intro-copy {
  position: absolute;
  z-index: 2;
  top: calc(100vw * 552 / 1600);
  left: 50%;
  width: min(820px, 68vw);
  margin: 0;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 500;
  line-height: 1.22;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.intro-copy strong {
  color: var(--gold);
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.signup-card {
  position: absolute;
  top: calc(100vw * 704 / 1600);
  left: 50%;
  width: min(calc(100vw * 1076 / 1600), 1080px);
  min-height: calc(100vw * 176 / 1600);
  padding: clamp(22px, 1.55vw, 28px) clamp(38px, 4.8vw, 78px)
    clamp(26px, 1.95vw, 36px);
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(224, 21, 32, 0.98) 0%, rgba(121, 17, 38, 0.96) 48%, rgba(35, 12, 39, 0.98) 100%);
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.14),
    0 24px 40px rgba(0, 0, 0, 0.24);
}

.signup-card::after {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: clamp(190px, 24vw, 390px);
  aspect-ratio: 555 / 243;
  background: url("assets/images/light.webp") center / contain no-repeat;
  content: "";
  pointer-events: none;
  transform: translate(-50%, 50%);
}

.signup-card > * {
  position: relative;
  z-index: 2;
}

.signup-card h2 {
  margin: 0 0 clamp(12px, 1.45vw, 22px);
  color: var(--ink);
  font-size: clamp(24px, 2.35vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.fields {
  display: grid;
  grid-template-columns: 2fr 0.58fr 1.12fr 1.1fr 1.12fr 1.1fr;
  gap: clamp(8px, 0.75vw, 13px);
  align-items: end;
}

.field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.field span:first-child {
  padding-inline-end: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(11px, 1.04vw, 16px);
  font-weight: 400;
  line-height: 1;
}

.field input,
.file-control {
  width: 100%;
  height: clamp(32px, 2.45vw, 40px);
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--input) 0%, var(--input-dark) 100%);
  color: #2f2530;
  outline: none;
  padding: 0 16px;
  font-weight: 500;
  line-height: clamp(32px, 2.45vw, 40px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.field input::placeholder {
  color: transparent;
}

.field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.file-input:focus + .file-control {
  box-shadow:
    0 0 0 3px rgba(255, 192, 24, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-control {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.submit-button {
  height: clamp(36px, 2.7vw, 42px);
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold) 0%, #ffbc13 58%, var(--gold-deep) 100%);
  color: #22170b;
  cursor: pointer;
  font-size: clamp(16px, 1.28vw, 19px);
  font-weight: 900;
  line-height: 1;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.submit-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  filter: saturate(0.7);
}

.form-message {
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 90%;
  margin: 0;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.form-message.error {
  color: #ffd1d1;
}

.form-message.success {
  color: #ffe08a;
}

@media (max-width: 760px) {
  .stage {
    min-height: max(100vh, calc(100vw * 1700 / 673));
    background-image: url("assets/backgrounds/hero-mobile.webp");
    background-size: 100% auto;
  }

  .stage::before {
    height: calc(100vw * 142 / 673);
    background: linear-gradient(180deg, #091023 0 72%, rgba(9, 16, 35, 0.96) 86%, rgba(9, 16, 35, 0) 100%);
  }

  .brand-strip {
    top: calc(100vw * 67 / 673);
    gap: clamp(26px, 8vw, 56px);
  }

  .brand-strip img {
    height: clamp(29px, 5.2vw, 44px);
  }

  .brand-strip img[alt="אמס"] {
    height: clamp(27px, 5vw, 42px);
  }

  .hero-copy {
    inset: auto;
    top: calc(100vw * 128 / 673);
    left: 50%;
    width: 94vw;
    height: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  .headline {
    position: static;
    width: 100%;
    font-size: clamp(27px, 7.35vw, 50px);
    font-weight: 900;
    line-height: 0.98;
    text-align: center;
  }

  .headline-left {
    margin-top: clamp(18px, 5vw, 34px);
    color: var(--ink);
    font-weight: 700;
  }

  .headline-left span {
    display: inline;
    color: var(--ink);
  }

  .intro-copy {
    top: calc(100vw * 826 / 673);
    width: 82vw;
    font-size: clamp(19px, 4.55vw, 31px);
    line-height: 1.24;
  }

  .signup-card {
    top: calc(100vw * 1058 / 673);
    width: calc(100vw * 462 / 673);
    min-height: auto;
    padding: clamp(20px, 4.1vw, 32px) clamp(22px, 9vw, 46px)
      clamp(22px, 5.3vw, 38px);
    border-radius: clamp(42px, 12vw, 72px);
  }

  .signup-card h2 {
    margin-bottom: clamp(12px, 3.2vw, 24px);
    font-size: clamp(20px, 5.2vw, 36px);
    line-height: 1.05;
  }

  .fields {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2.25vw, 16px);
  }

  .field {
    width: 100%;
  }

  .field span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .field input,
  .file-control {
    height: clamp(32px, 8.15vw, 62px);
    border-radius: clamp(10px, 2.5vw, 18px);
    padding: 0 clamp(18px, 4.8vw, 30px);
    font-size: clamp(14px, 4vw, 28px);
    line-height: clamp(32px, 8.15vw, 62px);
    text-align: right;
  }

  .field input::placeholder {
    color: #2f2530;
    opacity: 1;
  }

  .submit-button {
    width: 100%;
    height: clamp(36px, 8.6vw, 66px);
    margin-top: clamp(2px, 0.9vw, 8px);
    border-radius: clamp(10px, 2.5vw, 18px);
    font-size: clamp(20px, 5.2vw, 34px);
  }

  .form-message {
    bottom: -34px;
    font-size: clamp(13px, 3.2vw, 17px);
  }
}
