/* =========================================================
   COMPONENTS
   ========================================================= */

/* ===== NAV iOS CHIP ===== */
.nav-ios {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    font-size: 0.6rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase;
    color: #cdeffb; text-decoration: none;
    border: 1px solid rgba(45, 212, 255, 0.35);
    background: rgba(45, 212, 255, 0.08);
    transition: all 0.3s var(--ease-out);
}
.nav-ios:hover { background: rgba(45, 212, 255, 0.18); }

/* ===== HERO HOLO CARD CONTAINER ===== */
#3d-cube-container {
    width: 100%;
    max-width: 450px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 145, 166, 0.05);
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
#3d-cube-container:hover {
    background: rgba(56, 145, 166, 0.1);
    transform: scale(1.02);
}
#3d-cube-container canvas {
    max-width: 100%;
    height: auto !important;
}

/* ===== FEATURE CARDS (3D) ===== */
.feature-card-v3 {
    position: relative;
    padding: 2.5rem;
    border-radius: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    perspective: 1000px;
    height: 100%;
    cursor: pointer;
}
.feature-card-v3:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px var(--shadow-color);
}
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
}
.feature-card-v3:hover .card-glow { opacity: 0.15; }
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--card-color), rgba(255, 255, 255, 0.1));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}
.feature-card-v3 h4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.feature-card-v3 p {
    color: #889DB6;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.card-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--card-color);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.feature-card-v3:hover .card-progress-bar { width: 100%; }

/* ===== iOS BETA PILL ===== */
.beta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 100px;
    background: rgba(45, 212, 255, 0.08);
    border: 1px solid rgba(45, 212, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cdeffb;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(8px);
}
.beta-pill:hover { background: rgba(45, 212, 255, 0.16); transform: translateY(-2px); }
.beta-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2DD4FF; box-shadow: 0 0 10px #2DD4FF;
    animation: betapulse 1.6s ease-in-out infinite;
}
.beta-pill .go {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(45, 212, 255, 0.2);
}
@keyframes betapulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45, 212, 255, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(45, 212, 255, 0); }
}

/* ===== iOS BETA ANNOUNCEMENT ===== */
.beta-section {
    position: relative;
    border-radius: 4rem;
    padding: 5rem 3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(45, 212, 255, 0.18), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(156, 39, 176, 0.18), transparent 55%),
        #0a1622;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.beta-section::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 4rem;
    padding: 1px;
    background: linear-gradient(120deg, rgba(45, 212, 255, 0.6), rgba(156, 39, 176, 0.4), rgba(255, 152, 0, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}
.beta-grid-glow {
    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: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
    pointer-events: none;
}
.apple-badge {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 14px 28px 14px 22px;
    border-radius: 1.5rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}
.apple-badge:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(45, 212, 255, 0.5);
    box-shadow: 0 20px 50px rgba(45, 212, 255, 0.25);
}

/* ===== DONATION CTA (kept + amplified) ===== */
.donate-wrap { position: relative; }
.donate-glow {
    position: absolute;
    inset: -8%;
    background: radial-gradient(circle at 50% 45%, rgba(255, 152, 0, 0.28), rgba(156, 39, 176, 0.16) 45%, transparent 70%);
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
    animation: donateGlow 4s ease-in-out infinite;
}
@keyframes donateGlow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, #FF9800, #9C27B0);
    background-size: 200% auto;
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.32);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-position 0.5s var(--ease-out);
    animation: donatePulse 2.6s ease-in-out infinite;
    white-space: nowrap;
}
.donate-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background-position: right center;
    box-shadow: 0 18px 44px rgba(156, 39, 176, 0.45);
}
@keyframes donatePulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(255, 152, 0, 0.30); }
    50% { box-shadow: 0 14px 46px rgba(255, 152, 0, 0.55); }
}

/* ===== SOCIAL PROOF ===== */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #FFB800;
    line-height: 1;
}
.stars svg { width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.4)); }

/* ===== STICKY MOBILE INSTALL BAR ===== */
.mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7, 17, 28, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .mobile-cta { display: none; } }
