/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Source Sans 3", sans-serif;
  color: #010101;
  -webkit-font-smoothing: antialiased;
}

/* === Shell / Background === */
.gate-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 24px 88px;
  background: #f7f7f7;
}

.gate-shell::before,
.gate-shell::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(1px);
  pointer-events: none;
}

.gate-shell::before {
  top: 8%; left: -8%;
  width: min(32vw, 420px);
  height: min(32vw, 420px);
  border: 1px solid rgba(37, 244, 238, 0.42);
  box-shadow:
    0 0 34px rgba(37, 244, 238, 0.30),
    0 0 74px rgba(37, 244, 238, 0.18),
    0 0 0 22px rgba(37, 244, 238, 0.07),
    0 0 0 44px rgba(37, 244, 238, 0.04);
}

.gate-shell::after {
  right: -10%; bottom: 10%;
  width: min(28vw, 360px);
  height: min(28vw, 360px);
  border: 1px solid rgba(254, 44, 85, 0.38);
  box-shadow:
    0 0 34px rgba(254, 44, 85, 0.28),
    0 0 74px rgba(254, 44, 85, 0.16),
    0 0 0 18px rgba(254, 44, 85, 0.065),
    0 0 0 36px rgba(254, 44, 85, 0.04);
}

.gate-texture {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.72;
  background-image: radial-gradient(
    circle at 50% 48%,
    rgba(255,255,255,0.88),
    rgba(247,247,247,0.15) 50%,
    rgba(247,247,247,0.85)
  );
  pointer-events: none;
}

/* === Card === */
.gate-panel {
  position: relative;
  width: min(100%, 476px);
  margin: auto;
  padding: 57px 54px 44px;
  border: 1px solid rgba(1,1,1,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.93);
  box-shadow:
    0 24px 70px rgba(1,1,1,0.10),
    10px 12px 30px rgba(37,244,238,0.25),
    -10px 12px 30px rgba(254,44,85,0.20),
    0 0 0 1px rgba(255,255,255,0.72) inset;
  text-align: center;
  animation: panel-in 220ms cubic-bezier(0.23,1,0.32,1) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .gate-panel { animation: none; }
}

/* === Typography === */
h1 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.05rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.02;
  color: #010101;
}

.gate-copy {
  max-width: 37ch;
  margin: 17px auto 30px;
  color: #5e5e5e;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* === Form === */
.age-form {
  display: grid;
  gap: 21px;
  text-align: left;
}

.field-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #010101;
  font-size: 0.83rem;
  font-weight: 600;
}

.date-field {
  display: flex;
  height: 53px;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid #c8c8c8;
  border-radius: 9px;
  background: #fff;
  color: #010101;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.date-field:focus-within {
  border-color: #010101;
  box-shadow:
    4px 4px 0 rgba(37,244,238,0.42),
    -4px 4px 0 rgba(254,44,85,0.30);
}

.date-field.error { border-color: #fe2c55; }

.date-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #010101;
  font: inherit;
  font-size: 0.96rem;
  cursor: pointer;
}

.date-field input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
}

.field-note {
  margin: 8px 0 0;
  color: #7b7b7b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -5px 0 0;
  color: #fe2c55;
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-error__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: currentColor;
}

/* === Button === */
.continue-button {
  display: inline-flex;
  width: 100%;
  height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 19px;
  border: 0;
  border-radius: 14px;
  background: #ff4d67;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out, transform 160ms ease-out;
}

.continue-button:hover:not(:disabled) {
  background: #ff3d5b;
  box-shadow:
    0 8px 24px rgba(255,77,103,0.38),
    5px 7px 0 rgba(37,244,238,0.78),
    -5px 7px 0 rgba(254,44,85,0.35);
}

.continue-button:active:not(:disabled) { transform: scale(0.98); }

.continue-button:disabled {
  cursor: wait;
  background: #a7a7a7;
  box-shadow: none;
}

/* === Trust note === */
.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
  color: #7b7b7b;
  font-size: 0.75rem;
}

.trust-note svg { color: #fe2c55; flex-shrink: 0; }

/* === Footer === */
.gate-footer {
  position: absolute;
  right: 24px; bottom: 24px; left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7d7d7d;
  font-size: 0.73rem;
  line-height: 1.4;
}

.gate-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #010101;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease-out;
}

.gate-footer a:hover { color: #fe2c55; }

/* === Mobile === */
@media (max-width: 600px) {
  .gate-shell {
    align-items: flex-start;
    padding: 11vh 16px 88px;
  }

  .gate-shell::before { top: 7%; left: -32%; width: 260px; height: 260px; }
  .gate-shell::after  { right: -35%; bottom: 13%; width: 240px; height: 240px; }

  .gate-panel { width: 100%; padding: 49px 24px 31px; }
  .gate-copy  { margin-bottom: 27px; font-size: 0.94rem; }

  .gate-footer {
    right: 16px; bottom: 18px; left: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    font-size: 0.7rem;
  }
}
