* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #fff8fa;
    color: #2d1f24;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 248, 250, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3d6df;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar div {
    display: flex;
    gap: 22px;
    align-items: center;
}

.brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #c2255c;
}

.brand.center {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.hero {
    min-height: 670px;
    padding: 70px 7%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    background:
        radial-gradient(circle at top right, #ffdce8 0, transparent 35%),
        linear-gradient(135deg, #fff8fa, #ffe3ec);
}

.hero h1 {
    font-size: 66px;
    line-height: 1;
    margin: 10px 0 20px;
    max-width: 760px;
}

.hero p {
    font-size: 20px;
    color: #6b4b55;
    max-width: 620px;
}

.eyebrow {
    display: inline-block;
    color: #c2255c;
    background: #ffe3ec;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.btn, button {
    background: #c2255c;
    color: white;
    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 12px 24px rgba(194, 37, 92, 0.22);
}

.btn.secondary {
    background: white;
    color: #c2255c;
}

.btn.full, button.full {
    width: 100%;
    text-align: center;
}

.hero-card {
    background: white;
    border-radius: 42px;
    padding: 28px;
    box-shadow: 0 35px 80px rgba(194, 37, 92, 0.18);
    transform: rotate(2deg);
}

.hero-card img {
    width: 100%;
    border-radius: 34px;
}

.features {
    padding: 50px 7%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.features div, .challenge, .card, .form-box, .cart, .checkout-panel, .summary, .product-detail {
    background: white;
    border: 1px solid #f3d6df;
    box-shadow: 0 18px 45px rgba(80, 35, 50, 0.08);
}

.features div {
    padding: 28px;
    border-radius: 28px;
}

.features h3 {
    margin-top: 0;
}

.challenge {
    margin: 40px 7% 70px;
    padding: 42px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.challenge h2 {
    font-size: 42px;
    margin: 14px 0;
}

.challenge p {
    color: #6b4b55;
    line-height: 1.7;
}

.challenge-box {
    background: #fff8fa;
    border-radius: 24px;
    padding: 26px;
}

.flag {
    background: #171014;
    color: #57ffb0;
    padding: 18px;
    border-radius: 16px;
    font-family: monospace;
    font-size: 16px;
}

.hint {
    color: #8a5b66;
}

footer {
    padding: 30px;
    text-align: center;
    color: #8a5b66;
}

.shop-header {
    text-align: center;
    padding: 70px 20px 35px;
}

.shop-header h1 {
    font-size: 48px;
    margin: 14px 0 10px;
}

.shop-header p {
    color: #6b4b55;
}

.grid {
    padding: 25px 7% 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(80, 35, 50, 0.14);
}

.card img {
    width: 100%;
    border-radius: 24px;
    background: #fff0f4;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.card p {
    min-height: 92px;
    color: #6b4b55;
    line-height: 1.5;
}

.price {
    font-size: 24px;
    font-weight: 900;
    margin: 16px 0;
    color: #c2255c;
}

.badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: white;
    color: #c2255c;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(80, 35, 50, 0.12);
}

.badge.inline {
    position: static;
    display: inline-block;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, #ffdce8, transparent 35%),
        linear-gradient(135deg, #fff8fa, #ffe3ec);
}

.form-box {
    width: min(440px, 92vw);
    padding: 36px;
    border-radius: 32px;
}

.form-box h2 {
    text-align: center;
}

.muted {
    text-align: center;
    color: #7a5963;
}

input, select {
    width: 100%;
    padding: 15px 16px;
    margin: 10px 0;
    border: 1px solid #f0c9d4;
    border-radius: 16px;
    background: #fffafd;
    font-size: 15px;
}

.error {
    color: #d00000;
    text-align: center;
}

.product-detail {
    margin: 70px auto;
    width: min(1100px, 92vw);
    border-radius: 38px;
    padding: 36px;
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 44px;
    align-items: center;
}

.product-image img {
    width: 100%;
    border-radius: 30px;
}

.product-info h1 {
    font-size: 48px;
    margin-bottom: 14px;
}

.product-info p {
    color: #6b4b55;
    font-size: 18px;
    line-height: 1.7;
}

.product-info h2 {
    color: #c2255c;
    font-size: 34px;
}

.cart {
    width: min(850px, 92vw);
    margin: 70px auto;
    padding: 34px;
    border-radius: 34px;
}

.cart-row {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid #f3d6df;
    padding: 16px 0;
}

.cart-row img {
    width: 95px;
    border-radius: 18px;
}

.checkout-layout {
    padding: 70px 7%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

.checkout-panel, .summary {
    padding: 34px;
    border-radius: 34px;
}

.summary {
    position: sticky;
    top: 100px;
}

.summary p {
    display: flex;
    justify-content: space-between;
    color: #6b4b55;
}

.discount {
    color: #0b8f54 !important;
    font-weight: 900;
}

.message {
    color: #0b8f54;
    font-weight: 800;
}

@media (max-width: 850px) {
    .hero, .challenge, .product-detail, .checkout-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 44px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 14px;
    }
}


.text-link {
    color: #c2255c;
    font-weight: 900;
    text-decoration: underline;
}
