/* ── Dark mode (default) ── */
:root {
    --red: #D12027;
    --red-dark: #D12027;

    --bg: #000000;
    --bg-card: #1a1a1a;
    --text: #f5f5f5;
    --text-sub: #848484;
    --text-muted: #c0c0c0;
    --border: rgba(132, 132, 132, 0.18);
    --border-hover: rgba(209, 32, 39, 0.4);
    --shadow: rgba(0, 0, 0, 0.5);
    --footer-border: rgba(132, 132, 132, 0.1);
    --footer-text: rgba(132, 132, 132, 0.5);
}

/* ── Light mode ── */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f2f2f2;
        --bg-card: #ffffff;
        --text: #111111;
        --text-sub: #666666;
        --text-muted: #444444;
        --border: rgba(0, 0, 0, 0.10);
        --border-hover: rgba(209, 32, 39, 0.35);
        --shadow: rgba(0, 0, 0, 0.12);
        --footer-border: rgba(0, 0, 0, 0.1);
        --footer-text: rgba(0, 0, 0, 0.35);
    }
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Noise texture overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ── Red top accent bar ── */
.top-bar {
    width: 100%;
    height: 4px;
    background: var(--red);
    position: relative;
    z-index: 1;
}

/* ── Header ── */
header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px 40px;
    width: 100%;
    max-width: 960px;
}

.logo-wrap {
    margin-bottom: 32px;
}

/* logo-dark.png / logo-light.png are swapped via <picture> in HTML */
.logo-wrap img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.header-divider {
    width: 48px;
    height: 3px;
    background: var(--red);
    margin: 0 auto 20px;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    color: var(--text);
    text-align: center;
    line-height: 1;
}

header p {
    margin-top: 12px;
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-align: center;
}

/* ── Grid ── */
main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    padding: 16px 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ── Card / Button ── */
.price-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.3s ease;
    cursor: pointer;
    min-height: 160px;
}

/* Animated left accent */
.price-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.28s ease;
}

/* Red glow overlay on hover */
.price-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 50%, rgba(209, 32, 39, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px var(--shadow), 0 0 0 1px rgba(209, 32, 39, 0.15);
}

.price-card:hover::before {
    transform: scaleY(1);
}

.price-card:hover::after {
    opacity: 1;
}

.card-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.card-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--text);
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.price-card:hover .card-action {
    color: var(--red);
}

.card-action svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.price-card:hover .card-action svg {
    transform: translateX(3px);
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    padding: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--footer-text);
    letter-spacing: 0.04em;
    width: 100%;
    border-top: 1px solid var(--footer-border);
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* ── Stagger animation on load ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    animation: fadeUp 0.6s ease both;
}

.price-card {
    animation: fadeUp 0.5s ease both;
}

/* Staggered delays — up to 12 cards. Add more if needed. */
.price-card:nth-child(1) {
    animation-delay: 0.10s;
}

.price-card:nth-child(2) {
    animation-delay: 0.18s;
}

.price-card:nth-child(3) {
    animation-delay: 0.26s;
}

.price-card:nth-child(4) {
    animation-delay: 0.34s;
}

.price-card:nth-child(5) {
    animation-delay: 0.42s;
}

.price-card:nth-child(6) {
    animation-delay: 0.50s;
}

.price-card:nth-child(7) {
    animation-delay: 0.58s;
}

.price-card:nth-child(8) {
    animation-delay: 0.66s;
}

.price-card:nth-child(9) {
    animation-delay: 0.74s;
}

.price-card:nth-child(10) {
    animation-delay: 0.82s;
}

.price-card:nth-child(11) {
    animation-delay: 0.90s;
}

.price-card:nth-child(12) {
    animation-delay: 0.98s;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    main {
        grid-template-columns: 1fr;
    }

    .logo-wrap img {
        width: 90%;
    }
}