:root{
    /* Core Variables */
    --bg0:#04030a;
    --bg1:#070b16;
    --text:#f4f7ff;
    --muted:rgba(244,247,255,.74);
    --muted2:rgba(244,247,255,.56);

    --shadow2: 0 18px 45px rgba(0,0,0,.40);

    /* Colors */
    --a:#8a5cff;
    --b:#22d3ee;
    --c:#ff4fd8;
    --wa-green: #25D366; /* WhatsApp Green for the modal button */

    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

    --parallax: 0px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font-family: var(--sans);
    color: var(--text);
    background: linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x:hidden;
}

/* ===== Background Effects ===== */
.bg{
    position: fixed; inset: 0; z-index: -3; overflow: hidden;
    background:
            radial-gradient(1200px 600px at 50% -10%, rgba(138,92,255,.18), transparent 60%),
            radial-gradient(900px 700px at 30% 40%, rgba(34,211,238,.10), transparent 58%),
            radial-gradient(900px 700px at 80% 55%, rgba(255,79,216,.08), transparent 60%),
            linear-gradient(180deg, #04030a, #070b16);
    pointer-events: none;
}

.stars{
    position:absolute; inset:-20%; opacity:.55;
    will-change: transform;
    transform: translateY(calc(var(--parallax) * 0.25));
    background-image:
            radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.20), transparent 60%),
            radial-gradient(1.5px 1.5px at 140px 80px, rgba(255,255,255,.18), transparent 60%),
            radial-gradient(1px 1px at 260px 200px, rgba(255,255,255,.16), transparent 60%),
            radial-gradient(1.5px 1.5px at 420px 260px, rgba(255,255,255,.14), transparent 60%);
    background-size: 740px 360px;
    animation: drift 70s linear infinite;
}
@keyframes drift{ to{ transform: translate3d(-6%, -4%, 0); } }

.aurora{
    position:absolute; inset:-30% -10% -10% -10%; opacity:.72; filter: blur(18px);
    will-change: transform;
    transform: translateY(calc(var(--parallax) * 0.15));
    background:
            radial-gradient(60% 80% at 20% 10%, rgba(138,92,255,.20), transparent 60%),
            radial-gradient(60% 80% at 80% 15%, rgba(34,211,238,.18), transparent 62%),
            radial-gradient(50% 70% at 50% 0%, rgba(255,79,216,.16), transparent 60%);
    mix-blend-mode: screen;
    animation: auroraMove 12s ease-in-out infinite;
}
@keyframes auroraMove{
    0%, 100% { background-position: 0 0, 0 0, 0 0; }
    50% { background-position: 0 0, 0 0, -35% 0; }
}

.noise{
    position:absolute; inset:0; opacity:.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    mix-blend-mode: overlay; pointer-events:none;
}

/* ===== Layout ===== */
.phone{
    width: min(440px, 94vw); margin: 0 auto; padding: 12px 0 64px;
}

header{
    position: sticky; top: 0; z-index: 20;
    background: rgba(4, 3, 10, 0.95);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav{
    height: 56px; display:flex; align-items:center; justify-content:space-between; padding: 0 14px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--text); }
.mark{
    width: 28px; height: 28px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(138,92,255,.95), rgba(34,211,238,.92));
    box-shadow: 0 10px 24px rgba(0,0,0,.35); position:relative; overflow:hidden;
}
.mark:after{
    content:""; position:absolute; inset:-30%;
    background: conic-gradient(from 180deg, rgba(255,79,216,.0), rgba(255,79,216,.35), rgba(34,211,238,.25), rgba(255,79,216,.0));
    opacity:.8; animation: spin 7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.brandName{ font-weight: 900; font-size: 13px; opacity:.95; letter-spacing:.02em; text-transform: uppercase; }

.ctaTop{
    border: 0; cursor:pointer; padding: 9px 12px; border-radius: 14px;
    background: linear-gradient(90deg, rgba(138,92,255,.95), rgba(255,79,216,.88));
    color: white; font-weight: 800; font-size: 12px;
    box-shadow: 0 14px 30px rgba(0,0,0,.35); transition: transform .12s ease, filter .12s ease;
}
.ctaTop:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* ===== Hero / Banner ===== */
.banner-container {
    position: relative;
    margin: 18px 10px 6px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow2);
    will-change: transform, opacity;
    background: #0b0e14;
    min-height: 200px;
}

.banner-image {
    display: block; width: 100%; height: auto; object-fit: cover;
}

.banner-container::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 50%;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black);
    mask-image: linear-gradient(to bottom, transparent, black);
    pointer-events: none; z-index: 2;
}

.p{ margin: 0 0 12px; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* Action Button (Generic Style) */
.actionBtn {
    display: block; width: 100%; margin-top: 22px; padding: 16px;
    border: 0; border-radius: 20px;
    background: linear-gradient(95deg, var(--a) 0%, var(--c) 100%);
    color: white; font-weight: 950; font-size: 15px; text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(138, 92, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}
.actionBtn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.actionBtn:active { transform: translateY(0) scale(0.97); filter: brightness(0.95); }

.btn-subtext {
    display: block; font-size: 11px; font-weight: 500; opacity: 0.9; margin-top: 2px;
}

/* Sections */
.section{ margin-top: 18px; padding: 0 10px; }
.card{
    border-radius: 22px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06); box-shadow: var(--shadow2); padding: 16px 14px;
}
.h2{ margin: 0 0 10px; font-weight: 900; font-size: 22px; letter-spacing:-.01em; line-height:1.2; color: #fff; }
.grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.mini{
    border-radius: 18px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.22); padding: 12px; min-height: 92px;
}
.mini b{ display:block; margin-bottom: 6px; font-size: 13px; color: #fff; }
.mini span{ color: var(--muted2); font-size: 12px; line-height: 1.45; }

/* Footer */
footer{
    margin-top: 24px; padding: 18px 14px 34px;
    color: rgba(244,247,255,.5); font-size: 11px; line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18); border-radius: 18px;
}
.disclaimer-box {
    margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.legal-link{
    color: rgba(244,247,255,.7); text-decoration:none;
    border-bottom: 1px dashed rgba(244,247,255,.25);
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; cursor: pointer; transition: color 0.2s;
}
.legal-link:hover { color: #fff; border-bottom-color: #fff; }

.reveal{ opacity:0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on{ opacity:1; transform: translateY(0); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
    width: 90%; max-width: 420px; max-height: 85vh;
    background: #0b0e14; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    overflow-y: auto; transform: scale(0.95); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.1); border: none;
    color: #fff; width: 32px; height: 32px; border-radius: 50%;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}
.modal-h3 { font-size: 20px; font-weight: 900; margin: 0 0 16px; color: var(--text); }
.modal-content { font-size: 13px; line-height: 1.6; color: var(--muted); }
.modal-content h4 { color: #fff; margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-content p { margin-bottom: 12px; }
.modal-section { display: none; }
.modal-section.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Special Styling for the Modal Join Button */
.modal-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-top: 20px; padding: 14px;
    border: 0; border-radius: 16px;
    background: #25D366; /* WhatsApp Green */
    color: #051a0d; font-weight: 800; font-size: 15px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: filter 0.2s;
}
.modal-wa-btn:hover { filter: brightness(1.1); }

.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li {
    position: relative; padding-left: 24px; margin-bottom: 8px;
    color: var(--muted); font-size: 13px;
}
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--b); font-weight: bold;
}

@media (max-width:380px){ .grid{ grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce){
    .stars, .aurora, .reveal { animation:none !important; transition:none !important; }
}
