/* ============================================
   GroupBuy Flats — Premium Design System
   ============================================ */

:root {
    --gold: #d4a532;
    --gold-light: #f5e6b8;
    --gold-dark: #b8901e;
    --dark: #0c0f1a;
    --dark-2: #141827;
    --dark-3: #1c2035;
    --text: #e0e0e0;
    --text-muted: #8a8fa8;
    --white: #ffffff;
    --glass: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 20px 60px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-gold { color: var(--gold) !important; }

/* =========== BUTTONS =========== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--dark);
    font-weight: 700;
    border-radius: 60px;
    padding: 12px 32px;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}
.btn-gold:hover {
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212,165,50,0.35);
}
.btn-gold:hover::before { left: 100%; }

.btn-nav-login {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 60px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-nav-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

/* =========== NAVBAR =========== */
.navbar {
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(12,15,26,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    font-size: 1.1rem;
}
.brand-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 8px 16px !important;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }
.btn-join-nav { padding: 8px 24px !important; font-size: 0.9rem; }

/* =========== HERO =========== */
.hero-section {
    background: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-shapes {
    position: absolute; inset: 0; pointer-events: none;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}
.shape-1 {
    width: 600px; height: 600px;
    background: var(--gold);
    top: -200px; right: -100px;
}
.shape-2 {
    width: 400px; height: 400px;
    background: #4f46e5;
    bottom: -100px; left: -100px;
}
.shape-3 {
    width: 300px; height: 300px;
    background: var(--gold);
    bottom: 20%; right: 30%;
    opacity: 0.08;
}
.hero-content { padding: 40px 0; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,165,50,0.12);
    border: 1px solid rgba(212,165,50,0.25);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.hero-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.5px;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}
.hero-cta { display: flex; flex-direction: column; gap: 14px; }
.hero-btn {
    padding: 16px 40px;
    font-size: 1.05rem;
    width: fit-content;
}
.hero-cta-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero Visual (floating cards) */
.hero-visual {
    position: relative;
    height: 400px;
}
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    min-width: 240px;
    animation: float 6s ease-in-out infinite;
}
.hero-card:nth-child(1) { top: 40px; left: 20px; }
.hero-card.card-2 { top: 160px; right: 0; animation-delay: -2s; }
.hero-card.card-3 { bottom: 40px; left: 40px; animation-delay: -4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.hero-card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

/* =========== PROOF BAR =========== */
.proof-bar {
    background: var(--dark-2);
    padding: 16px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.proof-item i { color: var(--gold); font-size: 0.75rem; }

/* =========== HOW IT WORKS =========== */
.section-hiw {
    background: var(--dark);
    padding: 100px 0;
}
.section-header { margin-bottom: 48px; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 12px auto 0;
}
.hiw-card {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.hiw-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.hiw-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,165,50,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.hiw-card:hover::before { opacity: 1; }
.hiw-step {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.hiw-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: rgba(212,165,50,0.1);
    border: 1px solid rgba(212,165,50,0.15);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
}
.hiw-title {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.hiw-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========== ABOUT SECTION =========== */
.section-about {
    background: var(--dark-2);
    padding: 100px 0;
}
.about-content .section-title { margin-bottom: 24px; }
.about-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}
.about-features { display: flex; flex-direction: column; gap: 14px; }
.about-feat {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.95rem; color: var(--text);
}
.about-feat-icon {
    width: 28px; height: 28px;
    background: rgba(212,165,50,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}
.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.metric-card {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.metric-card:hover {
    border-color: rgba(212,165,50,0.25);
    transform: translateY(-4px);
}
.metric-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.metric-unit {
    font-size: 1.4rem;
    font-weight: 700;
}
.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 500;
}

/* =========== CTA SECTION =========== */
.section-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: var(--gold);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.06;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.cta-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-trust span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.cta-trust i { color: var(--gold); }

/* =========== FOOTER =========== */
.site-footer {
    background: var(--dark-2);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}
.footer-brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
}
.footer-about {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.footer-heading {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.footer-text i { color: var(--gold); width: 20px; }
.footer-divider {
    border-color: var(--glass-border);
    margin: 30px 0 20px;
}
.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* =========== MODALS =========== */
.modal-content { overflow: hidden; background: var(--white); color: #333; }
.otp-box {
    width: 60px; height: 60px;
    font-size: 1.5rem; font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 12px;
}
.otp-box:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,165,50,0.2);
}

/* =========== BACK TO TOP =========== */
.btn-back-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(212,165,50,0.3);
    font-size: 0.9rem;
}
.btn-back-top.show { opacity: 1; transform: translateY(0); }
.btn-back-top:hover { color: var(--dark); transform: translateY(-3px); }

/* =========== RESPONSIVE =========== */
@media (max-width: 991px) {
    .navbar { background: rgba(12,15,26,0.95); backdrop-filter: blur(20px); }
    .navbar-toggler-icon { filter: invert(1); }
    .hero-stats-row { gap: 16px; }
    .hero-stat-divider { display: none; }
    .about-metrics { gap: 12px; }
    .metric-number { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .hero-section { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stats-row { justify-content: center; }
    .hero-cta { align-items: center; }
    .hero-btn { width: 100%; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .proof-inner { gap: 16px; }
    .otp-box { width: 50px; height: 50px; }
    .section-title { font-size: 1.8rem; }
    .about-content .section-title { text-align: center !important; }
}

/* =========== ANIMATIONS =========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp 0.8s ease; }
.hiw-card { animation: fadeInUp 0.6s ease backwards; }
.hiw-card:nth-child(1) { animation-delay: 0.1s; }
.hiw-card:nth-child(2) { animation-delay: 0.2s; }
.hiw-card:nth-child(3) { animation-delay: 0.3s; }
.hiw-card:nth-child(4) { animation-delay: 0.4s; }
