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

:root {
  --bg-color: #fbfbfa;
  --text-main: #141416;
  --text-muted: #4e535e;
  --accent: #111113;
  --accent-hover: #26262a;
  --accent-text: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.76);
  --card-border: rgba(255, 255, 255, 0.65);
  --input-bg: rgba(255, 255, 255, 0.95);
  --focus-ring: rgba(0, 0, 0, 0.12);
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

/* Fullscreen Background Video with Dual-Buffer Seamless Crossfade */
.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background-color: var(--bg-color);
}

.video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.video-element.active {
  opacity: 0.95;
}

/* Subtle overlay for contrast & readability */
.video-overlay-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Coming Soon Box (Bottom-Right Corner) */
.content-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 2.2rem;
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--card-border);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.02),
    0 24px 48px -12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: fadeInBottomRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInBottomRight {
  0% {
    opacity: 0;
    transform: translate(16px, 16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Headline */
.headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.8rem, 6.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

/* Subtitle */
.subtitle {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 1.75rem;
}

/* Form Container */
.form-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
}

.notify-form {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--input-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  padding: 5px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notify-form:focus-within {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 6px 20px -2px rgba(0, 0, 0, 0.08),
    0 0 0 3px var(--focus-ring);
}

.input-icon {
  margin-left: 14px;
  margin-right: 8px;
  color: #8c93a0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 10px 4px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-main);
  min-width: 0;
}

.email-input::placeholder {
  color: #9aa0a6;
  font-weight: 400;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
}

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

/* Status Messages */
.form-status {
  margin-top: 10px;
  font-size: 0.86rem;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-4px);
}

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

.form-status.success {
  color: #0d9488;
  font-weight: 600;
}

.form-status.error {
  color: #e11d48;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .app-container {
    align-items: flex-end;
    justify-content: center;
    padding: 1.2rem 1rem;
  }

  .content-overlay {
    width: 100%;
    max-width: 480px;
    padding: 1.8rem 1.3rem;
    border-radius: 24px;
  }

  .headline {
    font-size: 2.6rem;
  }

  .subtitle {
    font-size: 0.94rem;
    margin-bottom: 1.4rem;
  }

  .notify-form {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 20px;
    gap: 8px;
  }

  .input-icon {
    display: none;
  }

  .email-input {
    width: 100%;
    text-align: center;
    padding: 9px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
  }
}
