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

:root {
  --bg: #0a0a0a;
  --surface: #1c1c1e;
  --surface-alt: #2c2c2e;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #BCDC46;
  --accent-hover: #d0ec5e;
  --text-primary: #FFFFFF;
  --text-secondary: #8E8E93;
  --destructive: #FF453A;
  --success: #34C759;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 10px;
}

html, body {
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   Page layout
   =================================================== */

.page {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ===================================================
   Left panel
   =================================================== */

.left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}

.content {
  max-width: 460px;
  width: 100%;
}

/* App brand */
.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.app-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

/* Headline */
.headline {
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.headline .accent {
  color: var(--accent);
}

.subtitle {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ===================================================
   Waitlist form — bento card
   =================================================== */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-row {
  display: flex;
  gap: 8px;
}

.email-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--surface-alt);
  outline: none;
  transition: border-color 0.2s ease;
}

.email-input:focus {
  border-color: var(--accent);
}

.email-input::placeholder {
  color: #636366;
}

.cta-button {
  padding: 14px 24px;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.cta-button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.form-error {
  font-size: 13px;
  color: var(--destructive);
  min-height: 18px;
  padding-left: 2px;
}

.social-proof {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 2px;
}

/* Success message */
.success-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--success);
}

.success-icon {
  font-size: 20px;
  font-weight: 700;
}

/* ===================================================
   Right panel — phone mockup
   =================================================== */

.right {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Background texture — right edge clips off screen, only left curve visible */
.warm-bg {
  position: absolute;
  height: 140vh;
  top: 0;
  left: 10%;
  transform: translateY(-20%) rotate(-20deg) scaleY(-1);
  transform-origin: center center;
  opacity: 0.8;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
  border-radius: 180px;
  overflow: hidden;
  box-shadow: 0 0 30px 30px rgba(0, 0, 0, 0.15);
  filter: blur(1px);
}

/* Phone mockup */
.phone-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.phone-bezel {
  display: block;
  width: clamp(200px, 22vw, 300px);
  height: auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  z-index: 1;
  top: 3.2%;
  left: 6.5%;
  width: 87%;
  border-radius: 12px;
  display: block;
}

/* ===================================================
   Footer
   =================================================== */

.footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  z-index: 10;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===================================================
   Responsive: Mobile
   =================================================== */

@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
    height: 100svh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
  }

  /* Top-left corner texture */
  .page::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    top: -90px;
    left: -90px;
    background: url('bento-background.png') center / cover;
    border-radius: 80px;
    opacity: 0.6;
    transform: rotate(-20deg);
    box-shadow: 0 0 12px 12px rgba(0, 0, 0, 0.15);
    filter: blur(1px);
    z-index: 2;
    pointer-events: none;
  }

  /* Bottom-right corner texture */
  .page::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: -90px;
    right: -90px;
    background: url('bento-background.png') center / cover;
    border-radius: 80px;
    opacity: 0.6;
    transform: rotate(-20deg);
    box-shadow: 0 0 12px 12px rgba(0, 0, 0, 0.15);
    filter: blur(1px);
    z-index: 2;
    pointer-events: none;
  }

  .right {
    display: none;
  }

  .left {
    padding: 48px 24px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
  }

  .content {
    text-align: center;
    max-width: 100%;
  }

  .app-brand {
    justify-content: center;
  }

  .subtitle {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .email-input {
    text-align: center;
  }

  .cta-button {
    width: 100%;
  }

  .social-proof,
  .form-error {
    text-align: center;
    padding-left: 0;
  }
}
