:root {
    --brand: #ea1d2c;
    --brand-dark: #c91320;
    --text: #1f1f24;
    --muted: #646470;
    --bg: #fff8f3;
    --surface: #ffffff;
    --line: #ece9e5;
    --card-red: linear-gradient(135deg, #ef3e3e, #c91d2f);
    --card-orange: linear-gradient(135deg, #ff8f40, #ff5d2a);
    --card-green: linear-gradient(135deg, #3ac87d, #178b51);
    --card-blue: linear-gradient(135deg, #4f80ff, #2f57d2);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% -5%, #ffe0cb 0%, transparent 35%), var(--bg);
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: rgb(255 255 255 / 88%);
    border-bottom: 1px solid rgb(0 0 0 / 8%);
}

.topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 6px rgb(234 29 44 / 14%);
}

.brand-text {
    font-family: "Archivo", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.top-nav {
    display: flex;
    gap: 1.2rem;
}

.top-nav a {
    font-weight: 500;
    color: #3a3a43;
}

.top-nav a:hover {
    color: var(--brand);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-ghost {
    background: #f7f6f4;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.hero {
    position: relative;
    isolation: isolate;
    padding: 3.5rem 0 2.4rem;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 15%, rgb(234 29 44 / 20%), transparent 40%),
        radial-gradient(circle at 20% 30%, rgb(255 154 85 / 30%), transparent 45%);
}

.hero-content {
    text-align: center;
    max-width: 820px;
}

.hero-tag {
    display: inline-flex;
    margin: 0;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    background: rgb(234 29 44 / 10%);
}

.hero h1 {
    font-family: "Archivo", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin: 1rem 0 0.7rem;
}

.hero-subtitle {
    color: var(--muted);
    margin: 0 auto 1.6rem;
    font-size: 1.06rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 30px rgb(45 29 20 / 7%);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
    border-radius: 12px;
    background: #faf9f7;
}

.search-box button {
    border: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hero-pills {
    margin-top: 1.05rem;
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-pills span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.86rem;
    color: #44444f;
}

.highlights {
    padding: 0.6rem 0 2.2rem;
}

.grid-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.highlight-card {
    border-radius: 18px;
    color: #fff;
    padding: 1rem;
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 25px rgb(0 0 0 / 12%);
}

.highlight-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.highlight-card h3 {
    margin: 0.2rem 0 0;
    font-family: "Archivo", sans-serif;
    font-size: 1.4rem;
}

.card-a {
    background: linear-gradient(120deg, #f15f53, #db1f46);
}

.card-b {
    background: linear-gradient(120deg, #ff9f32, #ff5a22);
}

.card-c {
    background: linear-gradient(120deg, #36b79d, #1b7f8e);
}

.categories,
.restaurants,
.app-banner {
    padding: 0.8rem 0 2.2rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.section-head h2 {
    margin: 0;
    font-family: "Archivo", sans-serif;
    font-size: 1.55rem;
}

.section-head a {
    color: var(--brand);
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.category-item {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    padding: 0.75rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: 0.2s ease;
}

.category-item:hover,
.category-item.active {
    border-color: rgb(234 29 44 / 40%);
    transform: translateY(-2px);
}

.emoji {
    font-size: 1.3rem;
}

.category-item strong {
    font-size: 0.95rem;
}

.category-item small {
    color: var(--muted);
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.restaurant-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgb(0 0 0 / 5%);
    transition: 0.2s ease;
}

.restaurant-card:hover {
    transform: translateY(-4px);
}

.restaurant-cover {
    min-height: 118px;
    padding: 0.8rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.restaurant-cover span {
    background: rgb(255 255 255 / 88%);
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #18181c;
}

.restaurant-body {
    padding: 0.85rem;
}

.restaurant-body h3 {
    margin: 0;
    font-size: 1.02rem;
}

.restaurant-body p {
    margin: 0.2rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.meta-line {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.meta-line span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-size: 0.77rem;
}

.app-banner-inner {
    background: linear-gradient(130deg, #262626, #18181b 65%);
    color: #fff;
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 1rem;
}

.app-tag {
    margin: 0;
    color: #ffac7f;
    font-weight: 700;
}

.app-banner-inner h2 {
    margin: 0.5rem 0;
    font-family: "Archivo", sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.app-banner-inner p {
    margin: 0;
    max-width: 620px;
    color: #e3e3e8;
}

.store-buttons {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.store-buttons a {
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 12px;
    padding: 0.6rem 0.92rem;
    font-weight: 600;
}

.phone-mockup {
    justify-self: center;
    width: 215px;
    height: 390px;
    border-radius: 30px;
    border: 7px solid #0d0d0f;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 20px;
    border-radius: 999px;
    background: #0d0d0f;
    z-index: 3;
}

.phone-screen {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgb(234 29 44 / 18%), transparent 45%),
        repeating-linear-gradient(
            to bottom,
            #fff,
            #fff 24px,
            #f6f5f4 24px,
            #f6f5f4 48px
        );
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1rem 0 1.4rem;
    margin-top: 0.8rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #4f4f58;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: riseUp 0.6s ease both;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.08s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.16s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.24s;
}

@media (max-width: 1024px) {
    .top-nav {
        position: fixed;
        inset: 78px 0 auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 0.8rem 1rem;
        transform: translateY(-120%);
        transition: 0.2s ease;
        display: grid;
        gap: 0.5rem;
    }

    .top-nav.open {
        transform: translateY(0);
    }

    .menu-toggle {
        display: inline-block;
    }

    .top-actions .btn {
        display: none;
    }

    .grid-highlights {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .restaurant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 2.3rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .category-grid,
    .restaurant-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
