/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0A0A;
    --accent: #7B1E3A;
    --accent-hover: #A0284E;
    --text: #F5F5F5;
    --text-muted: #B0B0B0;
    --card-bg: #141414;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text);
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(123, 30, 58, 0.3);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-logo img {
    border-radius: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-x-link {
    color: var(--accent) !important;
    font-weight: 600;
}

.nav-x-link:hover {
    color: var(--accent-hover) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.65) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 20px 80px;
    max-width: 750px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF4D7A;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(245, 245, 245, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

/* === Sections === */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

/* === Gallery === */
.gallery-wrapper {
    position: relative;
}

.gallery-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: var(--accent) var(--card-bg);
    padding-bottom: 16px;
}

.gallery-scroll::-webkit-scrollbar {
    height: 10px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 5px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(123, 30, 58, 0.85);
    border: 1px solid rgba(245, 245, 245, 0.15);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.gallery-arrow:hover {
    background: var(--accent-hover);
    opacity: 1;
}

.gallery-arrow-left {
    left: 8px;
}

.gallery-arrow-right {
    right: 8px;
}

.gallery-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.gallery-item {
    flex-shrink: 0;
    width: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.06);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* === Kaori Section === */
.kaori-section {
    background: linear-gradient(135deg, rgba(123, 30, 58, 0.15) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 1px solid rgba(123, 30, 58, 0.3);
    border-bottom: 1px solid rgba(123, 30, 58, 0.3);
    text-align: center;
}

.kaori-description {
    max-width: 650px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.kaori-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.kaori-or {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* === Girls Section === */
.girls-intro {
    max-width: 800px;
    margin: -24px auto 48px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.girls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.girl-card {
    background: var(--card-bg);
    border: 1px solid rgba(245, 245, 245, 0.06);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: end;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: default;
}

.girl-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(123, 30, 58, 0.3);
}

.girl-sprite {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 194px;
    position: relative;
}

.girl-sprite img {
    width: 140px;
    height: auto;
    display: block;
    transition: opacity 0.35s, filter 0.35s;
}

.girl-sprite .sprite-before {
    filter: brightness(0.7) grayscale(0.3);
    opacity: 1;
}

.girl-sprite .sprite-after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    filter: brightness(1) grayscale(0);
}

.girl-card:hover .sprite-before {
    opacity: 0;
}

.girl-card:hover .sprite-after {
    opacity: 1;
}

.girl-info {
    padding: 16px 16px 16px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    align-self: center;
}

.girl-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    transition: color 0.3s;
}

.girl-card:hover .girl-info h3 {
    color: var(--accent-hover);
}

.girl-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    opacity: 0.65;
    transition: opacity 0.35s;
}

.girl-card:hover .girl-bio {
    opacity: 1;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(245, 245, 245, 0.06);
    border-radius: 12px;
    padding: 28px 24px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: rgba(123, 30, 58, 0.4);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.track-record-text {
    max-width: 700px;
    margin: -24px auto 40px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === Developer Story === */
.dev-story {
    max-width: 700px;
    margin: 0 auto 56px;
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid rgba(245, 245, 245, 0.06);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.dev-story h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.dev-story p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.dev-story p:last-child {
    margin-bottom: 0;
    color: var(--text);
    font-weight: 500;
}

/* === Social Proof === */
.proof-section {
    padding: 60px 0 40px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proof-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.proof-star {
    color: #f5c518;
}

.proof-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === Tier Cards === */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.tier-card {
    background: var(--card-bg);
    border: 1px solid rgba(245, 245, 245, 0.06);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.tier-featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(123, 30, 58, 0.2);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.tier-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tier-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.tier-card .btn {
    width: 100%;
    justify-content: center;
}

/* === Social Links === */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(245, 245, 245, 0.06);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.social-link:hover {
    border-color: rgba(123, 30, 58, 0.4);
}

.social-link-featured {
    border-color: var(--accent);
    background: rgba(123, 30, 58, 0.1);
    grid-column: 1 / -1;
}

.social-link strong {
    display: block;
    font-size: 0.95rem;
}

.social-link small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-link svg {
    flex-shrink: 0;
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* === Footer === */
.footer {
    border-top: 1px solid rgba(245, 245, 245, 0.06);
    padding: 40px 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--text);
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-hover);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 1100px) {
    .girls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(123, 30, 58, 0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tiers-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        width: 300px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .girls-grid {
        grid-template-columns: 1fr;
    }

    /* Show bios by default on mobile since no hover */
    .girl-bio {
        opacity: 1;
        max-height: 300px;
    }

    .girl-sprite .sprite-before {
        opacity: 0;
    }

    .girl-sprite .sprite-after {
        opacity: 1;
    }

    .gallery-arrow {
        display: none;
    }

    .kaori-buttons {
        flex-direction: column;
        align-items: center;
    }
}
