/* — Game Stock Landing — Jony Ive–inspired: restraint, clarity, one accent, gaming-dark base */

:root {
    --bg: #0c0c0c;
    --bg-elevated: #141414;
    --surface: #1a1a1a;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --success: #22c55e;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* — Layout — */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* — Header — */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
}

header.scrolled {
    background: rgba(12, 12, 12, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 2px 0;
}

header .container {
    padding-left: 28px;
    padding-right: 28px;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--text);
    transition: gap 0.3s var(--ease);
}

.logo-mark {
    width: 80px;
    height: 80px;
    display: block;
    flex-shrink: 0;
    padding: 14px 14px 14px 0;
    box-sizing: border-box;
    align-self: center;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), padding 0.3s var(--ease);
}

.logo-word {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    transition: font-size 0.3s var(--ease);
}

header.scrolled .nav-container {
    min-height: 38px;
}

header.scrolled .logo-mark {
    width: 34px;
    height: 34px;
    padding: 4px 4px 4px 0;
}

header.scrolled .logo-word {
    font-size: 17px;
}

header.scrolled .logo {
    gap: 2px;
}

header.scrolled .btn-cta {
    padding: 5px 12px;
    font-size: 11px;
}

.logo-word span {
    color: var(--accent);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg);
    background: var(--text);
    border-radius: 8px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), padding 0.3s var(--ease), font-size 0.3s var(--ease);
}

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

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}

.nav-link:hover {
    color: var(--accent);
}

.btn-hero {
    padding: 14px 28px;
    font-size: 15px;
    background: var(--accent);
    color: white;
}

.btn-hero:hover {
    background: var(--accent-hover);
    color: white;
}

/* — Hero — */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 80% at 85% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        var(--bg);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-copy {
    text-align: left;
}

.hero-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.08;
    padding-top: 32px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-title-accent {
    color: var(--accent);
    letter-spacing: -0.04em;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.hero-trust {
    font-size: 13px;
    color: var(--text-tertiary);
}

.hero-demo {
    position: relative;
    perspective: 1200px;
}

.hero-demo .app-mockup {
    max-width: 480px;
    margin-left: auto;
}

.app-mockup {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(0) rotateX(4deg);
    transition: transform 0.6s var(--ease-out);
}

.app-mockup:hover {
    transform: translateY(-8px) rotateX(0);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface);
}

.dot:nth-child(1) {
    background: #ff5f57;
}

.dot:nth-child(2) {
    background: #febc2e;
}

.dot:nth-child(3) {
    background: #28c840;
}

.mockup-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: 0.6;
    flex-shrink: 0;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(-45deg);
    bottom: 1px;
    right: 1px;
}

.typing-text::after {
    content: '|';
    opacity: 0.6;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.mockup-body {
    padding: 20px;
    min-height: 380px;
    height: 380px;
    background: var(--surface);
    box-sizing: border-box;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
}

.mockup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.mockup-item:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}

.mockup-item.animate {
    animation: itemIn 0.5s var(--ease-out) forwards;
}

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

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(145deg, #4338ca 0%, #6366f1 100%);
    flex-shrink: 0;
}

.item-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.item-info span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.item-info .item-store {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* — Store Badges (Full Color Pill) — */
.store-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    overflow: hidden;
}

.store-badge-name {
    padding: 3px 6px;
    border-right: 1px solid inherit;
}

.store-badge-rating {
    padding: 3px 5px;
}

/* Green (Excellent: 9-10) */
.store-badge.green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.store-badge.green .store-badge-name {
    border-right-color: rgba(34, 197, 94, 0.3);
}

.store-badge.green .store-badge-rating {
    background: rgba(34, 197, 94, 0.1);
}

/* Blue (Good: 7-8) */
.store-badge.blue {
    background: rgba(41, 121, 255, 0.1);
    border-color: rgba(41, 121, 255, 0.3);
    color: #2979ff;
}

.store-badge.blue .store-badge-name {
    border-right-color: rgba(41, 121, 255, 0.3);
}

.store-badge.blue .store-badge-rating {
    background: rgba(41, 121, 255, 0.1);
}

/* Yellow (Average: 5-6) */
.store-badge.yellow {
    background: rgba(255, 214, 0, 0.1);
    border-color: rgba(255, 214, 0, 0.3);
    color: #ffd600;
}

.store-badge.yellow .store-badge-name {
    border-right-color: rgba(255, 214, 0, 0.3);
}

.store-badge.yellow .store-badge-rating {
    background: rgba(255, 214, 0, 0.1);
}

/* Red (Poor: <5) */
.store-badge.red {
    background: rgba(213, 0, 0, 0.1);
    border-color: rgba(213, 0, 0, 0.3);
    color: #d50000;
}

.store-badge.red .store-badge-name {
    border-right-color: rgba(213, 0, 0, 0.3);
}

.store-badge.red .store-badge-rating {
    background: rgba(213, 0, 0, 0.1);
}


.item-info .mockup-store-untrusted,
.mockup-store-untrusted {
    color: #d50000 !important;
    background: rgba(213, 0, 0, 0.1);
    border: 1px solid rgba(213, 0, 0, 0.3);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

.item-price[data-stock="false"] {
    color: var(--text-tertiary);
    font-weight: 500;
}

/* — Features — */
.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
    margin-bottom: 56px;
}

.section-title--small {
    margin-bottom: 32px;
}

.feature-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.feature-tab {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-tertiary);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.feature-tab.is-active {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text);
}

.feature-panels {
    max-width: 720px;
    margin: 0 auto;
}

.feature-panel {
    display: none;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 28px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.feature-panel.is-active {
    display: grid;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon>span {
    display: inline-block;
    position: relative;
}

/* Minimal geometric icons (Ive-style: form follows function) */
.icon-speed {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-tertiary);
    border-radius: 50%;
    border-top-color: var(--accent);
    transform: rotate(-45deg);
    animation: spin 3s linear infinite;
}

.icon-heart {
    width: 14px;
    height: 12px;
    border: 2px solid var(--text-tertiary);
    border-top: none;
    border-radius: 0 0 7px 7px;
    transform: rotate(-45deg);
}

.icon-heart::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--text-tertiary);
    border-right: none;
    border-bottom: none;
    border-radius: 50% 50% 0 0;
    top: -9px;
    left: -9px;
}

.icon-refresh {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-tertiary);
    border-radius: 50%;
    border-right-color: transparent;
    transform: rotate(0deg);
}

.icon-refresh::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top: 5px solid var(--text-tertiary);
    top: -1px;
    right: -1px;
}

.icon-clean {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-tertiary);
    border-radius: 4px;
}

.icon-clean::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: var(--text-tertiary);
    transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes spin {
    to {
        transform: rotate(-405deg);
    }
}

.feature-panel h3,
.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-panel p,
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* — Reveal — */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* — Vendors marquee — */
.vendors {
    overflow: hidden;
    padding-top: 40px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 24px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-container {
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.vendor-tag {
    display: inline-block;
    margin: 0 14px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
}

/* — Footer — */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
}

footer p {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.footer-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}

.footer-link:hover {
    color: var(--accent);
}

/* — Responsive — */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-demo .app-mockup {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-demo,
    .hero-demo .app-mockup,
    .hero-demo .mockup-header,
    .hero-demo .mockup-body,
    .hero-demo .mockup-list,
    .hero-demo .mockup-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    header {
        padding: 14px 0;
    }

    header.scrolled {
        padding: 4px 0;
    }

    header .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-container {
        min-height: 72px;
    }

    header.scrolled .nav-container {
        min-height: 40px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-link {
        font-size: 13px;
        display: none;
    }

    header.scrolled .nav-link {
        display: inline;
    }

    .btn-cta {
        padding: 10px 16px;
        font-size: 13px;
    }

    section {
        padding: 72px 0;
    }

    .hero-title {
        font-size: 36px;
        padding-top: 56px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-panel {
        grid-template-columns: 1fr;
    }

    .app-mockup {
        max-width: 100%;
        transform: none;
    }

    .app-mockup:hover {
        transform: translateY(-4px);
    }

    .mockup-body {
        min-height: 380px;
        height: 380px;
    }

    .mockup-list {
        min-height: 280px;
    }

    .logo-mark {
        width: 56px;
        height: 56px;
        padding: 10px 10px 10px 0;
    }

    .logo-word {
        font-size: 24px;
    }

    header.scrolled .logo-mark {
        width: 30px;
        height: 30px;
        padding: 4px 4px 4px 0;
    }

    header.scrolled .logo-word {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .item-img {
        display: none;
    }
}