:root {
    --text: #fff;
    --muted: #e9dbff;
    --success1: #42d66c;
    --success2: #2aa553;
}

* {
    box-sizing: border-box
}

html,

body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden
}

body {
    margin: 0;
    font-family: "Rubik", "Assistant", system-ui, Arial;
    color: var(--text);
    background:
        radial-gradient(900px 600px at 50% -10%, #7a2de2 0%, #2e0e5c 65%),
        radial-gradient(1200px 700px at 100% 110%, #8a2be2 0%, #1a0836 70%);
    -webkit-font-smoothing: antialiased;
}

/* centered narrow container */
.page {
    max-width: 560px;
    margin-inline: auto;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* hero image, never cropped */
.hero-card {
    margin: 20px auto 12px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0, 0, 0, .45);
    background: #32106a
}

.hero-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain
}

/* marketing copy (center) */
.copy {
    direction: ltr;
    text-align: center;
    width: 100%;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.6;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: pretty;
    margin: 0 auto;
}

.copy p {
    margin: 0 0 12px
}

/* signup card */
.card {
    width: 100%;
    margin: 16px auto 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.card h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: clamp(20px, 5.5vw, 26px)
}

/* controls */
.actions {
    display: grid;
    gap: 12px
}

.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

@media (min-width:520px) {
    .row {
        grid-template-columns: 1fr auto
    }
}

input[type=email] {
    width: 100%;
    background: #0c0620;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    text-align: left;
    direction: ltr;
}
input::placeholder {
    color: #bda7ff;
    /* זהב רך */
    text-align: left;

}


.btn {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .08s, background .2s;
    width: 100%;
    background: linear-gradient(180deg, var(--success1), var(--success2));
}

.btn:active {
    transform: translateY(1px)
}

.disclaimer {
    font-size: 13px;
    color: var(--muted);
    text-align: center
}

/* למנוע גלילה של הרקע כשמודאל פתוח */
body.modal-open { overflow: hidden; }

/* === Success Modal === */
#successModal{
  display:none;                 /* מוסתר כברירת מחדל */
  position:fixed; inset:0;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(3px);
  z-index:9999;
  align-items:center; justify-content:center;
}
#successModal.open{ display:flex; }

#successModal .modal-content{
  background:#fff; color:#333;
  padding:24px 28px; border-radius:16px; text-align:center;
  max-width:420px; width:90%;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
  animation:fadeIn .25s ease-out;
}
#successModal h2{ margin-top:0; color:#2aa553; }

#successModal button{
  margin-top:18px; background:#2aa553; border:none; padding:10px 20px;
  color:#fff; font-weight:bold; border-radius:8px; cursor:pointer;
}
#successModal button:hover{ background:#249445; }

@keyframes fadeIn{
  from{opacity:0; transform:scale(0.95);}
  to{opacity:1; transform:scale(1);}
}
