/* ============================================
   BiteOut Landing Page Styles
   Converted from Next.js CSS Modules to BEM
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --primary-green: #53F293;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(83, 242, 147, 0.2);
}

button, input, textarea {
    -webkit-tap-highlight-color: rgba(83, 242, 147, 0.2);
    touch-action: manipulation;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(83, 242, 147, 0.5), 0 0 40px rgba(0, 180, 216, 0.3); }
    50% { box-shadow: 0 0 30px rgba(83, 242, 147, 0.7), 0 0 60px rgba(0, 180, 216, 0.5); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Header --- */
.header {
    background-color: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header__logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header__logo-icon img {
    border-radius: 8px;
    object-fit: cover;
    width: 40px;
    height: 40px;
}

.header__logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.header__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header__nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.header__nav-link:hover {
    color: var(--primary-green);
}

.header__nav-link--badge {
    background-color: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.header__nav-link--badge:hover {
    background-color: var(--dark-bg-secondary);
    color: var(--text-primary);
}

.header__nav-link--glow {
    position: relative;
    background: linear-gradient(135deg, #53F293 0%, #00d4aa 50%, #00b4d8 100%);
    color: #000;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    animation: glowPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(83, 242, 147, 0.5), 0 0 40px rgba(0, 180, 216, 0.3);
}

.header__nav-link--glow:hover {
    color: #000;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(83, 242, 147, 0.7), 0 0 60px rgba(0, 180, 216, 0.5);
}

.header__nav-link--glow::after {
    content: 'FREE';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* --- Hero --- */
.hero {
    padding: 1.5rem 0;
    background-color: var(--dark-bg);
}

.hero__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__image-section {
    display: flex;
    justify-content: center;
}

.hero__phone-mockups {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 540px;
}

.hero__phone-single {
    position: absolute;
    width: 250px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero__phone-image {
    position: relative;
    width: 100%;
    height: 100%;
    border: 3px solid #333;
    border-radius: 42px;
    background-color: var(--dark-bg-card);
    overflow: hidden;
}

.hero__phone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.0);
}

/* Hero carousel for dynamic images */
.hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
}

.hero__carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__carousel-slide.active {
    opacity: 1;
}

.hero__carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--dark-bg-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.6s ease 0.2s both;
}

.hero__badge-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero__title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 550px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero__coming-soon {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green) 0%, #45d97f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    align-self: flex-start;
    animation: fadeInUp 0.6s ease 0.8s both;
}

/* --- Features --- */
.features {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.features__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.features__card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.features__icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features__icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
}

.features__icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.features__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.features__description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* --- How It Works --- */
.howitworks {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.howitworks__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.howitworks__header {
    text-align: center;
    margin-bottom: 4rem;
}

.howitworks__badge {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.howitworks__title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}

.howitworks__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.howitworks__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.howitworks__phone-container {
    margin-bottom: 2rem;
}

.howitworks__phone {
    position: relative;
    width: 280px;
    height: 550px;
    border: 3px solid #333;
    border-radius: 42px;
    background-color: var(--dark-bg-card);
    overflow: hidden;
}

.howitworks__phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.howitworks__step-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.howitworks__step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto;
}

.howitworks__step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.howitworks__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Testimonials --- */
.testimonials {
    padding: 4rem 0;
    background-color: #1a1a1a;
    overflow: hidden;
}

.testimonials__container {
    max-width: 100%;
}

.testimonials__scroll {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.testimonials__scroll::-webkit-scrollbar {
    display: none;
}

.testimonials__card {
    min-width: 350px;
    background-color: var(--dark-bg-card);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.testimonials__card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.testimonials__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonials__info {
    flex: 1;
}

.testimonials__name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonials__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonials__stars {
    font-size: 0.9rem;
}

.testimonials__date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.testimonials__text {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Download / CTA --- */
.download {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.download__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download__left {
    display: flex;
    justify-content: center;
}

.download__illustration {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 450px;
}

.download__illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download__right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download__title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green) 0%, #45d97f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* --- Logo Loop --- */
.logoloop {
    position: relative;
    overflow-x: hidden;
    --logoloop-gap: 32px;
    --logoloop-logoHeight: 28px;
    --logoloop-fadeColorAuto: #ffffff;
}

.logoloop--scale-hover {
    padding-top: calc(var(--logoloop-logoHeight) * 0.15);
    padding-bottom: calc(var(--logoloop-logoHeight) * 0.15);
}

@media (prefers-color-scheme: dark) {
    .logoloop {
        --logoloop-fadeColorAuto: #0b0b0b;
    }
}

.logoloop__track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
    user-select: none;
}

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

.logoloop__item {
    flex: 0 0 auto;
    margin-right: var(--logoloop-gap);
    font-size: var(--logoloop-logoHeight);
    line-height: 0;
}

.logoloop__item:last-child {
    margin-right: var(--logoloop-gap);
}

.logoloop__node {
    display: inline-flex;
    align-items: center;
}

.logoloop__item img {
    height: var(--logoloop-logoHeight);
    width: auto;
    display: block;
    object-fit: contain;
    vertical-align: middle;
    image-rendering: -webkit-optimize-contrast;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop--scale-hover .logoloop__item {
    overflow: visible;
}

.logoloop--scale-hover .logoloop__item:hover img,
.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
    transform: scale(1.1);
    transform-origin: center center;
}

.logoloop--scale-hover .logoloop__node {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.logoloop__link:hover {
    opacity: 0.8;
}

.logoloop__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.logoloop--fade::before,
.logoloop--fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(24px, 8%, 120px);
    pointer-events: none;
    z-index: 1;
}

.logoloop--fade::before {
    left: 0;
    background: linear-gradient(to right, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

.logoloop--fade::after {
    right: 0;
    background: linear-gradient(to left, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .logoloop__track {
        transform: translate3d(0, 0, 0) !important;
    }
    .logoloop__item img,
    .logoloop__node {
        transition: none !important;
    }
}

/* --- Footer --- */
.footer {
    background-color: #f5f5f5;
    padding: 4rem 0 2rem;
    color: #000;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__column-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.footer__column-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: #333;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer__link:hover {
    color: var(--primary-green);
}

.footer__address {
    color: #333;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

.footer__compliance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    margin-top: 0.5rem;
    border-top: 1px solid #ddd;
}

.footer__compliance-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer__compliance-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.footer__compliance-value {
    display: block;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    font-weight: 400;
}

.footer__compliance-value--pending {
    font-style: italic;
    color: #bbb;
}

.footer__compliance-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__compliance-link:hover {
    color: var(--primary-green);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    /* Header */
    .header__nav { gap: 1.5rem; }
    .header__nav-link { font-size: 0.9rem; }

    /* Hero */
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero__title { font-size: 3rem; }
    .hero__phone-mockups { height: 480px; }
    .hero__phone-single { width: 230px; height: 460px; top: 50%; }
    .hero__badge { align-self: center; }
    .hero__content { text-align: center; }

    /* Features */
    .features__container { grid-template-columns: 1fr; gap: 3rem; }

    /* How It Works */
    .howitworks__steps { grid-template-columns: 1fr; gap: 4rem; }
    .howitworks__title { font-size: 2.5rem; }

    /* Download */
    .download__container { grid-template-columns: 1fr; gap: 3rem; }
    .download__title { font-size: 2.5rem; }

    /* Footer */
    .footer__columns { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .footer__compliance { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
    /* Header */
    .header__container { padding: 0 1rem; }
    .header__logo-text { font-size: 1.25rem; }
    .header__logo-icon { width: 35px; height: 35px; }
    .header__logo-icon img { width: 35px; height: 35px; }
    .header__menu-toggle { display: block; }
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }
    .header__nav.is-open { right: 0; }
    .header__nav-link { font-size: 1.1rem; width: 100%; }
    .header__nav-link--badge,
    .header__nav-link--glow {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        display: inline-block;
    }

    /* Hero */
    .hero { padding: 1.2rem 0; }
    .hero__container {
        padding: 0 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    .hero__content { order: 1; text-align: center; gap: 1.5rem; }
    .hero__image-section { order: 2; margin-top: 1rem; }
    .hero__title { font-size: 2.8rem; line-height: 1.1; margin: 0; }
    .hero__badge { align-self: center; margin: 0; }
    .hero__subtitle { font-size: 1.1rem; line-height: 1.5; margin: 0; max-width: 100%; }
    .hero__coming-soon { align-self: center; font-size: 1.3rem; }
    .hero__phone-mockups { height: 400px; max-width: 360px; }
    .hero__phone-single { width: 210px; height: 420px; left: 50%; top: 50%; transform: translate(-50%, -50%); }

    /* Features */
    .features { padding: 3rem 0; }
    .features__container { padding: 0 1rem; gap: 2.5rem; }
    .features__icon-box { width: 60px; height: 60px; }
    .features__icon { font-size: 2rem; }
    .features__icon svg { width: 2rem; height: 2rem; }
    .features__title { font-size: 1.25rem; }
    .features__description { font-size: 0.95rem; }

    /* How It Works */
    .howitworks { padding: 3rem 0; }
    .howitworks__container { padding: 0 1rem; }
    .howitworks__header { margin-bottom: 3rem; }
    .howitworks__badge { font-size: 0.85rem; padding: 0.4rem 1.25rem; }
    .howitworks__phone { width: 200px; height: 400px; }
    .howitworks__title { font-size: 1.75rem; }
    .howitworks__steps { gap: 3rem; }
    .howitworks__step-title { font-size: 1.25rem; }
    .howitworks__step-description { font-size: 0.95rem; }
    .howitworks__step-number { width: 40px; height: 40px; font-size: 1.25rem; }

    /* Testimonials */
    .testimonials__card { min-width: 300px; }

    /* Download */
    .download { padding: 3rem 0; }
    .download__container { padding: 0 1rem; gap: 2.5rem; }
    .download__right { align-items: center; text-align: center; }
    .download__title { font-size: 2rem; }
    .download__illustration { height: 250px; }

    /* Footer */
    .footer { padding: 3rem 0 1.5rem; }
    .footer__container { padding: 0 1rem; }
    .footer__columns { grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2rem; }
    .footer__column-title { font-size: 0.7rem; }
    .footer__link, .footer__address { font-size: 0.9rem; }
    .footer__compliance { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .footer__compliance-label { font-size: 0.6rem; }
    .footer__compliance-value { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .footer__columns { grid-template-columns: 1fr; gap: 2rem; }
    .footer__compliance { grid-template-columns: 1fr; gap: 1rem; }
}
