/* ============================================
   Clownfield 6 Official Styles
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --bg-dark: #0a0a0c;
    --bg-section: #0e0e12;
    --bg-card: #14141a;
    --red-primary: #e62020;
    --red-glow: #ff2a2a;
    --red-dark: #8b1a1a;
    --gold-accent: #d4a843;
    --text-primary: #e8e6e3;
    --text-secondary: #9a9590;
    --text-dim: #5a5550;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--red-dark) var(--bg-dark);
}

body {
	caret-color: transparent;
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--red-primary);
    color: #fff;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 32, 32, 0.15);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo .six {
    color: var(--red-primary);
    text-shadow: 0 0 20px rgba(230, 32, 32, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    letter-spacing: 0.15em !important;
    padding: 0.5rem 1.5rem;
    background: var(--red-primary);
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-cta:hover {
    background: var(--red-glow);
    box-shadow: 0 0 30px rgba(230, 32, 32, 0.4);
}

.nav-cta::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230, 32, 32, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 26, 26, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(230, 32, 32, 0.05) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../img/1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(1px);
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,12,0.8) 100%);
}

.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-lines::before,
.hero-lines::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(230, 32, 32, 0.08), transparent);
}

.hero-lines::before { left: 20%; }
.hero-lines::after { left: 80%; }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--red-primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-title .highlight {
    color: var(--red-primary);
    text-shadow: 0 0 60px rgba(230, 32, 32, 0.4), 0 0 120px rgba(230, 32, 32, 0.15);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 1.5rem auto 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero-scroll span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--red-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    padding: 0.9rem 3rem;
    background: var(--red-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    background: var(--red-glow);
    box-shadow: 0 0 40px rgba(230, 32, 32, 0.5), 0 0 80px rgba(230, 32, 32, 0.2);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    padding: 0.9rem 3rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-dim);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    box-shadow: 0 0 30px rgba(230, 32, 32, 0.15);
}

.btn-steam {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    padding: 0.9rem 3rem;
    background: var(--red-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.btn-steam:hover {
    background: var(--red-glow);
    box-shadow: 0 0 40px rgba(230, 32, 32, 0.5), 0 0 80px rgba(230, 32, 32, 0.2);
    transform: translateY(-2px);
}

.btn-steam svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 7rem 2rem;
    position: relative;
}

.section-alt {
    background: var(--bg-section);
}

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

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--red-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--red-primary);
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(230, 32, 32, 0.3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid rgba(230, 32, 32, 0.1);
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-visual:hover img {
    transform: scale(1.03);
}

.about-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(230, 32, 32, 0.06), transparent 70%);
    pointer-events: none;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 2rem;
    margin-top: 0.5rem;
}

.features-list li {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}

.features-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--red-primary);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--red-primary);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* ============================================
   LORE SECTION
   ============================================ */
.lore-content {
    max-width: 800px;
}

.lore-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.lore-year {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    margin-top: 2.5rem;
    text-shadow: 0 0 30px rgba(230, 32, 32, 0.2);
}

.lore-year:first-of-type {
    margin-top: 0;
}

.lore-emphasis {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 2rem 0;
    padding: 1rem 0;
}

.lore-quote {
    border-left: 2px solid var(--red-primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(230, 32, 32, 0.03);
}

.lore-quote p {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============================================
   MECHANICS SECTION
   ============================================ */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.mechanic-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mechanic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mechanic-card:hover {
    border-color: rgba(230, 32, 32, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.mechanic-card:hover::before {
    transform: scaleX(1);
}

.mechanic-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    display: block;
}

.mechanic-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.mechanic-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   DEV NOTES
   ============================================ */
.devnotes {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.devnotes-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.devnotes-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 3rem;
}

.devnotes-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.devnotes-list li::before {
    content: '*';
    position: absolute;
    left: 0;
    color: var(--red-primary);
    font-family: var(--font-mono);
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.screenshot {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.screenshot:hover {
    border-color: rgba(230, 32, 32, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transform: scale(1.02);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.screenshot:hover img {
    transform: scale(1.05);
}

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.2rem 1rem;
    background: linear-gradient(to top, rgba(10,10,12,0.9), transparent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.screenshot:hover .screenshot-label {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 2rem;
    position: relative;
}

.review-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(230, 32, 32, 0.1);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.review-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.review-source {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.review-score {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--red-primary);
    line-height: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(230, 32, 32, 0.08), transparent 70%),
        var(--bg-dark);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section .section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.platform-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.platform-badge:hover {
    border-color: rgba(230, 32, 32, 0.3);
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: var(--bg-dark);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

.footer-logo .six {
    color: var(--red-dark);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

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

    .devnotes-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 12, 0.97);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 998;
    }

    .nav-links.active a {
        font-size: 1.2rem;
        color: var(--text-primary);
    }

    .nav-toggle {
        display: block;
        z-index: 999;
    }

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

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

    .section {
        padding: 5rem 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .platform-badges {
        gap: 0.5rem;
    }
}
