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

  :root {
    --bg: #F4F1FE;
    --surface: rgba(255,255,255,0.75);
    --border: rgba(140,120,200,0.12);
    --text: #1E1B2E;
    --text-muted: #6E6A80;
    --purple: #8B6EF0;
    --blue: #4D8DF7;
    --cyan: #2DC8C8;
    --gradient: linear-gradient(135deg, #9B7BF4 0%, #4D8DF7 50%, #2DC8C8 100%);
    --glow-purple: rgba(155,123,244,0.18);
    --glow-cyan: rgba(45,200,200,0.14);
    --glow-blue: rgba(77,141,247,0.12);
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  .bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    animation: drift 22s ease-in-out infinite;
  }
  .bg-glow--1 { width: 550px; height: 550px; background: var(--glow-purple); top: -12%; right: -8%; animation-delay: 0s; }
  .bg-glow--2 { width: 450px; height: 450px; background: var(--glow-cyan); bottom: -8%; left: -8%; animation-delay: -8s; }
  .bg-glow--3 { width: 300px; height: 300px; background: var(--glow-blue); top: 40%; left: 30%; animation-delay: -15s; }

  @keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -18px) scale(1.04); }
    66% { transform: translate(-18px, 12px) scale(0.96); }
  }

  .container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Logo lockup — icon + wordmark side by side */
  .logo-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease both;
  }
  .app-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(155,123,244,0.22), 0 1px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
  }
  .wordmark {
    height: 144px;
    object-fit: contain;
    display: block;
  }

  h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.15s ease both;
  }
  h1 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 40px;
    animation: fadeUp 0.8s 0.3s ease both;
  }

  .signup-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 460px;
    animation: fadeUp 0.8s 0.45s ease both;
  }
  .signup-form input {
    flex: 1;
    padding: 16px 20px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .signup-form input::placeholder { color: #B0ACBE; }
  .signup-form input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(155,123,244,0.12);
  }
  .signup-form button {
    padding: 16px 28px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(155,123,244,0.28);
  }
  .signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(155,123,244,0.38);
  }
  .signup-form button:active { transform: translateY(0); }

  .note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.65;
    animation: fadeUp 0.8s 0.6s ease both;
  }

  .pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 56px;
    animation: fadeUp 0.8s 0.7s ease both;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
  }
  .pill span { font-size: 1rem; }

  .success-msg {
    display: none;
    padding: 16px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    animation: popIn 0.4s ease;
    box-shadow: 0 4px 24px rgba(155,123,244,0.28);
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
  }

  @media (max-width: 520px) {
    .signup-form { flex-direction: column; }
    .signup-form button { width: 100%; }
    .pills { gap: 8px; }
    .app-icon { width: 48px; height: 48px; border-radius: 14px; }
    .wordmark { height: 112px; }
  }