html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: white;
    position: relative;
}

/* === BUTTONS === */
.btn-shadow-primary {
    box-shadow: 0px 4px 0px 0px #CC5200;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-shadow-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px 0px #CC5200;
}

.btn-shadow-primary:active {
    box-shadow: 0px 0px 0px 0px #CC5200;
    transform: translateY(4px);
}

.btn-shadow-secondary {
    box-shadow: 0px 4px 0px 0px #e5e7eb;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-shadow-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px 0px #e5e7eb;
}

.btn-shadow-secondary:active {
    box-shadow: 0px 0px 0px 0px #e5e7eb;
    transform: translateY(4px);
}

/* === HERO ANIMATIONS === */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float-slow {
    animation: float 4s ease-in-out infinite;
}

.animate-float-medium {
    animation: float 3s ease-in-out infinite;
}

.animate-float-fast {
    animation: float 2.5s ease-in-out infinite;
}

@keyframes orbit {
    0% {
        transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg));
    }

    100% {
        transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc((var(--angle) * -1deg) - 360deg));
    }
}

.animate-orbit {
    animation: orbit calc(var(--duration) * 1s) linear infinite;
}

/* === ENTRANCE ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-down {
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #FF6600;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: 0.12s;
}

.reveal-d2 {
    transition-delay: 0.24s;
}

.reveal-d3 {
    transition-delay: 0.36s;
}

/* === SCROLL HINT === */
@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.scroll-hint {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* === STEP CARDS === */
.step-card {
    background: white;
    border: 2px solid #F1F5F9;
    border-bottom-width: 6px;
    border-bottom-color: #E2E8F0;
    border-radius: 24px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.step-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    border-bottom-color: #FF6600;
    border-color: #FDDDB3;
}

.step-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: #FF6600;
    color: white;
    font-weight: 900;
    font-size: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 0 #CC5200;
}

/* === MOCK BROWSER === */
.mock-browser {
    position: relative;
    background: #1E1E1E;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
    max-width: 880px;
    margin: 0 auto;
}

/* Inner wrapper for demo content */
.demo-zoom-inner {
    position: relative;
}

.mock-toolbar {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    gap: 14px;
    background: #2A2A2A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-dots {
    display: flex;
    gap: 7px;
}

.mock-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-dots span:nth-child(1) {
    background: #FF5F56;
}

.mock-dots span:nth-child(2) {
    background: #FFBD2E;
}

.mock-dots span:nth-child(3) {
    background: #27C93F;
}

.mock-url {
    flex: 1;
    background: #1A1A1A;
    border-radius: 8px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 600;
}

/* Extension icons in toolbar */
.mock-extensions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.mock-ext-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: background 0.2s;
}

.mock-ext-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mock-ext-icon.bread-ext {
    background: rgba(255, 102, 0, 0.15);
    border: 1px solid rgba(255, 102, 0, 0.25);
}

.mock-ext-icon.bread-ext img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.mock-viewport {
    position: relative;
    background: #F8FAFB;
    min-height: 400px;
    overflow: hidden;
}

/* Fake website inside browser */
.fsite {
    padding: 24px 32px;
    opacity: 0.7;
}

.fsite-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #EEF2F6;
}

.fsite-logo {
    width: 90px;
    height: 22px;
    background: #DDE3EA;
    border-radius: 6px;
}

.fsite-links {
    display: flex;
    gap: 14px;
}

.fsite-links span {
    width: 44px;
    height: 10px;
    background: #E8ECF1;
    border-radius: 4px;
    display: block;
}

.fsite-h {
    width: 55%;
    height: 26px;
    background: #C8D0DA;
    border-radius: 6px;
    margin-bottom: 14px;
}

.fsite-p {
    height: 10px;
    background: #E2E8F0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.fsite-p.w80 {
    width: 80%;
}

.fsite-p.w60 {
    width: 60%;
}

.fsite-p.w90 {
    width: 90%;
}

.fsite-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #E2E8F0, #F0F3F7);
    border-radius: 10px;
    margin: 20px 0;
}

.fsite-btn {
    width: 110px;
    height: 30px;
    background: #C8D0DA;
    border-radius: 8px;
    margin-top: 6px;
}

/* Demo Ad Popup */
.demo-popup {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 270px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    z-index: 10;
    font-family: 'Nunito', sans-serif;
    transition: none;
}

/* Popup animation now triggered via JS, not auto on .demo-active */

@keyframes demoPopIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.88);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo-vid {
    position: relative;
    height: 145px;
    background: #0A0A0A;
    overflow: hidden;
}

.demo-vid-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 300% 300%;
}

/* Vid-bg gradient animation now triggered via JS */

@keyframes gradShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.demo-vid-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.demo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.demo-prog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.demo-prog-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6600, #FF9E40);
    border-radius: 2px;
}

/* Prog-bar animation now triggered via JS */

@keyframes progFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.demo-foot {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.demo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.demo-brand-name {
    font-weight: 800;
    font-size: 13px;
    color: #1A1A1A;
    display: block;
    line-height: 1.2;
}

.demo-brand-sub {
    font-size: 9px;
    color: #888;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.demo-reward-lbl {
    font-size: 9px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.demo-claim {
    background: #EBEBEB;
    color: #AAA;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 8px;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-claim.ready {
    background: #FF6600;
    color: white;
    box-shadow: 0 3px 0 0 #CC5200;
    transform: scale(1.05);
}

.demo-claim.claimed {
    background: #10B981;
    color: white;
    box-shadow: 0 3px 0 0 #0D9668;
}

/* Demo Toast */
.demo-toast {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1A1A1A;
    color: white;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    z-index: 20;
    opacity: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.demo-active .demo-toast.show {
    animation: toastPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastPop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* Demo Mouse Cursor - positioned relative to .mock-browser */
.demo-cursor {
    position: absolute;
    top: 55%;
    left: 40%;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
    transition: none;
}

.demo-active .demo-cursor {
    opacity: 1;
    transition: opacity 0.3s 0.6s, top 1.2s cubic-bezier(0.45, 0, 0.15, 1), left 1.2s cubic-bezier(0.45, 0, 0.15, 1);
}

.demo-cursor.clicking {
    animation: cursorClick 0.25s ease;
}

@keyframes cursorClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* Demo Extension Popup */
.demo-ext-popup {
    display: none;
    position: absolute;
    top: 48px;
    right: 10px;
    width: 250px;
    background: #FFFFFF;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 30;
    font-family: 'Nunito', sans-serif;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow: hidden;
}

.demo-ext-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header with mascot */
.demo-ext-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px 4px;
    position: relative;
}

.demo-ext-mascot {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.demo-ext-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.demo-ext-status-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 8px;
    font-weight: 800;
    color: #1A1A1A;
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.demo-ext-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22C55E;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.demo-ext-title {
    font-size: 15px;
    font-weight: 700;
    color: #FF6600;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    margin-bottom: 2px;
}

/* Balance Card */
.demo-ext-balance-card {
    background: #FF6600;
    margin: 6px 12px 8px;
    padding: 10px 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0px 3px 0px 0px #CC5200;
    position: relative;
    overflow: hidden;
}

.demo-ext-balance-label {
    font-size: 7px;
    color: #FFFFFF;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.demo-ext-balance-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.demo-ext-balance-amount {
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -1px;
}

.demo-ext-coin {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.demo-ext-usd {
    font-size: 9px;
    color: #FF6600;
    font-weight: 700;
    background: #FFFFFF;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Dashboard Button */
.demo-ext-actions {
    padding: 0 12px;
    margin-bottom: 8px;
}

.demo-ext-btn {
    background: #FF6600;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0px 3px 0px 0px #CC5200;
}

.demo-ext-btn svg {
    stroke: #FFFFFF;
}

/* Slider Card */
.demo-ext-slider-card {
    background: white;
    margin: 0 12px 8px;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0px 3px 0px 0px #E5E5E5;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.demo-ext-slider-label {
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #666;
    margin-bottom: 6px;
    text-align: center;
}

.demo-ext-slider-wrap {
    padding: 0 2px;
}

.demo-ext-slider-track {
    position: relative;
    width: 100%;
    height: 5px;
    background: #F0F0F0;
    border-radius: 3px;
}

.demo-ext-slider-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FF6600;
    box-shadow: 0px 2px 0px 0px #CC5200, 0 2px 6px rgba(255, 102, 0, 0.3);
    border: 2px solid white;
    transition: left 1.5s cubic-bezier(0.45, 0, 0.15, 1);
}

.demo-ext-slider-thumb.dragging {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0px 1px 0px 0px #CC5200, 0 2px 10px rgba(255, 102, 0, 0.45);
}

.demo-ext-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.demo-ext-tick {
    font-size: 7px;
    font-weight: 700;
    color: #BBB;
    transition: color 0.3s, transform 0.3s;
}

.demo-ext-tick.active {
    color: #FF6600;
    transform: scale(1.08);
    font-weight: 800;
}

/* Bottom Navbar */
.demo-ext-navbar {
    display: flex;
    background: #FF6600;
    width: 100%;
    height: 32px;
    align-items: center;
    justify-content: space-around;
    margin-top: 4px;
}

.demo-ext-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.demo-ext-nav-btn svg {
    stroke: #FFFFFF;
}

.demo-ext-nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
}

.demo-ext-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    width: 3px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 50%;
}

/* === FEATURE CARDS === */
.feat-card {
    background: #222;
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feat-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.12);
}

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
}

/* === FAQ === */
.faq-item {
    border: 2px solid #F1F5F9;
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.open {
    border-color: #FDDDB3;
}

.faq-q {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Nunito', sans-serif;
}

.faq-q span {
    font-weight: 800;
    font-size: 16px;
    color: #1A1A1A;
}

.faq-icon {
    font-size: 22px;
    color: #FF6600;
    font-weight: 900;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-a-inner {
    padding: 0 24px 20px 24px;
    color: #64748B;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.7;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .mock-viewport {
        min-height: 320px;
    }

    .demo-popup {
        width: 210px;
        bottom: 10px;
        right: 10px;
        border-radius: 14px;
    }

    .demo-vid {
        height: 105px;
    }

    .demo-foot {
        padding: 8px 10px;
    }

    .demo-brand img {
        width: 22px;
        height: 22px;
    }

    .demo-brand-name {
        font-size: 11px;
    }

    .demo-claim {
        padding: 5px 10px;
        font-size: 8px;
    }

    .demo-toast {
        font-size: 11px;
        padding: 8px 14px;
        bottom: 14px;
    }

    .fsite {
        padding: 16px 20px;
    }

    .fsite-img {
        height: 60px;
    }

    .demo-ext-popup {
        width: 200px;
    }

    .demo-ext-mascot {
        width: 44px;
        height: 44px;
    }

    .demo-ext-balance-amount {
        font-size: 20px;
    }

    .demo-ext-coin {
        width: 16px;
        height: 16px;
    }

    .demo-ext-balance-card {
        margin: 4px 8px 6px;
        padding: 8px 12px;
    }

    .demo-ext-btn {
        padding: 6px;
        font-size: 8px;
    }

    .demo-ext-actions {
        padding: 0 8px;
        margin-bottom: 6px;
    }

    .demo-ext-slider-card {
        margin: 0 8px 6px;
        padding: 6px 10px;
    }

    .demo-ext-navbar {
        height: 26px;
    }

    .demo-ext-nav-btn {
        width: 20px;
        height: 20px;
    }

    .demo-ext-nav-btn svg {
        width: 10px;
        height: 10px;
    }
}