:root {
    --dark: #0f172a;
    --primary: #1a56db;
    --accent: #f97316;
    --light: #f1f5f9;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: 'Syne', sans-serif;
}


/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,86,219,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 60%, rgba(249,115,22,0.12) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s both;
}

.btn-primary-hero {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-hero:hover {
    background: #1245b8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,86,219,0.4);
}

.btn-secondary-hero {
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── QR FLOAT ── */
.hero-qr {
    margin-top: 4rem;
    animation: fadeUp 0.6s ease 0.4s both;
}

.qr-mockup {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.qr-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark);
}

.qr-text {
    text-align: left;
}

.qr-text strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.qr-text span {
    color: #64748b;
    font-size: 0.8rem;
}

/* ── HOW IT WORKS ── */
.how-section {
    padding: 6rem 1.5rem;
    position: relative;
}

.section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
    border-color: rgba(26,86,219,0.4);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(26,86,219,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

/* ── PRIVACY STRIP ── */
.privacy-strip {
    background: rgba(26,86,219,0.08);
    border-top: 1px solid rgba(26,86,219,0.15);
    border-bottom: 1px solid rgba(26,86,219,0.15);
    padding: 3rem 1.5rem;
    text-align: center;
}

.privacy-strip h2 {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.privacy-strip p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.privacy-pills {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
}

.privacy-pill i { color: #22c55e; }

/* ── CTA SECTION ── */
.cta-section {
    padding: 6rem 1.5rem;
    text-align: center;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 3rem 2rem;
}

.cta-box h2 {
    font-size: 2rem;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ── FOOTER ── */
footer {
    padding: 2rem;
    text-align: center;
    color: #334155;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer a { color: #475569; text-decoration: none; }
footer a:hover { color: #94a3b8; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── PUBLIC DARK PAGES (invite, invite_sent, etc.) ── */
.public-dark-main {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--dark);
}

.invite-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
}

.invite-card h2 {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.invite-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-control, .form-control:focus {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.2);
    background: rgba(255,255,255,0.08);
}

.form-control::placeholder { color: #475569; }

textarea.form-control { resize: none; }

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-submit:hover {
    background: #1245b8;
    transform: translateY(-1px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover { color: #94a3b8; }

/* ── SUCCESS / CONFIRMATION ── */
.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(34,197,94,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #22c55e;
    margin: 0 auto 1.5rem;
}