/* ============================================================
   TSUKI — Homepage
   ============================================================ */

:root {
    --bg-deep:       #09090b;
    --bg-base:       #0f0f11;
    --bg-card:       #151517;
    --bg-card-hover: #1b1b1e;
    --border-subtle: #1f1f23;
    --border-active: #333338;
    --text-primary:  #d4d4d8;
    --text-heading:  #ededef;
    --text-secondary:#8a8a92;
    --text-muted:    #5a5a63;
    --accent:        #7c8cf8;
    --accent-dim:    #7c8cf8;
    --nav-bg:        #09090b;
    --font-sans:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
    --bg-deep: #f5f5f7; --bg-base: #ebebef; --bg-card: #ffffff; --bg-card-hover: #f0f0f4;
    --border-subtle: #d8d8de; --border-active: #c0c0c8;
    --text-primary: #2a2a32; --text-heading: #111118; --text-secondary: #55555e; --text-muted: #88889a;
    --accent: #5b6be8; --accent-dim: #5b6be8; --nav-bg: #ffffff;
}

[data-theme="light"] body {
    background-image: linear-gradient(to bottom, #e8e8f0 0%, var(--bg-deep) 600px);
}
[data-theme="light"] .star-cover {
    background: linear-gradient(to bottom, #f0f0f5 0%, #e8e8f0 40%, transparent 100%);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg-deep);
    background-image: linear-gradient(to bottom, #111118 0%, var(--bg-deep) 600px);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* STARFIELD */
.starfield {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}

.starfield canvas {
    display: block; width: 100%; height: 100%;
}

.star-cover {
    position: fixed; top: 0; left: 0; right: 0;
    height: 350px;
    background: linear-gradient(to bottom, #111118 0%, #0a0a0d 40%, transparent 100%);
    pointer-events: none; z-index: 0;
}

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

/* Nav styles loaded from shared.css */

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    width: 100%; max-width: 1140px;
    margin: 0 auto; padding: 0 0.75rem;
    position: relative; z-index: 1;
}

/* ============================================================
   HERO — split layout
   ============================================================ */
.hero {
    padding: 4rem 0 2.5rem;
    position: relative;
}

/* Moon glow orb behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(124,140,248,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 2rem; }
    .hero-left { text-align: center; }
    .hero-actions { justify-content: center; }
    .trust-row { justify-content: center; }
}

.hero-left { position: relative; z-index: 1; }

.hero-logo {
    display: block;
    width: 56px; height: 56px;
    margin: 0 0 1.2rem;
    opacity: 0.85;
    filter: drop-shadow(0 0 20px rgba(124,140,248,0.35)) drop-shadow(0 0 50px rgba(124,140,248,0.12));
    animation: heroFloat 6s ease-in-out infinite;
}
@media (max-width: 900px) {
    .hero-logo { margin: 0 auto 1.2rem; }
}

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

.hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text-heading);
    margin: 0 0 0.75rem;
    position: relative; z-index: 1;
}
.hero-title .accent { color: var(--accent); }

.hero-sub {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 0 1.8rem;
    position: relative; z-index: 1;
}
.hero-sub strong { color: var(--text-heading); font-weight: 600; }
@media (max-width: 900px) {
    .hero-sub { margin: 0 auto 1.8rem; }
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    position: relative; z-index: 1;
}

/* ── Hero showcase (right side) ── */
.hero-right { position: relative; z-index: 1; }

.hero-showcase {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,140,248,0.06);
}
.hero-showcase-main {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-deep);
    overflow: hidden;
}
.hero-showcase-main img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity 0.3s ease;
}
.hero-showcase-progress {
    position: absolute; bottom: 0; left: 0;
    height: 2px; width: 0%;
    background: var(--accent);
    opacity: 0.7;
    z-index: 2;
}

.hero-showcase-info {
    padding: 1rem 1.1rem 1.1rem;
}
.hero-showcase-badges {
    display: flex; gap: 0.4rem; margin-bottom: 0.5rem;
}
.hsi-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem; border-radius: 4px;
    text-transform: uppercase;
}
.hsi-badge.green {
    background: rgba(74,222,128,0.1); color: #4ade80;
    border: 1px solid rgba(74,222,128,0.15);
}
.hsi-badge.accent {
    background: rgba(124,140,248,0.1); color: var(--accent);
    border: 1px solid rgba(124,140,248,0.15);
}
.hsi-badge i { font-size: 0.58rem; }

.hero-showcase-name {
    font-size: 1.1rem; font-weight: 700; color: var(--text-heading);
    margin-bottom: 0.35rem;
}
.hero-showcase-features {
    display: flex; flex-wrap: wrap; gap: 0.3rem;
    margin-bottom: 0.55rem;
}
.hero-showcase-features span {
    font-size: 0.64rem; font-weight: 600;
    padding: 0.18rem 0.45rem; border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.hero-showcase-price {
    font-size: 0.78rem; color: var(--text-muted);
}
.hero-showcase-price strong {
    color: var(--text-heading); font-size: 0.95rem;
}

[data-theme="light"] .hero-showcase {
    border-color: var(--border-subtle);
    box-shadow: 0 12px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(91,107,232,0.08);
}
[data-theme="light"] .hero-showcase-features span {
    background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06);
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.82rem; font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none; cursor: pointer;
}
.btn-primary:hover {
    background: #6b7cf0;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124,140,248,0.25);
}

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.82rem; font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
    background: rgba(255,255,255,0.02);
}

/* ── Trust row ── */
.trust-row {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 1.5rem; position: relative; z-index: 1;
}
.trust-item {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
}
.trust-item i { font-size: 0.72rem; color: var(--accent); opacity: 0.7; }
.trust-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-active); }

@media (max-width: 480px) {
    .trust-row { flex-direction: column; gap: 0.3rem; }
    .trust-sep { display: none; }
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 0 2.5rem;
}

.stat { text-align: center; }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

/* ── Reviews ── */
.sec-tight { padding: 2rem 0; }
.reviews-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.review-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 10px; padding: 1rem 1.15rem;
}
.review-stars { font-size: 0.65rem; color: #eab308; margin-bottom: 0.45rem; display: flex; gap: 0.1rem; }
.review-text {
    font-size: 0.78rem; color: var(--text-secondary); line-height: 1.55;
    margin: 0 0 0.5rem; font-style: italic;
}
.review-author { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; }
@media (max-width: 700px) { .reviews-strip { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURED PRODUCT
   ============================================================ */
.sec {
    padding: 3rem 0;
}

.sec-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.sec-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.sec-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.3s;
}
.product-card:hover {
    border-color: var(--border-active);
    box-shadow: 0 0 40px rgba(124,140,248,0.04);
}

.product-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.product-card-img {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-card-body {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pcard-top-row {
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.pcard-badge {
    display: inline-flex;
    align-items: center; gap: 0.25rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #34d399;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.12);
    padding: 0.22rem 0.55rem;
    border-radius: 50px;
    width: fit-content;
}
.pcard-badge i { font-size: 0.45rem; }
.pcard-badge-muted {
    color: var(--text-muted); background: rgba(255,255,255,0.03);
    border-color: var(--border-subtle);
}
.pcard-badge-muted i { font-size: 0.55rem; }

.pcard-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.4rem;
}

.pcard-game {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.pcard-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.pcard-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
}

.pcard-feat {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.55rem;
    border-radius: 5px;
    display: inline-flex; align-items: center; gap: 0.3rem;
}

.pcard-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.pcard-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
}

.pcard-price-alt {
    font-size: 0.7rem; color: var(--text-muted);
    margin-left: 0.3rem;
}

.pcard-price-note {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.pcard-actions {
    display: flex;
    gap: 0.5rem;
}

.pcard-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.78rem; font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer; border: none;
}

.pcard-btn-primary {
    background: var(--accent);
    color: #fff;
}
.pcard-btn-primary:hover {
    background: #6b7cf0;
    box-shadow: 0 4px 16px rgba(124,140,248,0.2);
}

@media (max-width: 700px) {
    .product-card-inner {
        grid-template-columns: 1fr;
    }
    .product-card-img {
        min-height: 200px;
        max-height: 220px;
    }
    .product-card-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
}

/* ============================================================
   WHY TSUKI
   ============================================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.35rem 1.2rem 1.15rem;
    transition: border-color 0.2s;
}
.pillar:hover {
    border-color: var(--border-active);
}

.pillar-icon-wrap {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(124,140,248,0.06); border: 1px solid rgba(124,140,248,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--accent);
    margin-bottom: 0.75rem;
}

.pillar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.pillar-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.65rem;
}

.pillar-tag {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.65rem; font-weight: 600; color: #4ade80;
}
.pillar-tag i { font-size: 0.7rem; }

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

/* ============================================================
   COMMUNITY / DISCORD CTA
   ============================================================ */
.discord-cta {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
}

.discord-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.discord-box::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 300px; height: 150px;
    background: radial-gradient(ellipse, rgba(88,101,242,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.discord-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    position: relative; z-index: 1;
}

.discord-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.2rem;
    display: flex; align-items: center;
}

.discord-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0;
    line-height: 1.5;
}

.btn-discord {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #5865F2;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem; font-weight: 600;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none; cursor: pointer;
}
.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(88,101,242,0.25);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    height: 1px;
    background: var(--border-subtle);
    max-width: 1140px;
    margin: 0 auto;
    position: relative; z-index: 1;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Hero entrance (faster, no translate) */
.hero-enter {
    opacity: 0;
    transform: translateY(12px);
    animation: heroEnter 0.6s ease forwards;
}
@keyframes heroEnter {
    to { opacity: 1; transform: translateY(0); }
}
.hero-enter-d1 { animation-delay: 0.05s; }
.hero-enter-d2 { animation-delay: 0.15s; }
.hero-enter-d3 { animation-delay: 0.25s; }
.hero-enter-d4 { animation-delay: 0.35s; }
.hero-enter-d5 { animation-delay: 0.45s; }

/* Footer styles loaded from shared.css */

@media (max-width: 640px) {
    .hero { padding: 4rem 0 2.5rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-sub { font-size: 0.88rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost { justify-content: center; }
    .stats-row { gap: 1.25rem; padding-bottom: 2rem; }
    .stat-value { font-size: 1.15rem; }
    .stat-label { font-size: 0.6rem; }
    .product-card-body { padding: 1.25rem 1.15rem 1.5rem; }
    .pcard-price { font-size: 1.1rem; }
    .pcard-actions { flex-direction: column; }
    .pcard-btn { justify-content: center; }
    .sec-heading { font-size: 1.2rem; }
    .discord-inner { flex-direction: column; text-align: center; gap: 0.85rem; }
    .discord-desc { margin: 0.15rem auto 0; }
    .discord-title { justify-content: center; }
    .footer-top { flex-direction: column; gap: 1.5rem; }
    .footer-nav { gap: 2rem; }
}
[data-theme="light"] .starfield { display: none !important; }
