:root {
    /* Petals brand palette — priority order */
    --pey-purple: #0D66C9;        /* petals-blue — primary */
    --pey-purple-light: #9747FF;  /* petals-purple-2 — secondary */
    --pey-pink: #DA4DDE;          /* petals-purple — accent */
    --pey-blue: #5C41EE;          /* petals-purple-3 — deep */
    --pey-lime: #FFF000;          /* petals-yellow — highlight / CTA */
    --pey-cream: #F6EFFF;         /* petals-purple-2-light — light bg */
    --pey-cyan: #9747FF;          /* petals-purple-2 */
    --pey-orange: #DA4DDE;        /* petals-purple */
}

body {
    font-family: 'DM Sans', sans-serif;
}

.pey-hero {
    background: linear-gradient(135deg, var(--pey-purple) 0%, var(--pey-purple-light) 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.pey-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    pointer-events: none;
}

.pey-hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pey-hero-title .highlight {
    color: var(--pey-lime);
    position: relative;
    display: inline-block;
}

.pey-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 500px;
}

.pey-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--pey-lime);
    color: var(--pey-purple);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255,255,255,0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid var(--pey-lime);
}

.pey-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255,255,255,0.35);
    color: var(--pey-purple);
    background: var(--pey-lime);
    border-color: var(--pey-lime);
}

.pey-cta-secondary {
    background: transparent;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: none;
}

.pey-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.pey-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(10px);
}

.pey-stat-pill strong {
    color: var(--pey-lime);
    font-weight: 700;
}

.pey-floating-pieces {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.puzzle-piece {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pey-purple);
    animation: float 3s ease-in-out infinite;
}

.puzzle-piece:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.puzzle-piece:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.puzzle-piece:nth-child(3) {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

.puzzle-piece:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}


/* Advertiser Section */
.adv-section {
    background: linear-gradient(135deg, #07091f 0%, #130d3a 60%, #0e1a3a 100%);
    padding: 100px 0 60px;
}

.adv-eyebrow {
    display: inline-block;
    background: var(--pey-lime);
    color: var(--pey-purple);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.adv-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.adv-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

.adv-subtitle strong {
    color: var(--pey-lime);
    font-weight: 600;
}

.adv-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.adv-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.98rem;
}

.adv-benefits strong {
    color: #fff;
}

.adv-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--pey-lime);
    color: var(--pey-purple);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}

.adv-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.adv-form-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 28px;
    text-align: center;
}

.adv-form-group {
    margin-bottom: 14px;
}

.adv-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.adv-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.adv-input:focus {
    border-color: var(--pey-lime);
    background: rgba(255, 255, 255, 0.11);
}

.adv-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.78rem;
    margin-top: 5px;
}

.adv-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--pey-lime);
    color: var(--pey-purple);
    border: none;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.adv-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 255, 0, 0.35);
}

.adv-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.adv-caveat {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    margin-top: 64px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .adv-title {
        font-size: 2.2rem;
    }

    .adv-form-card {
        padding: 24px;
        margin-top: 20px;
    }
}

/* How It Works */
.pey-section {
    padding: 80px 0;
}

.pey-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pey-purple);
    text-align: center;
    margin-bottom: 50px;
}

.pey-step-card {
    background: #fff;
    border: 3px solid #f0f0f0;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.pey-step-card:hover {
    transform: translateY(-8px);
    border-color: #DA4DDE;
    box-shadow: 0 12px 32px rgba(218, 77, 222, 0.12);
}

.pey-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--pey-purple), var(--pey-purple-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(45, 27, 105, 0.25);
}

.pey-step-number {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #DA4DDE;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(218, 77, 222, 0.3);
}

.pey-step-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: var(--pey-purple);
    margin-bottom: 12px;
}

.pey-step-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Game Showcase */
.pey-game-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.pey-game-tile {
    background: #fff;
    border: 3px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.pey-game-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(13, 102, 201, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pey-game-tile:hover::before {
    opacity: 1;
}

.pey-game-tile:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #0D66C9;
    box-shadow: 0 16px 40px rgba(13, 102, 201, 0.12);
}

.pey-game-tile.large { grid-column: span 6; }
.pey-game-tile.medium { grid-column: span 4; }
.pey-game-tile.small { grid-column: span 3; }

@media (max-width: 768px) {
    .pey-game-tile.large,
    .pey-game-tile.medium,
    .pey-game-tile.small { grid-column: span 12; }
}

.pey-game-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.pey-game-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    color: var(--pey-purple);
    margin-bottom: 8px;
}

.pey-game-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pey-game-earn {
    display: inline-block;
    padding: 6px 14px;
    background: #0D66C9;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.pey-game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--pey-pink);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Earnings Feed */
.pey-earnings-feed {
    background: linear-gradient(135deg, var(--pey-purple), var(--pey-purple-light));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.pey-earnings-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.pey-earnings-scroll {
    display: flex;
    gap: 16px;
    animation: scroll 20s linear infinite;
    padding: 10px 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.pey-earnings-item {
    flex: 0 0 auto;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: #fff;
}

.pey-earnings-name {
    font-weight: 600;
}

.pey-earnings-amount {
    font-family: 'JetBrains Mono', monospace;
    color: var(--pey-lime);
    font-weight: 700;
}

/* Hero Image */
.pey-hero-image {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Clients Scrolling Bar */
.pey-clients-bar {
    padding: 56px 0;
    background: #fff;
}

.pey-clients-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: var(--pey-purple);
    text-align: center;
    margin-bottom: 32px;
}

.pey-clients-scroll-outer {
    overflow: hidden;
    width: 100%;
}

.pey-clients-scroll {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: scroll 25s linear infinite;
    padding: 8px 0;
}

.pey-client-scroll-logo {
    flex: 0 0 auto;
    height: 52px;
    width: auto;
    /* opacity: 0.55; */
    /* filter: grayscale(1); */
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.pey-client-scroll-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ============================================================
   Landing Page — Mobile Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .pey-hero {
        padding: 56px 0 64px;
    }

    .pey-hero-title {
        font-size: 2.8rem;
    }

    /* Clients scroll: smaller logos on tablet */
    .pey-client-scroll-logo {
        height: 42px;
    }

    .pey-clients-scroll {
        gap: 36px;
    }
}

@media (max-width: 767.98px) {
    /* Hero */
    .pey-hero {
        padding: 40px 0 48px;
        text-align: center;
    }

    .pey-hero-title {
        font-size: 2.1rem;
    }

    .pey-hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Centre the CTA buttons row */
    .pey-hero .d-flex {
        justify-content: center;
    }

    /* Stat pills */
    /* .pey-stat-pill {
        background: rgba(0, 0, 0, 0.06);
        color: inherit;
    } */

    /* Live earnings feed title */
    .pey-earnings-title {
        font-size: 1.4rem;
        padding: 0 16px;
    }

    /* Clients section */
    .pey-clients-bar {
        padding: 40px 0;
    }

    .pey-clients-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .pey-client-scroll-logo {
        height: 36px;
    }

    .pey-clients-scroll {
        gap: 28px;
    }

    /* Final CTA section */
    .pey-section {
        padding: 56px 0;
    }

    .pey-section-title {
        font-size: 2rem;
    }

    .pey-cta {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   Advertiser Demo Section
   ============================================= */
.adv-section {
    padding: 90px 0 70px;
    background: #fff;
}

.adv-header {
    text-align: center;
    margin-bottom: 56px;
}

.adv-eyebrow {
    display: inline-block;
    padding: 5px 16px;
    background: #fff;
    border: 1.5px solid #0D66C9;
    border-radius: 50px;
    color: #0D66C9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.adv-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.adv-subtitle {
    font-size: 1rem;
    color: #555;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Benefits Grid */
.adv-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.adv-benefit-card {
    background: linear-gradient(140deg, #0D66C9 0%, #5C41EE 100%);
    border: none;
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(13, 102, 201, 0.2);
}

.adv-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(13, 102, 201, 0.32);
}

.adv-benefit-card--highlight {
    background: linear-gradient(140deg, #9747FF 0%, #DA4DDE 100%);
    box-shadow: 0 4px 20px rgba(218, 77, 222, 0.2);
}

.adv-benefit-card--highlight:hover {
    box-shadow: 0 12px 32px rgba(218, 77, 222, 0.32);
}

.adv-benefit-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.adv-benefit-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.adv-benefit-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adv-benefit-desc {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
    margin: 0;
}

/* Quote */
.adv-quote {
    background: #fff;
    border-left: 4px solid #DA4DDE;
    border-radius: 0 12px 12px 0;
    padding: 20px 28px;
    margin-bottom: 48px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.adv-quote p {
    color: #444;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.adv-quote p strong {
    color: #111;
}

/* Demo Form */
.adv-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 44px;
    max-width: 720px;
    margin: 0 auto 28px;
    box-shadow: 0 4px 32px rgba(13, 102, 201, 0.1);
}

.adv-form-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0D66C9;
    margin-bottom: 4px;
    text-align: center;
}

.adv-form-sub {
    color: #888;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 28px;
}

.adv-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.adv-form-group {
    display: flex;
    flex-direction: column;
}

.adv-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.93rem;
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.adv-input:focus {
    border-color: #0D66C9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 102, 201, 0.08);
}

.adv-input::placeholder {
    color: #bbb;
}

.adv-error {
    font-size: 0.77rem;
    color: #dc3545;
    margin-top: 4px;
}

.adv-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 48px;
    background: #0D66C9;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(13, 102, 201, 0.3);
    transition: all 0.25s ease;
    font-family: 'DM Sans', sans-serif;
    margin-top: 8px;
}

.adv-submit-btn:hover:not(:disabled) {
    background: #9747FF;
    box-shadow: 0 8px 24px rgba(151, 71, 255, 0.3);
    transform: translateY(-2px);
}

.adv-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Caveat */
.adv-caveat {
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 991px) {
    .adv-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .adv-title {
        font-size: 2rem;
    }

    .adv-benefits-grid {
        grid-template-columns: 1fr;
    }

    .adv-form-card {
        padding: 28px 20px;
    }

    .adv-form-row {
        grid-template-columns: 1fr;
    }
}