@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F1F1F1;
  font-family: 'Google Sans', sans-serif;
  font-optical-sizing: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

a { text-decoration: none; color: inherit; }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  max-width: 1895px;
  aspect-ratio: 1895 / 988;
  /* Keep the nice card proportion, but never let it get so short that the
     content collides with the footer — grow taller when the viewport forces it. */
  min-height: min(988px, calc(100vh - 40px));
  background: url('assets/gradient-bg.png') no-repeat center / cover;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Extra bottom padding reserves space for the absolute footer nav. */
  padding: 6% 5% clamp(96px, 12%, 160px);
}

/* ── Gradient Animation Overlays ── */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero::before {
  width: 65%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(61, 183, 238, 0.35), transparent 65%);
  bottom: -30%;
  left: 0%;
  animation: drift1 18s ease-in-out infinite;
}

.hero::after {
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(26, 96, 128, 0.28), transparent 65%);
  bottom: -20%;
  right: 2%;
  animation: drift2 22s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(6%, -4%) scale(1.05); }
  50%      { transform: translate(-4%, 3%) scale(0.95); }
  75%      { transform: translate(3%, -2%) scale(1.03); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-5%, 4%) scale(1.06); }
  66%      { transform: translate(4%, -3%) scale(0.94); }
}

/* ── Logo ── */
.logo {
  position: absolute;
  top: 34px;
  left: 67px;
  z-index: 10;
  display: block;
  transition: opacity .2s;
}
.logo:hover { opacity: .6; }
.logo svg { display: block; }

/* ── Hero Content ── */
.hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 36px);
  width: min(100%, 1000px);
}

.hero__title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 6.2vw, 100px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #132532;
  text-align: center;
}

.hero__subtitle {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 2.1vw, 34px);
  line-height: 1.6;
  letter-spacing: 0;
  color: #132532;
  text-align: center;
  width: 100%;
}

/* ── Waitlist Form (Liquid Glass) ── */
.waitlist {
  position: relative;
  display: flex;
  align-items: center;
  width: 704px;
  height: 88px;
  padding: 10px 10px 10px 50px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.10) 100%
  );
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  backdrop-filter: blur(8px) brightness(1.06) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) brightness(1.06) saturate(1.15);
  box-shadow:
    inset 0 0.5px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -0.5px 0 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.04);
}

.waitlist__input {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0;
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
}
.waitlist__input::placeholder {
  color: rgba(255, 255, 255, .55);
  letter-spacing: 0;
}

.waitlist__btn {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #112433;
  letter-spacing: 0;
  white-space: nowrap;
  background: #fff;
  border: none;
  border-radius: 100px;
  width: 270px;
  height: 68px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s;
}
.waitlist__btn:hover { background: #f0f0f0; }

/* ── Footer Nav (bottom) ── */
.footer-nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 60px;
}
.footer-nav__link {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0;
  white-space: nowrap;
  transition: opacity .2s;
}
.footer-nav__link:hover { opacity: .6; }

/* ══════════════════════════════
   Responsive
   ══════════════════════════════ */

/* Laptops — just trim the form to fit narrower cards (type scales via clamp). */
@media (max-width: 1280px) {
  .waitlist       { width: 100%; max-width: 560px; }
  .waitlist__btn  { width: 220px; }
  .logo           { top: 28px; left: 48px; }
  .logo svg       { width: 40px; height: 40px; }
  .footer-nav     { bottom: 28px; gap: 48px; }
}

/* Tablet — fill the viewport, lighten radius/padding. */
@media (max-width: 1024px) {
  body            { padding: 12px; }
  .hero {
    aspect-ratio: auto;
    border-radius: 24px;
    background-position: center bottom;
    padding: 96px 6% 88px;
  }
  .hero__content  { width: 86%; }
  .waitlist       { max-width: 520px; }
  .waitlist__btn  { width: 200px; }
  .logo           { top: 24px; left: 32px; }
  .logo svg       { width: 36px; height: 36px; }
  .footer-nav     { bottom: 24px; gap: 40px; }
}

/* Tablet portrait — stack the form into pill input + full-width button. */
@media (max-width: 768px) {
  body            { padding: 8px; }
  .hero {
    border-radius: 20px;
    padding: 84px 24px 76px;
  }
  .hero__content  { width: 100%; }
  .hero__title br { display: none; }
  .hero__subtitle br { display: none; }
  .waitlist {
    flex-direction: column;
    padding: 0;
    gap: 12px;
    height: auto;
    width: 100%;
    max-width: 320px;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
  }
  .waitlist__input {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .waitlist__btn {
    width: 100%;
    height: 54px;
    font-size: 15px;
    border-radius: 60px;
  }
  .logo           { top: 20px; left: 24px; }
  .logo svg       { width: 32px; height: 32px; }
  .footer-nav     { bottom: 20px; gap: 28px; }
  .footer-nav__link { font-size: 10px; }
}

/* Mobile */
@media (max-width: 480px) {
  body            { padding: 0; }
  .hero {
    border-radius: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 72px 24px 64px;
    box-shadow: none;
  }
  .hero__content  { gap: 20px; }
  .hero__title    { font-size: 34px; line-height: 42px; letter-spacing: -0.01em; }
  .hero__subtitle { font-size: 16px; }
  .waitlist       { max-width: 100%; }
  .waitlist__input { padding: 15px 20px; font-size: 13px; }
  .waitlist__btn  { height: 52px; font-size: 14px; }
  .logo           { top: 16px; left: 20px; }
  .logo svg       { width: 28px; height: 28px; }
  .footer-nav     { bottom: 16px; gap: 20px; }
  .footer-nav__link { font-size: 10px; }
}
