/* Base Design System */
:root {
    --bg-dark: #0f0f12;
    --bg-card: #1a1a1f;
    --bg-accent: #25252b;
    --text-main: #f8f8f8;
    --text-muted: #a0a0ab;
    --gold: #d4af37;
    --gold-light: #f5f5dc;
    --accent: #b89c67;
    --white: #ffffff;

    --container-max: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.bg-dark {
    background-color: var(--bg-card);
}

/* Header */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: baseline;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo-main {
    color: var(--text-main);
}

.logo-sub {
    color: var(--gold);
    font-size: 1.2rem;
}

.nav-desktop ul {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-desktop a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--gold);
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: var(--transition-base);
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-image: url('https://images.unsplash.com/photo-1543722530-d2c4b1d3315d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 18, 0.9) 20%, rgba(15, 15, 18, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Categories */
.categories {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 8px 18px;
    border-radius: 50px;
    background-color: var(--bg-accent);
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-base);
    font-size: 0.9rem;
    font-weight: 500;
}

.cat-btn:hover {
    background-color: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

.cat-btn.active {
    background-color: var(--gold);
    color: #000;
}

/* Explore Grid */
.explore {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-desc {
    color: var(--text-muted);
}

.fortune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.fortune-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fortune-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.fortune-card:hover .card-image img {
    scale: 1.1;
}

.card-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background-color: var(--gold);
    color: #000;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.card-link {
    font-weight: 700;
    color: var(--gold);
}

.load-more {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Feature Section */
.comparison-feature {
    padding: var(--spacing-xl) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.text-gold {
    color: var(--gold);
}

.feature-list {
    margin: var(--spacing-lg) 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.feature-list span {
    color: var(--gold);
    font-weight: bold;
}

.comparison-mockup {
    background-color: var(--bg-accent);
    padding: var(--spacing-xl);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mock-card {
    width: 120px;
    height: 180px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
}

.card-accent {
    border-color: var(--gold);
    color: var(--gold);
}

.mock-vs {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background-color: #08080a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand p {
    margin-top: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}