/* ============================================================
   GCNut - Main CSS
   Custom styles beyond Tailwind utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --accent: #ffedd5;
    --dark: #0f172a;
    --dark-card: #ffffff;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.05);
    --gradient-hero: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-glow: 0 10px 40px rgba(245, 158, 11, 0.15);
    --chat-bg: #1e293b;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ── Header / Nav ── */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 99px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #fb923c);
    color: white;
    font-weight: 800;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    font-weight: 800;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    font-weight: 800;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.45);
}

/* ── Hero Section ── */
.hero-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    opacity: 0.05;
    filter: blur(40px);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -40px);
    }
}

/* ── Cards ── */
.card-glass {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.card-glass:hover {
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.08);
    transform: translateY(-5px);
}

.card-gift {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.card-gift:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.12);
    transform: translateY(-6px);
}

.card-gift .card-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-gift:hover .card-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* ── FAQ Accordion ── */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.faq-item.open {
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.05);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover,
.faq-item.open .faq-question {
    color: var(--primary-dark);
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    color: #64748b;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 1.5rem 1.5rem;
}

/* ── Stats ── */
.stat-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

/* ── Process Steps ── */
.process-step {
    text-align: center;
}

.step-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    color: white;
}

/* ── Rate Table ── */
.rate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.rate-table th {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 800;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.rate-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 500;
}

.rate-table tr:last-child td {
    border-bottom: none;
}

.rate-table tr:hover td {
    background: #fffaf5;
}

.rate-badge {
    background: #fff7ed;
    color: #c2410c;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid #ffedd5;
}

/* ── Footer ── */
.footer {
    background: #0f172a;
}

.footer-link {
    color: #94a3b8;
    transition: all 0.2s;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

/* ── Animations ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    display: inline-block;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 0.4rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.section-title span {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

/* ── 404 Page ── */
.error-404 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 20px 40px rgba(245, 158, 11, 0.2));
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}