:root {
    --bg-base: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 12, 0.6);
    --glow-color: rgba(99, 102, 241, 0.3);
    --success-glow: rgba(52, 211, 153, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; width: 100%; overflow: hidden; background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(52, 211, 153, 0.08), transparent 24%),
    linear-gradient(180deg, #040404 0%, #000 100%);
    font-family: 'Inter', sans-serif;
}

/* Intro Gate */
.intro-gate {
    position: fixed; inset: 0; z-index: 1000; background: #000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bg-glow-intro {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.intro-card-container {
    width: 90%; max-width: 360px; height: 480px; position: relative; z-index: 1001; touch-action: none;
    perspective: 1500px; cursor: pointer;
}

.intro-card-inner {
    width: 100%; height: 100%; position: absolute;
    transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8); border-radius: 32px;
}

.intro-card-inner.is-flipped { transform: rotateY(180deg); }

.intro-card-face {
    width: 100%; height: 100%; position: absolute; backface-visibility: hidden;
    background: linear-gradient(145deg, #1a1a20, #0a0a0c); border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 32px; padding: 40px; display: flex; flex-direction: column;
}
.intro-card-face.back {
    transform: rotateY(180deg); background: linear-gradient(145deg, #0f1015, #1a1a25);
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.badge-tag { font-size: 0.8rem; padding: 4px 12px; border-radius: 100px; background: rgba(255,255,255,0.1); color: var(--text-secondary); }
.badge-tag.green { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.dots { display: flex; gap: 4px; }
.dots span { width: 6px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 50%; }

.card-title { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1.3; }
.card-answer { font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.card-sub-answer { font-size: 1rem; color: var(--text-secondary); line-height: 1.5; }

.card-footer { margin-top: auto; text-align: center; }
.swipe-hint-text { font-size: 0.9rem; font-weight: 600; display: inline-block; }
.tap-anim { color: #fff; opacity: 0.7; }
.swipe-anim { color: #34d399; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.5; transform: translateX(0); } 50% { opacity: 1; transform: translateX(5px); } }

.intro-message {
    position: absolute; text-align: center; opacity: 0; transform: scale(0.9); pointer-events: none;
    z-index: 1002; width: 100%; padding: 0 20px;
}
.message-text { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 8px; }
.message-brand { font-size: 4rem; font-weight: 800; margin-bottom: 32px; }
.btn-primary-premium {
    background: #fff; color: #000; border: none; padding: 18px 48px; border-radius: 100px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 20px 60px rgba(255,255,255,0.18);
}
.btn-primary-premium:hover { transform: scale(1.05); box-shadow: 0 24px 80px rgba(255,255,255,0.24); }
.text-gradient { background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.download-state {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px) scale(0.96);
    z-index: 1003;
}
.download-orbit {
    position: relative;
    width: 168px;
    height: 168px;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 30px var(--success-glow));
}
.orbit-ring,
.orbit-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.orbit-ring {
    border: 1px solid rgba(255,255,255,0.12);
}
.ring-a {
    animation: orbit-spin 7s linear infinite;
}
.ring-b {
    inset: 18px;
    border-color: rgba(52, 211, 153, 0.32);
    animation: orbit-spin-reverse 5s linear infinite;
}
.ring-a::before,
.ring-b::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff 0%, #34d399 100%);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.55);
}
.orbit-core {
    inset: 42px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.04) 32%, transparent 34%),
        radial-gradient(circle, rgba(52, 211, 153, 0.32) 0%, rgba(52, 211, 153, 0.08) 50%, rgba(255,255,255,0.03) 72%, transparent 100%);
    border: 1px solid rgba(255,255,255,0.14);
    animation: core-pulse 1.8s ease-in-out infinite;
}
.download-kicker {
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.download-title {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 14px;
}
.download-subtitle {
    color: var(--text-secondary);
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.22); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 24px rgba(52, 211, 153, 0); }
}

@media (max-width: 768px) {
    .message-brand { font-size: 3rem; }
    .download-title { font-size: 2.2rem; }
    .download-orbit { width: 144px; height: 144px; }
    .orbit-core { inset: 36px; }
    .btn-primary-premium { width: 100%; max-width: 320px; }
}
