/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
    color: #e5e7eb;
    background: #020617;
    overflow-x: hidden;
}

/* BACKGROUND */
.bg-gradient {
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(circle at 10% 20%, #22c55e33, transparent 60%),
        radial-gradient(circle at 90% 80%, #0ea5e933, transparent 60%),
        radial-gradient(circle at 80% 10%, #eab30833, transparent 60%);
    opacity: 0.7;
    z-index: 0;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(
            rgba(148,163,184,0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148,163,184,0.06) 1px,
            transparent 1px
        );
    background-size: 32px 32px;
    opacity: 0.25;
    z-index: 0;
}

/* LAYOUT WRAPPER */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shell {
    width: 100%;
    max-width: 1160px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.94));
    border-radius: 26px;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow:
        0 30px 80px rgba(15,23,42,0.95),
        0 0 0 1px rgba(15,23,42,0.9);
    padding: 22px 26px 20px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* STATUS PILL */
.status-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #cbd5f5;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #eab308;
    box-shadow: 0 0 16px #eab308aa;
}

/* HERO GRID */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: stretch;
}

/* LEFT SIDE */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo: show full image, no cropping */
.logo {
    display: block;
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(15,23,42,0.9));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f9fafb;
}

.hero-slogan {
    font-size: 1rem;
    font-weight: 500;
    color: #a5b4fc;
    text-shadow: 0 1px 8px rgba(15,23,42,0.85);
}

.hero-lead {
    font-size: 0.98rem;
    color: #cbd5f5;
    line-height: 1.7;
    max-width: 520px;
}

/* BADGES */
.brand-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.badge-label {
    font-size: 0.85rem;
    color: #9ca3af;
}

.badge-pill {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: radial-gradient(circle at top, rgba(34,197,94,0.32), rgba(15,23,42,0.9));
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 160ms ease-out,
                box-shadow 160ms ease-out,
                border-color 160ms ease-out;
}

.badge-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(34,197,94,0.45);
    border-color: rgba(94,234,212,0.9);
}

/* CTA */
.cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, #22c55e, #0ea5e9);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 16px 35px rgba(34,197,94,0.55);
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(34,197,94,0.75);
}

.cta-note {
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 360px;
}

/* RIGHT SIDE – FLIP CARDS */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-hint {
    font-size: 0.85rem;
    color: #9ca3af;
}

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

/* FLIP CARD BASE */
.card {
    background: radial-gradient(circle at top, rgba(30,64,175,0.6), rgba(15,23,42,0.98));
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.7);
    box-shadow:
        0 22px 50px rgba(15,23,42,0.95),
        0 0 0 1px rgba(15,23,42,0.9);
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

.card.selected {
    border-color: rgba(94,234,212,0.9);
    box-shadow:
        0 26px 55px rgba(15,23,42,0.98),
        0 0 0 1px rgba(94,234,212,0.7);
}

/* Flip mechanics */
.flip-card {
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    min-height: 306px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    padding: 12px 12px 14px;
    backface-visibility: hidden;
}

/* FRONT */
.flip-front {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.chip {
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    background: rgba(15, 23, 42, 0.93);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.card-brand {
    font-size: 0.9rem;
    font-weight: 600;
    color: #bbf7d0;
}

/* NO CROPPING – full image */
.card-image-shell {
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,1));
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
}

.product-img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* BACK */
.flip-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back-header {
    margin-bottom: 10px;
}

.chip-alt {
    border-color: rgba(52,211,153,0.8);
}

.card-list {
    list-style: disc;
    padding-left: 18px;
    font-size: 0.88rem;
    color: #e5e7eb;
    line-height: 1.6;
}

.card-list li + li {
    margin-top: 4px;
}

.card-back-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #cbd5f5;
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-3px);
}

/* FOOTER STRIP */
.footer-strip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(51,65,85,0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pulse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 18px #22c55eaa;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1);   opacity: 1; }
}

.footer-note {
    font-size: 0.82rem;
    color: #9ca3af;
}

/* RESPONSIVE -------------------------------------------------------- */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .hero-right {
        order: 2;
    }
}

@media (max-width: 700px) {
    .page {
        padding: 16px;
    }

    .shell {
        padding: 18px 16px 16px;
        border-radius: 22px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .brand-row {
        align-items: flex-start;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .logo {
        max-width: 80px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .status-pill {
        font-size: 0.7rem;
    }

    .cta-button {
        width: 100%;
    }
}
