:root {
    --bg: #f5f5f5;
    --black: #000;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-strong: rgba(255, 255, 255, 0.95);
    --line: rgba(0, 0, 0, 0.14);
    --line-strong: rgba(0, 0, 0, 0.24);
    --text: #111;
    --muted: #444;
    --soft: #666;
    --white: #fff;
    --hero-grad-1: rgba(0, 0, 0, 0.05);
    --hero-grad-2: rgba(240, 240, 240, 0.92);
    --hero-grad-3: rgba(230, 230, 230, 0.76);
    --hero-grad-4: rgba(240, 240, 240, 0.95);
    --hero-overlay-1: rgba(255, 255, 255, 0.9);
    --hero-overlay-2: rgba(240, 240, 240, 0.8);
    --hero-overlay-3: rgba(255, 255, 255, 0.96);
    --rec-bg: #fff;
    --rec-text: #1a1a1a;
    --rec-price: #555;
}

[data-theme="dark"] {
    --bg: #111;
    --black: #000;
    --panel: rgba(18, 18, 18, 0.86);
    --panel-strong: rgba(0, 0, 0, 0.72);
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: #f5f5f5;
    --muted: #cfcfcf;
    --soft: #9c9c9c;
    --white: #fff;
    --hero-grad-1: rgba(255, 255, 255, 0.08);
    --hero-grad-2: rgba(0, 0, 0, 0.92);
    --hero-grad-3: rgba(17, 17, 17, 0.76);
    --hero-grad-4: rgba(0, 0, 0, 0.95);
    --hero-overlay-1: rgba(0, 0, 0, 0.9);
    --hero-overlay-2: rgba(17, 17, 17, 0.54);
    --hero-overlay-3: rgba(0, 0, 0, 0.96);
    --rec-bg: #1e1e1e;
    --rec-text: #f3f4f6;
    --rec-price: #d1d5db;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, var(--hero-grad-1), transparent 28rem),
        linear-gradient(135deg, var(--hero-grad-2), var(--hero-grad-3) 48%, var(--hero-grad-4)),
        var(--bg);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
    pointer-events: none;
    z-index: 0;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, var(--hero-overlay-1), var(--hero-overlay-2), var(--hero-overlay-3)),
        url("../assets/logos/Rnd_background_opt.jpg") center center / cover no-repeat;
    opacity: 0.38;
    z-index: 0;
    pointer-events: none;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 1;
}

.site-header {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 0;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 18px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 16px;
    color: var(--text);
    text-decoration: none;
}

.logo {
    width: auto;
    height: 52px;
    padding: 7px 11px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand span {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
}

nav a,
.store-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

nav a {
    padding: 0 22px;
    background: var(--panel);
    font-size: 0.98rem;
}

nav a:hover,
nav a:focus-visible,
.store-cta:hover,
.store-cta:focus-visible {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-1px);
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(54px, 8vw, 100px) 0 52px;
}

.hero {
    min-height: calc(100vh - 170px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.hero-copy {
    max-width: 780px;
}

.eyebrow,
.section-label,
.panel-kicker {
    margin: 0;
    color: var(--soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 18px;
    max-width: 840px;
    color: var(--text);
    font-size: clamp(3.4rem, 10vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: 0;
}

.hero-text {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.65;
}

.store-cta {
    margin-top: 32px;
    padding: 0 26px;
    background: var(--line-strong);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.hero-panel {
    align-self: stretch;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 4vw, 34px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -44px;
    top: -44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.panel-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.panel-grid span {
    display: block;
    padding: 18px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    background: var(--hero-grad-1);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.about {
    display: grid;
    grid-template-columns: minmax(150px, 0.28fr) 1px minmax(0, 1fr);
    gap: clamp(22px, 4vw, 46px);
    align-items: start;
    margin-top: 20px;
    padding: clamp(28px, 5vw, 44px);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.about h2 {
    grid-column: 1;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.section-label {
    grid-column: 1;
}

.about-rule {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 1px;
    min-height: 100%;
    background: var(--line-strong);
}

.about p:not(.section-label) {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.85;
}

footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 24px;
    padding: 18px 24px;
    color: var(--soft);
    font-size: 0.96rem;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-footer-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-footer-content p {
    margin: 0;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text);
    background: var(--line-strong);
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

@media (max-width: 860px) {
    .site-header {
        width: min(100% - 28px, 720px);
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .brand {
        justify-content: center;
    }

    nav a {
        width: 100%;
    }

    main {
        width: min(100% - 28px, 720px);
        padding-top: 42px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 0;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about h2,
    .section-label,
    .about p:not(.section-label),
    .about-rule {
        grid-column: 1;
        grid-row: auto;
    }

    .about h2 {
        margin-top: 0;
    }

    .about-rule {
        width: 100%;
        min-height: 1px;
    }

    footer {
        width: min(100% - 28px, 720px);
    }
}

@media (max-width: 520px) {
    .site-header {
        margin-top: 14px;
        padding: 14px;
    }

    .brand {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo {
        height: 46px;
    }

    .brand span {
        white-space: normal;
    }

    .hero h1 {
        font-size: clamp(3rem, 18vw, 4.4rem);
    }

    .store-cta {
        width: 100%;
    }

    .about,
    .hero-panel {
        padding: 22px;
    }
}

/* ── Recommended Section ── */
.recommended {
    margin-top: 40px;
    padding: clamp(28px, 5vw, 44px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    position: relative;
    overflow: hidden;
}

.recommended::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    pointer-events: none;
}

.recommended::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    right: -60px;
    top: -60px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.recommended h2 {
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.rec-card {
    background: var(--rec-bg);
    border-radius: 8px;
    overflow: hidden;
    padding: 14px;
    display: flex;
    flex-direction: column;
    color: var(--rec-text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.rec-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: var(--line-strong);
    margin-bottom: 12px;
}

.rec-card-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.rec-card-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--rec-price);
    margin: 0;
}

.rec-cta-wrap {
    text-align: center;
    position: relative;
    z-index: 1;
}

.big-cta {
    font-size: 1.1rem;
    padding: 0 42px;
    min-height: 54px;
    background: var(--line-strong);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.big-cta:hover {
    background: var(--text);
    color: var(--bg);
}

@media (max-width: 1024px) {
    .rec-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
    .rec-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .rec-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .rec-card { padding: 10px; }
}

@media (max-width: 400px) {
    .rec-grid { grid-template-columns: 1fr; }
}

/* ── Skeleton Loaders ── */
.skeleton-card {
    pointer-events: none;
}
.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    background: var(--line-strong);
    margin-bottom: 12px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.skeleton-text {
    height: 16px;
    background: var(--line-strong);
    border-radius: 4px;
    margin-bottom: 8px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.skeleton-text.short {
    width: 50%;
}
@keyframes skeleton-pulse {
    0% { background-color: var(--line-strong); }
    50% { background-color: var(--line); }
    100% { background-color: var(--line-strong); }
}

