:root {
    --bg: #0b0c10;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #e63946;
    --primary-dark: #b02a36;
    --gold: #e5c07b;
    --text: #f8f9fa;
    --muted: #a0aab2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    background: var(--surface);
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ──────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.btn-ghost {
    background: var(--surface);
    color: white;
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* ── Section ─────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--gold);
}

.section-title p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Grid Layouts ────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ── Cards ───────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 24px;
}

/* ── Image Styles ────────────────────────────── */
.image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/19;
    border-radius: 30px;
    border: 4px solid #1a1a1a;
    background: var(--surface);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: 0.5s;
    object-fit: cover;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.cafe-image {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 550px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

.cafe-image:hover {
    transform: scale(1.02);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-img-wrapper:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-img-wrapper:hover::after {
    opacity: 1;
}

/* ── Steps ───────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.step-num {
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ── Legal ───────────────────────────────────── */
.legal {
    padding: 60px;
    background: #060709;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.legal-scroll-box {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 20px;
    border-radius: 8px;
}

.legal-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.legal-scroll-box::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 10px;
}

.legal-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.legal-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.legal-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--surface);
}

.legal-item:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.legal-item h4 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.legal-item.warning h4 {
    color: var(--primary);
}

.legal-item p,
.legal-item li {
    color: #8b95a1;
    font-size: 1rem;
    margin-bottom: 8px;
}

.legal-item ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #8b95a1;
    margin-bottom: 15px;
}

/* ── Forms (Checkout) ────────────────────────── */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group select option {
    background: var(--bg);
    color: var(--text);
}

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

/* F&B Add-on Items */
.fb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.fb-item:last-child {
    border-bottom: none;
}

.fb-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    color: var(--muted);
}

.fb-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.fb-item .fb-price {
    color: var(--gold);
    font-weight: 600;
}

/* Quantity */
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.qty-control button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.qty-control span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* Order Summary */
.order-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.summary-line.total {
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 20px;
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ── Footer ──────────────────────────────────── */
footer {
    padding: 80px 0 40px;
    background: #040507;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer .logo {
    justify-content: center;
    margin-bottom: 20px;
}

footer p {
    color: var(--muted);
    margin-top: 15px;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text);
}

/* ── Responsive ──────────────────────────────── */
@media(max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

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

    .order-summary {
        position: static;
    }
}
