:root {
  --color-bg: #f5f7fa;
  --color-text-main: #1e2433;
  --color-text-muted: #5e687c;
  --color-brand-primary: #9a263d;
  --color-brand-hover: #b82d49;
  --color-brand-active: #7f1f31;
  
  --color-glass-bg: rgba(255, 255, 255, 0.65);
  --color-glass-border: rgba(255, 255, 255, 0.4);
  --color-input-bg: rgba(255, 255, 255, 0.8);
  --color-input-border: rgba(154, 38, 61, 0.15);
  --color-input-focus: rgba(154, 38, 61, 0.4);

  --shadow-glass: 0 24px 64px -12px rgba(0, 0, 0, 0.08), 0 12px 24px -8px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 8px 20px -4px rgba(154, 38, 61, 0.3);
  --shadow-btn-hover: 0 12px 28px -4px rgba(154, 38, 61, 0.4);
  
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
.bg-elements {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.8), transparent 70%),
              radial-gradient(circle at bottom left, rgba(255,255,255,0.8), transparent 70%);
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate ease-in-out;
  border-radius: 50%;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(154,38,61,0.15) 0%, rgba(200,80,100,0) 70%);
  animation-delay: -2s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(60,80,140,0.12) 0%, rgba(60,80,140,0) 70%);
  animation-delay: -5s;
  animation-direction: alternate-reverse;
}

.blob-3 {
  top: 40%;
  left: 60%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(220,180,100,0.1) 0%, rgba(220,180,100,0) 70%);
  animation-duration: 25s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.05); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* Layout */
.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Glassmorphic Card */
.glass-card {
  position: relative;
  width: 100%;
  max-width: 840px;
  padding: 48px 32px;
  background: var(--color-glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .glass-card {
    padding: 64px 48px;
  }
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up 0.8s var(--ease-spring) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.brand-visual-wrap {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 32px auto;
}

.brand-visual {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.05));
  transition: transform 0.4s var(--ease-spring);
}

.brand-visual:hover {
  transform: scale(1.02);
}

/* Typography */
.launch-copy {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.launch-copy h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-brand-primary);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-brand-primary), #c23b56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .launch-copy h2 {
    font-size: 48px;
  }
}

.launch-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .launch-copy p {
    font-size: 18px;
  }
}

/* Form */
.notify-form {
  width: 100%;
  max-width: 540px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 560px) {
  .notify-form {
    flex-direction: row;
  }
}

.input-wrap {
  position: relative;
  flex-grow: 1;
}

.mail-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #9ba3af;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.notify-form input {
  position: relative;
  width: 100%;
  height: 64px;
  padding: 0 24px 0 54px;
  border-radius: 16px;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-main);
  outline: none;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.notify-form input::placeholder {
  color: #9ba3af;
}

.notify-form input:focus {
  border-color: var(--color-brand-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--color-input-focus), inset 0 2px 4px rgba(0,0,0,0.02);
}

.notify-form input:focus + .mail-icon,
.notify-form input:not(:placeholder-shown) + .mail-icon {
  stroke: var(--color-brand-primary);
}

/* Add support for sibling selector backwards since DOM order is input then icon */
.input-wrap:focus-within .mail-icon {
  stroke: var(--color-brand-primary);
}

.submit-btn {
  height: 64px;
  padding: 0 36px;
  border-radius: 16px;
  border: none;
  background: var(--color-brand-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  background: var(--color-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-btn);
}

.submit-btn:disabled {
  background: #c396a0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-btn.is-loading .btn-text {
  display: none;
}

.submit-btn.is-loading .btn-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status & Privacy */
.status-container {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-status {
  font-size: 15px;
  font-weight: 500;
  min-height: 22px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-5px);
}

.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-success {
  color: #2e7d32;
}

.form-status.is-error {
  color: #d32f2f;
}

.privacy-note {
  font-size: 13px;
  color: #8c93a1;
}

/* Footer */
.footer {
  width: 100%;
  margin-top: 48px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154,38,61,0.2), transparent);
}

.divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  opacity: 0.5;
}

.footer p {
  font-size: 14px;
  color: #8c93a1;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.footer a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--color-brand-hover);
}

.footer p span {
  margin: 0 6px;
  color: rgba(154,38,61,0.3);
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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

/* Animations for JS */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.notify-form.has-error {
  animation: shake 0.4s var(--ease-spring);
}
