/* ====================================
   CSS Variables & Reset
   ==================================== */
:root {
    --primary-blue: #3A4DD9;
    --primary-blue-dark: #2E3DB0;
    --gradient-start: #3A4DD9;
    --gradient-end: #6D2FBF;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Dark theme - applied via data-theme attribute or system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text-primary: #ffffff;
        --text-secondary: #9ca3af;
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --bg-tertiary: #2a2a2a;
        --border-color: #333333;
    }
}

/* Explicit dark theme override */
:root[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================
   Navigation
   ==================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .navbar {
        background: rgba(10, 10, 10, 0.8);
    }
}
[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
}

.logo-text {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-store-badge img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-value .star {
    width: 28px;
    height: 28px;
    fill: #FDB931;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-deck-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.hero-icon {
    width: 280px;
    height: 280px;
    border-radius: 60px;
    box-shadow: 0 25px 50px rgba(58, 77, 217, 0.3);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatKeyword {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ====================================
   Supported Games
   ==================================== */
.supported-games {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.games-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.game-tag {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .game-tag {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}
[data-theme="dark"] .game-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-tag:hover {
    transform: translateY(-2px);
    background: rgba(58, 77, 217, 0.15);
    border-color: rgba(58, 77, 217, 0.3);
    box-shadow: 0 6px 20px rgba(58, 77, 217, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .game-tag:hover {
        background: rgba(58, 77, 217, 0.2);
        border-color: rgba(58, 77, 217, 0.4);
    }
}
[data-theme="dark"] .game-tag:hover {
    background: rgba(58, 77, 217, 0.2);
    border-color: rgba(58, 77, 217, 0.4);
}

/* ====================================
   Features Section
   ==================================== */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto 1fr;
    gap: 16px 16px;
    align-items: start;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-blue);
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    display: block;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    align-self: center;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    grid-row: 2 / 3;
    grid-column: 1 / 3;
}

/* ====================================
   Interactive Demo Section
   ==================================== */
.demo-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.demo-section .section-title {
    text-align: center;
    margin-bottom: 12px;
}

.demo-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 60px;
}

.demo-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Scanner View */
.scanner-view {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.scanner-view.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.camera-interface {
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 20px;
    position: relative;
}

.camera-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.control-btn,
.frame-btn,
.gallery-btn,
.flip-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover,
.frame-btn:hover,
.gallery-btn:hover,
.flip-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.frame-controls {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 22px;
    backdrop-filter: blur(10px);
}

.frame-btn {
    width: 40px;
    height: 40px;
}

.frame-btn.active {
    background: rgba(255, 255, 255, 0.3);
}

.scan-frame {
    position: relative;
    aspect-ratio: 0.72;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 20px;
    margin: 0 auto 30px;
    max-width: 280px;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-in-frame {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0;
    animation: none;
    z-index: 10;
    box-shadow: 0 0 10px var(--primary-blue);
}

.scan-line.scanning {
    opacity: 1;
    animation: scan 1.5s ease-in-out;
}

@keyframes scan {
    0% {
        top: 40px;
    }
    100% {
        top: calc(100% - 40px);
    }
}

.instruction-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    border-radius: 20px;
    display: block;
    width: fit-content;
    margin: 0 auto 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.camera-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.shutter-button {
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.shutter-outer {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shutter-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

.shutter-button:hover .shutter-outer {
    transform: scale(1.05);
    border-color: var(--primary-blue);
}

.shutter-button:hover .shutter-inner {
    background: var(--primary-blue);
}

.shutter-button:active .shutter-inner {
    transform: scale(0.9);
}

.shutter-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shutter-button:disabled:hover .shutter-outer {
    transform: none;
    border-color: white;
}

.shutter-button:disabled:hover .shutter-inner {
    background: white;
}

/* Results View */
.results-view {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.results-view.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.results-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
}

.card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.result-card-image {
    width: 120px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.card-info {
    flex: 1;
}

.card-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-details {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meta-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.meta-badge.rarity {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #d4a017;
}

.meta-badge.type {
    background: rgba(255, 87, 34, 0.15);
    border-color: rgba(255, 87, 34, 0.4);
    color: #ff5722;
}

.game-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(58, 77, 217, 0.3);
    text-transform: uppercase;
}

/* Market Summary */
.market-summary {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(58, 77, 217, 0.08), rgba(109, 47, 191, 0.08));
    border-radius: var(--radius-md);
    border: 1px solid rgba(58, 77, 217, 0.2);
    margin-bottom: 24px;
}

.summary-item.highlight {
    flex: 1;
}

.summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 6px;
}

.summary-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-mini {
    text-align: center;
}

.stat-mini-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-mini-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Section Labels */
.section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Condition Pricing */
.condition-pricing {
    margin-bottom: 24px;
}

.condition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.condition-item {
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.condition-item:hover {
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.condition-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.condition-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Marketplace Section */
.marketplace-section {
    margin-bottom: 24px;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.marketplace-card {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.2s ease;
}

.marketplace-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.marketplace-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.marketplace-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.marketplace-info {
    font-size: 11px;
    color: var(--text-secondary);
}

.price-change {
    font-size: 13px;
    font-weight: 600;
}

.price-change.positive {
    color: #10b981;
}

.chart-section {
    margin-bottom: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.chart-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chart-range {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.chart-change {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
}

.chart-change.positive {
    color: #10b981;
}

.price-chart {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 2.5s ease-out forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeInArea 1.8s ease-out 0.6s forwards;
}

.chart-dot-outer,
.chart-dot-inner {
    opacity: 0;
    transform-origin: center;
    animation: popDot 0.6s ease-out forwards;
}

.chart-dot-current {
    animation: pulseDot 2s ease-in-out infinite;
}

.chart-point {
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-point:hover .chart-dot-outer {
    r: 7;
    stroke-width: 4;
}

.chart-label-y {
    font-size: 11px;
    fill: var(--text-secondary);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.chart-label-x {
    font-size: 11px;
    fill: var(--text-secondary);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.chart-tooltip {
    position: absolute;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-5px);
}

.tooltip-date {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.tooltip-price {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #3A4DD9, #6D2FBF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInArea {
    to {
        opacity: 1;
    }
}

@keyframes popDot {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLabel {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ====================================
   How It Works
   ==================================== */
.how-it-works {
    padding: 100px 0;
}

.how-it-works .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-size: 28px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(58, 77, 217, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(58, 77, 217, 0.4);
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================================
   SEO Content
   ==================================== */
.seo-content {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.content-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 60px;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.keywords-section {
    padding: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
}

.keywords-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.keywords-cloud span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: floatKeyword 4s ease-in-out infinite;
    white-space: nowrap;
}

.keywords-cloud span:nth-child(2n) {
    animation-delay: 0.5s;
}

.keywords-cloud span:nth-child(3n) {
    animation-delay: 1s;
}

.keywords-cloud span:nth-child(4n) {
    animation-delay: 1.5s;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .keywords-cloud span {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}
[data-theme="dark"] .keywords-cloud span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.keywords-cloud span:hover {
    transform: translateY(-2px);
    background: rgba(58, 77, 217, 0.15);
    border-color: rgba(58, 77, 217, 0.3);
    box-shadow: 0 6px 20px rgba(58, 77, 217, 0.2);
    animation-play-state: paused;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .keywords-cloud span:hover {
        background: rgba(58, 77, 217, 0.2);
        border-color: rgba(58, 77, 217, 0.4);
        animation-play-state: paused;
    }
}
[data-theme="dark"] .keywords-cloud span:hover {
    background: rgba(58, 77, 217, 0.2);
    border-color: rgba(58, 77, 217, 0.4);
    animation-play-state: paused;
}

/* ====================================
   Premium Section
   ==================================== */
.premium {
    padding: 100px 0;
}

.premium-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: var(--radius-xl);
    color: white;
}

.premium-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.premium-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    color: white;
}

.premium-features {
    list-style: none;
    margin-bottom: 32px;
}

.premium-features li {
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-features li:last-child {
    border-bottom: none;
}

.premium-cta {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.premium-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.premium-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ====================================
   CTA Section
   ==================================== */
.cta {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-disclaimer {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.7;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .card-deck-container {
        padding: 40px 0;
    }

    .hero-icon {
        width: 240px;
        height: 240px;
        border-radius: 50px;
    }

    .premium-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .premium-image {
        order: -1;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 60px 0 40px;
    }

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

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

    .hero-stats {
        gap: 32px;
    }

    .stat-value {
        font-size: 24px;
    }

    .card-deck-container {
        padding: 20px 0;
    }

    .hero-icon {
        width: 200px;
        height: 200px;
        border-radius: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

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

    .feature-card {
        padding: 32px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .premium-card {
        padding: 32px;
    }

    .premium-title {
        font-size: 28px;
    }

    .premium-features li {
        font-size: 16px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-logo {
        font-size: 18px;
    }

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

    .logo-icon-img {
        width: 28px;
        height: 28px;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Demo section mobile adjustments */
    .demo-section {
        padding: 60px 0;
    }

    .demo-hint {
        font-size: 14px;
        margin-bottom: 40px;
    }


    .camera-interface {
        border-radius: 30px;
        padding: 16px;
    }

    .scan-frame {
        padding: 20px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .camera-controls-bottom {
        padding: 0 10px;
    }

    .shutter-button {
        width: 70px;
        height: 70px;
    }

    .shutter-outer {
        width: 70px;
        height: 70px;
    }

    .shutter-inner {
        width: 56px;
        height: 56px;
    }

    .results-card {
        padding: 24px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .result-card-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .card-name {
        font-size: 24px;
    }

    .card-meta {
        justify-content: center;
    }

    .game-badge {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    /* New results sections mobile */
    .market-summary {
        flex-direction: column;
        gap: 20px;
    }

    .summary-stats {
        justify-content: space-around;
    }

    .summary-value {
        font-size: 28px;
    }

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

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

    /* Keywords section mobile improvements */
    .keywords-section {
        padding: 24px 16px;
    }

    .keywords-section h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .keywords-cloud {
        gap: 8px;
    }

    .keywords-cloud span {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .navbar,
    .hero-badges,
    .app-store-badge,
    .premium-cta,
    .cta,
    .footer {
        display: none;
    }
}

/* ====================================
   Theme Switcher
   ==================================== */

/* Nav actions container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button Base */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Theme Icons */
.theme-icon {
    position: absolute;
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hide all icons by default */
.theme-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* Show moon icon in light mode (click to switch to dark) */
[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Show sun icon in dark mode (click to switch to light) */
[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Default state (before JS loads) - show moon icon */
html:not([data-theme]) .theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Sun icon animation in dark mode */
.theme-toggle .sun-icon circle {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle:hover .sun-icon {
    animation: sunPulse 1.5s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(15deg); }
}

/* Moon icon animation in light mode */
[data-theme="light"] .theme-toggle:hover .moon-icon {
    animation: moonFloat 2s ease-in-out infinite;
}

@keyframes moonFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(-5deg); }
}

/* Navbar Theme Toggle */
.nav-theme-toggle {
    display: flex;
}

/* Floating Theme Toggle */
.floating-theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-color);
    display: none;
    background: var(--bg-primary);
}

.floating-theme-toggle .theme-icon {
    width: 24px;
    height: 24px;
}

.floating-theme-toggle:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border-color);
}

/* Show floating button on mobile */
@media (max-width: 768px) {
    .nav-theme-toggle {
        display: none;
    }

    .floating-theme-toggle {
        display: flex;
        bottom: 20px;
        right: 20px;
    }
}

/* Theme transition for smooth color changes */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease !important;
}
