:root {
  --bg: #f3f4f7;
  --card-bg: #f1f1f2;
  --text: #333740;
  --primary: #6363ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

.page {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.5vh, 24px) clamp(10px, 2.5vw, 24px);
}

.card {
  width: min(1080px, 100%);
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(35, 40, 70, 0.08);
  padding: clamp(18px, 3vw, 30px) clamp(18px, 3.6vw, 36px);
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 470px);
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

.header-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.countdown-space {
  height: clamp(6px, 1.6vh, 12px);
}

.notify-form {
  margin-top: clamp(4px, 1.5vh, 10px);
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 16px;
  align-items: center;
}

.notify-text {
  color: #8f9098;
  font-size: 1.05rem;
}

.input-wrap {
  display: grid;
  grid-template-columns: 1fr 52px;
  width: 100%;
}

.input-wrap input {
  border: 1px solid #d7d8df;
  border-right: none;
  border-radius: 2px 0 0 2px;
  background: #f3f3f5;
  padding: 0 12px;
  height: 36px;
  font-size: 0.92rem;
  outline: none;
}

.input-wrap input:focus {
  border-color: #bbbccd;
}

.input-wrap button {
  border: none;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.right {
  min-height: 200px;
  display: grid;
  place-items: center;
}

.hero-image {
  display: block;
  width: min(100%, 460px);
  height: auto;
  object-fit: contain;
}

.legal-block {
  margin-top: 0;
  color: #8f9098;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 95%;
}

.legal-block p {
  margin: 0 0 6px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: #6c6ddd;
  text-decoration: none;
}

.legal-block a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .left {
    order: 1;
  }

  .right {
    order: 2;
    min-height: 170px;
  }

  .countdown-space {
    height: 12px;
  }

  .notify-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 580px) {
  .card {
    border-radius: 10px;
    padding: 14px 12px;
  }

  .header-logo {
    width: min(310px, 92%);
  }

  .notify-text {
    font-size: 0.98rem;
  }

  .legal-block {
    font-size: 0.84rem;
    line-height: 1.5;
  }
}

@media (max-height: 760px) {
  .countdown-space {
    height: 6px;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .right {
    display: none;
  }

  .legal-block {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}
