/* main.css — Base styles: variables, reset, typography, buttons, section common, animations, mobile menu, responsive layout */

:root {
    --primary: #ed538a;
    --primary-light: #ff6b9d;
    --primary-dark: #d13d73;
    --primary-pale: #fef6f9;
    --secondary: #2d3142;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-warm: #fffbfc;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #fef6f9 50%, #fff5f8 100%);
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(45, 49, 66, 0.06);
    --shadow-md: 0 8px 30px rgba(45, 49, 66, 0.08);
    --shadow-lg: 0 20px 60px rgba(45, 49, 66, 0.12);
    --shadow-pink: 0 20px 60px rgba(237, 83, 138, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --font-display: 'PT Serif', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-light);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(237, 83, 138, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(237, 83, 138, 0.4);
}

.btn-secondary {
    background: var(--primary-pale);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(45, 49, 66, 0.1);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* Nav offset: fixed nav is ~65px. Add this class to the first
   content element on pages where section padding is reduced. */
.nav-offset {
    padding-top: 6.5rem !important;
}

/* Breadcrumbs (base) */
.breadcrumbs {
    margin-bottom: 1.25rem;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs__item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs__item a:hover {
    color: var(--primary);
}

.breadcrumbs__item--current {
    color: var(--text);
    font-weight: 500;
}

.breadcrumbs__sep {
    margin: 0 0.5rem;
    color: var(--text-light);
    opacity: 0.4;
}

/* Breadcrumbs on dark backgrounds */
.breadcrumbs--on-dark .breadcrumbs__item { color: rgba(255,255,255,0.5); }
.breadcrumbs--on-dark .breadcrumbs__item a { color: rgba(255,255,255,0.5); }
.breadcrumbs--on-dark .breadcrumbs__item a:hover { color: rgba(255,255,255,0.85); }
.breadcrumbs--on-dark .breadcrumbs__item--current { color: rgba(255,255,255,0.8); }
.breadcrumbs--on-dark .breadcrumbs__sep { color: rgba(255,255,255,0.3); opacity: 1; }

/* Sections */
section {
    padding: clamp(4rem, 7vw, 8rem) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-pale);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Exclusive Feature Star Badge — gradient star for unique features */
.exclusive-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.exclusive-star svg {
    width: 16px;
    height: 16px;
}

.exclusive-star--sm svg {
    width: 14px;
    height: 14px;
}

/* Card corner star — just the star, no text */
.exclusive-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.exclusive-badge .exclusive-star {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}

.exclusive-badge .exclusive-star svg {
    width: 22px;
    height: 22px;
}

/* Bento card star — slightly smaller */
.bd__card .exclusive-badge {
    top: 0.75rem;
    right: 0.75rem;
}

.bd__card .exclusive-badge .exclusive-star,
.bd__card .exclusive-badge .exclusive-star svg {
    width: 18px;
    height: 18px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
}

.mobile-menu-open .mobile-menu {
    display: block;
}

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu__link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu__link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .problem-grid,
    .ecosystem-content.active,
    .gamification-grid,
    .team-intro {
        grid-template-columns: 1fr;
    }

    .results-grid,
    .pricing-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eco-device {
        order: -1;
    }

    .gami-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .device-showcase {
        max-width: 100%;
    }

    .phone-mockup {
        right: 0;
        width: 100px;
    }

    .ecosystem-tabs {
        flex-direction: column;
        align-items: center;
    }

    .eco-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .gami-features {
        grid-template-columns: 1fr;
    }

    .testimonials-track {
        animation-duration: 30s;
    }

    .testimonial-card {
        width: 300px;
        padding: 1.5rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .team-members {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}
