/* ===================================
   WheelBite Landing Page – Full Styles
   =================================== */

:root {
    --primary: #6F4E37;
    --secondary: #A67C52;
    --light: #F8F5F0;
    --white: #ffffff;
    --dark: #2C2C2C;
    --text: #555;
    --border: #ECECEC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ---------- NAVIGATION ---------- */
nav {
    width: 100%;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    color: #444;
    font-weight: 500;
    transition: .3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* ---------- BUTTONS ---------- */
.btn,
.primary,
.secondary {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 50px;
    transition: .35s;
    font-weight: 600;
}

.primary {
    background: var(--primary);
    color: white;
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(111, 78, 55, .25);
}

.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.secondary:hover {
    background: var(--primary);
    color: white;
}

/* ---------- HERO ---------- */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(#ffffff, #f9f6f2);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p {
    color: var(--text);
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    margin: auto;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ---------- SECTION TITLE ---------- */
section {
    padding: 100px 0;
}

.title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
}

/* ---------- FEATURES ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.feature {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    transition: .35s;
    border: 1px solid var(--border);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, .08);
}

.feature i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.feature p {
    color: var(--text);
    line-height: 1.8;
}

/* ---------- GREY SECTION ---------- */
.grey {
    background: var(--light);
}

/* ---------- HOW IT WORKS ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.steps div {
    background: #fff;
    padding: 35px 20px;
    border-radius: 20px;
    transition: .35s;
    border: 1px solid var(--border);
}

.steps div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.circle {
    width: 70px;
    height: 70px;
    margin: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #6F4E37;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
}

.steps h3 {
    font-size: 20px;
}

/* ---------- PRICING ---------- */
.price-card {
    max-width: 420px;
    margin: auto;
    background: #fff;
    padding: 55px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
}

.price-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.price {
    font-size: 60px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 35px;
}

.price span {
    font-size: 20px;
    color: #777;
}

.price-card ul {
    list-style: none;
    margin-bottom: 35px;
}

.price-card ul li {
    padding: 12px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.price-card .primary {
    width: 100%;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: .35s;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.faq-item h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, #6F4E37, #8B5E3C);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: .9;
}

.cta .primary {
    background: #fff;
    color: #6F4E37;
}

.cta .primary:hover {
    background: #f5f5f5;
}

/* ---------- FOOTER ---------- */
footer {
    background: #2b2b2b;
    color: #ddd;
    padding: 70px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 28px;
}

.footer p {
    color: #bbb;
}

.footer div:last-child {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer a {
    color: #ccc;
    transition: .3s;
}

.footer a:hover {
    color: white;
}

/* ---------- FADE ANIMATION ---------- */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F7F7F7;
}

::-webkit-scrollbar-thumb {
    background: #6F4E37;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4E342E;
}

/* ---------- HERO BACKGROUND EFFECTS ---------- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: rgba(111, 78, 55, .05);
    border-radius: 50%;
    right: -250px;
    top: -200px;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(166, 124, 82, .05);
    left: -180px;
    bottom: -150px;
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 2;
}

/* ---------- BUTTON EFFECT (primary) ---------- */
.primary {
    position: relative;
    overflow: hidden;
}

.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .25);
    transform: skewX(-25deg);
    transition: .6s;
}

.primary:hover::before {
    left: 130%;
}

/* ---------- IMAGE HOVER ---------- */
.hero-image img {
    transition: .5s;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* ---------- FEATURE ICON ---------- */
.feature i {
    transition: .4s;
}

.feature:hover i {
    transform: rotate(12deg) scale(1.15);
}

/* ---------- PRICE CARD HOVER ---------- */
.price-card {
    transition: .35s;
}

.price-card:hover {
    transform: translateY(-10px);
}

/* ---------- FOOTER LINK UNDERLINE ---------- */
.footer a {
    position: relative;
}

.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: white;
    transition: .3s;
}

.footer a:hover::after {
    width: 100%;
}

/* ---------- GLOW EFFECT ---------- */
.primary:hover {
    box-shadow: 0 0 20px rgba(111, 78, 55, .3), 0 15px 35px rgba(111, 78, 55, .25);
}

/* ---------- SELECTION COLOR ---------- */
::selection {
    background: #6F4E37;
    color: white;
}

/* =============================================
   PHONE MOCKUP – INTERACTIVE DEMO
   ============================================= */

.preview-section {
    background: #faf7f2;
}

.phone-mockup {
    max-width: 380px;
    margin: 0 auto;
    background: #000;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Status bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 6px 20px 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* App screen (white background) */
.app-screen {
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    padding: 16px 18px 12px;
    min-height: 600px;
    position: relative;
}

/* ---------- PAGES ---------- */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ---------- PAGE 1: SCAN ---------- */
.scan-content {
    text-align: center;
    padding: 30px 20px;
}

.scan-icon {
    font-size: 60px;
    color: #6F4E37;
    margin-bottom: 16px;
}

.scan-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #3d2a1c;
}

.scan-content p {
    color: #8a7a6a;
    margin: 8px 0 24px;
}

.scan-frame {
    width: 160px;
    height: 160px;
    border: 4px solid #6F4E37;
    border-radius: 16px;
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #6F4E37;
    animation: scanMove 2s infinite linear;
}

@keyframes scanMove {
    0% {
        top: 0;
    }
    50% {
        top: calc(100% - 4px);
    }
    100% {
        top: 0;
    }
}

.scan-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 60px;
    background: #6F4E37;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.3);
}

.scan-btn:hover {
    background: #563b29;
    transform: scale(1.03);
}

.scan-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ---------- PAGE 2: CATEGORIES ---------- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.app-header .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #6F4E37;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 40px;
    background: #f0ebe6;
}

.app-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #3d2a1c;
}

.app-header .brand i {
    color: #6F4E37;
}

.category-grid-demo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.cat-card {
    background: #fdfbf9;
    border: 1px solid #f0ebe6;
    border-radius: 24px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #d6c6b8;
}

.cat-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.cat-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #3d2a1c;
}

.cat-card span {
    font-size: 13px;
    color: #8a7a6a;
    background: #f0ebe6;
    padding: 2px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 4px;
}

/* ---------- PAGE 3: SPIN & MENU ---------- */
.category-info {
    text-align: center;
    margin: 12px 0 6px;
}

.category-image-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f0ebe6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 32px;
    color: #6F4E37;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #3d2a1c;
}

.category-sub {
    color: #8a7a6a;
    font-size: 14px;
}

/* Pointer & wheel */
.pointer-wrapper {
    height: 20px;
    display: flex;
    justify-content: center;
    margin: 2px 0 0;
}

.pointer {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 28px solid #6F4E37;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.wheel-wrapper {
    display: flex;
    justify-content: center;
    margin: -4px 0 6px;
}

#demoWheel {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #fcf9f6;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* Spin button */
.spin-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #6F4E37;
    color: #fff;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.30);
    margin-top: 8px;
}

.spin-btn:hover {
    background: #563b29;
    transform: scale(1.02);
}

.spin-btn:active {
    transform: scale(0.96);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bottom Navigation (demo) */
.bottom-nav-demo {
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #f0ebe6;
    padding: 6px 0 4px;
    margin: 16px -18px 0;
}

.bottom-nav-demo .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 11px;
    color: #8a7a6a;
    gap: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    transition: 0.2s;
    font-weight: 500;
}

.bottom-nav-demo .nav-item i {
    font-size: 20px;
}

.bottom-nav-demo .nav-item.active {
    color: #6F4E37;
}

.bottom-nav-demo .nav-item.active i {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(111, 78, 55, 0.15);
}

.bottom-nav-demo .nav-item:hover {
    background: #f8f4f0;
}

/* Menu View */
.menu-view {
    padding: 10px 0 12px;
}

.menu-list-demo {
    margin-bottom: 16px;
}

.menu-item-demo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 16px;
    background: #fdfbf9;
    border: 1px solid #f0ebe6;
    margin-bottom: 8px;
}

.menu-item-demo img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.menu-item-demo div {
    flex: 1;
}

.menu-item-demo h4 {
    font-size: 16px;
    font-weight: 600;
    color: #3d2a1c;
}

.menu-item-demo p {
    font-size: 15px;
    font-weight: 700;
    color: #6F4E37;
}

.menu-divider-demo {
    margin: 12px 0;
    border-top: 1px solid #ececec;
}

.menu-btn-demo {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 60px;
    background: #f0ebe6;
    color: #3d2a1c;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.menu-btn-demo:hover {
    background: #e5ddd6;
}

/* Result overlay inside phone */
.demo-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 36px;
    z-index: 20;
}

.result-card {
    background: #fff;
    padding: 30px 24px 24px;
    border-radius: 28px;
    text-align: center;
    max-width: 280px;
    width: 90%;
    position: relative;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-card .close-result {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.result-card .result-image {
    font-size: 56px;
    color: #6F4E37;
    margin-bottom: 8px;
}

.result-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #3d2a1c;
}

.result-card #demoWinnerName {
    font-size: 28px;
    font-weight: 700;
    color: #6F4E37;
    display: block;
    margin: 4px 0 16px;
}

.result-action {
    padding: 10px 30px;
    border: none;
    border-radius: 60px;
    background: #6F4E37;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.result-action:hover {
    background: #563b29;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero {
        padding-top: 130px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        margin-top: 50px;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }
    .nav {
        height: 70px;
    }
    .logo {
        font-size: 24px;
    }
    nav ul {
        display: none;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 17px;
    }
    .title {
        font-size: 32px;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .price-card {
        padding: 35px;
    }
    .price {
        font-size: 48px;
    }
    .cta h2 {
        font-size: 34px;
    }
    .footer {
        text-align: center;
    }
    .footer div:last-child {
        align-items: center;
    }
    .secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .primary,
    .secondary {
        width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 110px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero p {
        font-size: 16px;
    }
    .logo {
        font-size: 22px;
    }
    .container {
        width: 92%;
    }
    .feature {
        padding: 30px;
    }
    .steps div {
        padding: 25px;
    }
    .price {
        font-size: 42px;
    }
    .cta {
        padding: 70px 20px;
    }
    .cta h2 {
        font-size: 30px;
    }

    /* Phone mockup adjustments */
    .phone-mockup {
        border-radius: 32px;
        padding: 8px;
    }
    .app-screen {
        border-radius: 28px;
        padding: 12px 14px 8px;
        min-height: 520px;
    }
    #demoWheel {
        max-width: 260px;
    }
    .spin-btn {
        font-size: 16px;
        padding: 12px;
    }
    .bottom-nav-demo {
        margin: 12px -14px 0;
    }
}


/* ---------- Simple Tap Indicator ---------- */
.tap-indicator {
    /*margin-top: 16px;*/
    font-size: 16px;
    color: #6F4E37;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.9;
    animation: gentleBounce 1s infinite ease-in-out;
    transition: opacity 0.4s ease;
}

.tap-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}


/* ---------- HAMBURGER MENU ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Animate hamburger to X when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}




/* Mobile & tablet nav – no shade */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        padding: 40px 20px;
        list-style: none;
        margin: 0;
        display: flex; /* override display:none from earlier */
    }

    nav ul.active {
        right: 0;
    }

    nav ul li a {
        font-size: 20px;
        color: var(--dark);
    }
}
