/* ================================
   LavinLab — Page Layouts
   ================================ */

/* ---- HERO ---- */

.hero {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 60px) 60px 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Grid overlay */
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(61,255,122,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61,255,122,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* Orange glow center-left */
.hero__glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation: glow-pulse1 5s ease-in-out infinite;
    pointer-events: none;
}

.hero__glow2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
    top: 30%;
    right: 10%;
    transform: translate(50%, -50%);
    animation: glow-pulse2 7s ease-in-out infinite 2s;
    animation-fill-mode: both;
    pointer-events: none;
}

@keyframes glow-pulse1 {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes glow-pulse2 {
    0%, 100% { opacity: 0.6; transform: translate(50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(50%, -50%) scale(1.1); }
}

/* Scanline decoration */
.hero::before {
    content: '';
    position: absolute;
    left: 60px; top: 30%;
    width: 1px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--orange), transparent);
    opacity: 0.4;
}

.hero__content { position: relative; z-index: 1; max-width: 820px; }

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--orange);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--orange);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 13vw, 11.5rem);
    line-height: 0.88;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

.hero__title .t-outline {
    -webkit-text-stroke: 1.5px var(--green);
    color: transparent;
}

.hero__title .t-orange {
    color: var(--orange);
}

.hero__sub {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 440px;
    line-height: 1.75;
    margin-bottom: 44px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Corner decoration */
.hero__corner {
    position: absolute;
    bottom: 40px;
    right: 60px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--border2);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
    0%, 90%, 100% { opacity: 0.5; }
    95%            { opacity: 0.1; }
}

/* ---- GAMES SECTION ---- */

.games-section {
    padding: var(--section-pad);
    background: var(--bg2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2px;
}

/* ---- ABOUT SECTION ---- */

.about-section {
    padding: var(--section-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    font-size: 0.95rem;
    color: var(--text2);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__text em {
    color: var(--orange);
    font-style: normal;
    font-weight: 600;
}

/* Stats strip */
.about__stats {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.stat {
    background: var(--surface);
    padding: 20px 16px;
    text-align: center;
}

.stat__num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.stat__num--orange { color: var(--orange); }
.stat__num--green  { color: var(--green); }

.stat__label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Visual side */
.about__visual {
    position: relative;
    height: 380px;
}

.about__box {
    position: absolute;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    background: var(--surface);
    color: var(--muted);
}

.about__box-1 {
    width: 220px; height: 220px;
    top: 0; left: 0;
    border-color: var(--orange);
    font-size: 4.5rem;
    color: var(--orange);
    animation: float-a 7s ease-in-out infinite;
}

.about__box-2 {
    width: 140px; height: 140px;
    bottom: 20px; right: 20px;
    border-color: var(--green);
    font-size: 2.5rem;
    color: var(--green);
    animation: float-b 6s ease-in-out infinite 1s;
}

.about__box-3 {
    width: 80px; height: 80px;
    top: 30px; right: 60px;
    border-color: var(--border2);
    font-size: 0.55rem;
    animation: float-a 8s ease-in-out infinite 0.5s;
}

.about__line {
    position: absolute;
    background: var(--border2);
}

.about__line-h {
    height: 1px;
    width: 80px;
    top: 110px;
    left: 220px;
}

.about__line-v {
    width: 1px;
    height: 60px;
    top: 170px;
    left: 300px;
}

@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ---- CONTACT SECTION ---- */

.contact-section {
    padding: var(--section-pad);
    background: var(--bg2);
    text-align: center;
}

.contact-section .sec-tag { justify-content: center; }
.contact-section .sec-tag::before { display: none; }

.contact__sub {
    font-size: 1rem;
    color: var(--text2);
    margin-bottom: 48px;
    margin-top: -40px;
}

.contact__grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.contact__link {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text2);
    padding: 13px 26px;
    border: 1px solid var(--border2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.contact__link:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
}

/* ================================
   Game Pages (individual)
   ================================ */

.game-hero {
    min-height: 70vh;
    padding: calc(var(--nav-h) + 40px) 60px 60px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.game-hero__bg {
    position: absolute;
    inset: 0;
}

.game-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.game-hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    letter-spacing: 0.04em;
    line-height: 0.9;
    margin-bottom: 20px;
}

.game-detail {
    padding: var(--section-pad);
}

.game-detail__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.game-detail__desc {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.85;
}

.game-detail__sidebar {}

.sidebar__block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.sidebar__block:last-child { border-bottom: none; margin-bottom: 0; }

.sidebar__label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}

.sidebar__val {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1024px) {
    .about-section { grid-template-columns: 1fr; gap: 50px; }
    .about__visual { display: none; }
    .game-detail__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-pad: var(--section-pad-sm); }

    .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; }
    .hero::before { left: 24px; }
    .hero__corner { display: none; }

    .games-section { padding: 70px 24px; }
    .games-grid { grid-template-columns: 1fr; }

    .about__stats { grid-template-columns: repeat(3, 1fr); }

    .game-hero { padding: calc(var(--nav-h) + 20px) 24px 40px; }
    .game-detail { padding: 60px 24px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: clamp(4rem, 20vw, 5.5rem); }
    .about__stats { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; }
    .btn { text-align: center; justify-content: center; }
}
