/* ====================================================
   Gogoanime - SaaS Landing Page Stylesheet
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* -- Reset -- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* -- Base -- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #08080c;
    color: #f0f0f5;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -- Layout -- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -- Navbar -- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo img {
    height: 32px;
    width: auto;
}

.navbar-logo span {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9a9ab0;
    transition: color 0.25s ease, background 0.25s ease;
}

.navbar-links a:hover {
    color: #f0f0f5;
    background: rgba(255, 255, 255, 0.04);
}

.navbar-links .btn-nav {
    background: #7c5cfc;
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
}

.navbar-links .btn-nav:hover {
    background: #6a4ae0;
    color: #fff;
}

/* -- Hero -- */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.25) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(124, 92, 252, 0.12);
    border: 1px solid rgba(124, 92, 252, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-badge span {
    font-size: 0.7rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    position: relative;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #a78bfa, #818cf8, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #9a9ab0;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #7c5cfc;
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.25);
}

.btn-primary:hover {
    background: #6a4ae0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 252, 0.25);
}

.btn-secondary {
    background: transparent;
    color: #f0f0f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* -- Stats Bar -- */
.stats-bar {
    padding: 60px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 92, 252, 0.2);
    transform: translateY(-3px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(124, 92, 252, 0.1);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: #5a5a72;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* -- Features Section -- */
.features {
    padding: 80px 0;
    position: relative;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7c5cfc;
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-desc {
    text-align: center;
    color: #9a9ab0;
    max-width: 520px;
    margin: 0 auto 50px;
    font-size: 1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.25s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.feature-icon.purple {
    background: rgba(124, 92, 252, 0.12);
}

.feature-icon.teal {
    background: rgba(0, 212, 170, 0.10);
}

.feature-icon.orange {
    background: rgba(255, 107, 53, 0.10);
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.10);
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.10);
}

.feature-icon.green {
    background: rgba(34, 197, 94, 0.10);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #9a9ab0;
    line-height: 1.65;
}

/* -- How It Works -- */
.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(124, 92, 252, 0.25);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: #9a9ab0;
    line-height: 1.6;
}

.step-connector {
    width: 40px;
    flex-shrink: 0;
    align-self: center;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 6px, transparent 6px, transparent 12px);
    margin-top: -10px;
}

/* -- Platforms Section -- */
.platforms {
    padding: 80px 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.platform-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.25s ease;
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(124, 92, 252, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.platform-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.platform-info p {
    font-size: 0.85rem;
    color: #9a9ab0;
    line-height: 1.6;
    margin-bottom: 14px;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c5cfc;
    transition: gap 0.25s ease;
}

.platform-link:hover {
    gap: 10px;
}

.platform-link .arrow {
    transition: transform 0.25s ease;
}

.platform-link:hover .arrow {
    transform: translateX(3px);
}

/* -- Trust Strip / Genre Tags -- */
.trust-strip {
    padding: 50px 0;
    text-align: center;
}

.trust-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5a5a72;
    margin-bottom: 18px;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.genre-tag {
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 500;
    color: #9a9ab0;
    transition: all 0.25s ease;
}

.genre-tag:hover {
    background: rgba(124, 92, 252, 0.12);
    border-color: rgba(124, 92, 252, 0.2);
    color: #a78bfa;
}

/* -- CTA Banner -- */
.cta-banner {
    padding: 80px 0;
}

.cta-box {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(135deg, #7c5cfc, #00d4aa);
    border-radius: 2px;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-box p {
    color: #9a9ab0;
    max-width: 460px;
    margin: 0 auto 32px;
    font-size: 1rem;
    line-height: 1.7;
}

/* -- Footer -- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #9a9ab0;
    line-height: 1.7;
    max-width: 320px;
    margin-top: 14px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #5a5a72;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: #9a9ab0;
    padding: 5px 0;
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: #f0f0f5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #5a5a72;
}

.footer-bottom a {
    color: #9a9ab0;
    transition: color 0.25s ease;
}

.footer-bottom a:hover {
    color: #f0f0f5;
}

/* -- Scroll Animations -- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Focus -- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7c5cfc;
    outline-offset: 3px;
    border-radius: 6px;
}

/* -- Responsive -- */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: 100%;
        flex-basis: calc(50% - 6px);
    }
}

@media (max-width: 680px) {
    .navbar-links a:not(.btn-nav) {
        display: none;
    }

    .hero {
        padding: 120px 0 70px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-box {
        padding: 44px 24px;
    }

    .step-card {
        flex-basis: 100%;
    }

    .genre-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* -- Reduced Motion -- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* -- Print -- */
@media print {

    .navbar,
    .hero::before,
    .cta-box::before {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}