/* --- 1. TOKENS --- */
:root {
  --canvas: #0F1C24;
  --surface: #1E3748;
  --surface-hover: #284B63;
  --brand: #559DA1;
  --brand-light: #7FB6BA;
  --brand-faint: #224042;
  --text-primary: #F4F8FB;
  --text-secondary: #D0E1EC;
  --text-tertiary: #A5C5DA;
  --text-muted: #75A6C7;
  --border-strong: rgba(165, 197, 218, 0.4);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-12: rgba(255, 255, 255, 0.12);
  --serif: Charter, Georgia, Palatino, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, Monaco, monospace;
}

/* --- 2. RESET --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

/* --- 3. REFERENCE LAYOUT --- */
.bg-dark {
  background: var(--canvas);
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(127, 182, 186, 0.22), rgba(85, 157, 161, 0.08) 40%, transparent 68%);
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.status-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(165, 197, 218, 0.18);
  border-radius: 9999px;
  background: rgba(15, 28, 36, 0.72);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  backdrop-filter: blur(26px);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--brand-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.copy-col {
  flex: 1 1 0%;
}

.image-col {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
}

/* --- 4. HERO TYPOGRAPHY --- */
h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h2 {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1.65;
}

/* --- 5. WAITLIST FORM --- */
.gate-box {
  width: 100%;
  max-width: 32rem;
  margin-top: 2rem;
  border: 1px solid var(--surface);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
}

.gate-box label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.gate-box input[type="email"] {
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.gate-box input[type="email"]::placeholder {
  color: var(--text-muted);
}

.gate-box input[type="email"]:focus {
  border-color: var(--brand-light);
}

.cta-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  padding: 14px 24px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: var(--brand-light);
}

.cta-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.gate-form.hidden {
  display: none;
}

.success-message {
  display: none;
  padding: 12px 0;
}

.success-message.visible {
  display: block;
}

.success-message p:first-child {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 500;
}

/* --- 6. IMAGE --- */
.product-image {
  display: block;
  width: min(100%, 32rem);
  height: auto;
  max-height: min(30rem, 58vh);
  object-fit: contain;
  transform: scale(1.03);
  transform-origin: center;
}

/* --- 8. ANIMATIONS --- */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.78);
  }
}

/* --- 9. RESPONSIVE --- */
@media (min-width: 768px) {
  body:not(.confirmation-page) {
    overflow: hidden;
  }

  .bg-dark > .relative {
    min-height: 100vh;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  .hero-row {
    flex-direction: row;
  }

  .copy-col {
    max-width: 55%;
  }

  .image-col {
    justify-content: center;
  }

  .product-image {
    transform: scale(1.1);
  }
}

@media (min-width: 1024px) {
  .product-image {
    max-width: 36rem;
    transform: scale(1.12);
  }
}

/* --- 10. CONFIRMATION PAGE --- */
.confirmation-page,
.confirmation-page body {
  overflow: auto;
}

.confirmation-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 182, 186, 0.18), transparent 42%),
    radial-gradient(circle at 12% 18%, rgba(85, 157, 161, 0.12), transparent 34%),
    var(--canvas);
  overflow: auto;
}

.confirmation-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(86px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.confirmation-glow-primary {
  top: -180px;
  left: 50%;
  width: 760px;
  height: 380px;
  transform: translateX(-50%);
  background: rgba(127, 182, 186, 0.22);
  animation: ambient-drift-center 12s ease-in-out infinite alternate;
}

.confirmation-glow-secondary {
  right: -180px;
  top: 32%;
  width: 420px;
  height: 420px;
  background: rgba(40, 75, 99, 0.48);
  animation: ambient-drift-corner 12s ease-in-out infinite alternate;
  animation-delay: -4s;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

.survey-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.survey-status-wrap {
  margin-bottom: 28px;
}

.survey-hero {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.survey-eyebrow {
  margin-bottom: 12px;
  color: var(--brand-light);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.survey-hero-content h1 {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.survey-tagline {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-tertiary);
  font-size: 18px;
  line-height: 1.5;
}

.form-wrapper {
  border: 1px solid rgba(165, 197, 218, 0.16);
  border-radius: 12px;
  background: rgba(30, 55, 72, 0.78);
  padding: 24px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(4, 12, 18, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-wrapper iframe {
  display: block;
  border: 0;
  min-height: 600px;
  width: 100%;
}

.survey-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.wm-name {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 500;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambient-drift-center {
  from {
    transform: translate3d(-50%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-48%, 22px, 0) scale(1.08);
  }
}

@keyframes ambient-drift-corner {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-24px, 18px, 0) scale(1.06);
  }
}

@media (max-width: 640px) {
  .page,
  .survey-page {
    padding: 40px 24px 64px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .container {
    padding-top: 3rem;
  }

  .status-pill {
    text-align: center;
  }

  .copy-col {
    width: 100%;
  }

  .product-image {
    max-height: 24rem;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.45rem;
  }

}
