/* ============================================
   gamelicensor.info - Vaporwave Dreamscape
   Colors: #F5C6A8, #2E8B8B, #E8D8C0, #7B5EA7, #E88BAE, #50D0D0, #2A2A38
   Fonts: Jost (headlines), Saira (body), JetBrains Mono (code/steps)
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Saira', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: #2A2A38;
    background: linear-gradient(180deg, #F5C6A8 0%, #E8D8C0 25%, #50D0D0 50%, #2E8B8B 75%, #7B5EA7 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   Vaporwave Perspective Grid
   ============================================ */

#vaporwave-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 500ms ease;
}

#vaporwave-grid.visible {
    opacity: 1;
}

#vaporwave-grid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    transform: translateX(-50%) perspective(400px) rotateX(45deg);
    transform-origin: center bottom;
    background-image:
        repeating-linear-gradient(90deg, rgba(123, 94, 167, 0.15) 0px, rgba(123, 94, 167, 0.15) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(123, 94, 167, 0.15) 0px, rgba(123, 94, 167, 0.15) 1px, transparent 1px, transparent 60px);
    background-size: 60px 60px;
}

#vaporwave-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(123, 94, 167, 0.08), transparent);
}

/* ============================================
   Aurora Light Bands
   ============================================ */

#aurora-bands {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.aurora-band {
    position: absolute;
    width: 200%;
    height: 120px;
    left: -50%;
    opacity: 0.25;
}

.aurora-band-1 {
    top: 20%;
    background: linear-gradient(90deg, transparent, #E88BAE, #50D0D0, #F5C6A8, transparent);
    animation: auroraDrift1 15s linear infinite;
}

.aurora-band-2 {
    top: 45%;
    background: linear-gradient(90deg, transparent, #50D0D0, #F5C6A8, #E88BAE, transparent);
    animation: auroraDrift2 20s linear infinite;
    height: 80px;
}

.aurora-band-3 {
    top: 70%;
    background: linear-gradient(90deg, transparent, #F5C6A8, #E88BAE, #50D0D0, transparent);
    animation: auroraDrift3 18s linear infinite;
    height: 100px;
}

@keyframes auroraDrift1 {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

@keyframes auroraDrift2 {
    0% { transform: translateX(-25%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

@keyframes auroraDrift3 {
    0% { transform: translateX(-10%); }
    50% { transform: translateX(-30%); }
    100% { transform: translateX(-10%); }
}

/* ============================================
   Hero Section
   ============================================ */

#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

#hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

.title-main {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 8vw, 90px);
    letter-spacing: 0.06em;
    color: #2A2A38;
    opacity: 0;
    display: inline-block;
}

.title-main.revealed {
    opacity: 1;
}

.title-main .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.title-main .char.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-info {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, 5vw, 60px);
    letter-spacing: 0.04em;
    color: #7B5EA7;
    opacity: 0;
    position: relative;
    transition: opacity 600ms ease;
}

.title-info.visible {
    opacity: 1;
}

.title-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(232, 139, 174, 0.3), rgba(80, 208, 208, 0.15), transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: auroraGlow 4s ease-in-out infinite alternate;
}

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

.hero-tagline {
    font-family: 'Saira', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2vw, 22px);
    color: #2A2A38;
    opacity: 0;
    margin-top: 1.5em;
    transition: opacity 800ms ease 2400ms;
}

body.loaded .hero-tagline {
    opacity: 0.7;
}

/* ============================================
   Vector Decorations
   ============================================ */

.vector-decoration {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 600ms ease, transform 600ms ease;
}

.vector-decoration.visible {
    opacity: 0.6;
}

.vector-deco-1 {
    top: 15%;
    right: 8%;
    width: clamp(60px, 10vw, 120px);
    transform: translateX(40px);
}

.vector-deco-1.visible {
    transform: translateX(0);
}

.vector-deco-2 {
    bottom: 20%;
    left: 5%;
    width: clamp(80px, 12vw, 140px);
    transform: translateX(-40px);
}

.vector-deco-2.visible {
    transform: translateX(0);
}

.vector-deco-3 {
    top: 60%;
    right: 12%;
    width: clamp(50px, 8vw, 100px);
    transform: translateY(30px);
}

.vector-deco-3.visible {
    transform: translateY(0);
}

/* ============================================
   Main Content
   ============================================ */

#content {
    position: relative;
    z-index: 2;
    padding: 5vh 5vw 10vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   Content Islands
   ============================================ */

.content-island {
    margin-bottom: 8vh;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.content-island.in-view {
    opacity: 1;
    transform: translateY(0);
}

.island-left {
    width: clamp(300px, 60%, 700px);
    margin-right: auto;
    margin-left: 2vw;
}

.island-right {
    width: clamp(300px, 55%, 650px);
    margin-left: auto;
    margin-right: 4vw;
}

.island-center {
    width: clamp(300px, 65%, 750px);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Glass Morphism Panels
   ============================================ */

.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 48px);
    transition: border-radius 800ms ease, backdrop-filter 600ms ease;
}

.content-island.in-view .glass-panel {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.content-island.in-view.at-center .glass-panel {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
}

/* ============================================
   Typography inside islands
   ============================================ */

.content-island h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 5vw, 48px);
    letter-spacing: 0.04em;
    color: #2A2A38;
    margin-bottom: 0.6em;
}

.content-island h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 2.5vw, 24px);
    color: #7B5EA7;
    margin-bottom: 0.3em;
}

.content-island p {
    color: #2A2A38;
    margin-bottom: 1em;
}

/* ============================================
   Island Step Numbers
   ============================================ */

.island-step {
    margin-bottom: 1em;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: clamp(32px, 5vw, 56px);
    color: rgba(123, 94, 167, 0.25);
    letter-spacing: 0.02em;
}

/* ============================================
   Island Vector Art
   ============================================ */

.island-vector {
    margin-top: 1.5em;
    text-align: center;
}

.island-vector svg {
    width: clamp(120px, 40%, 200px);
    height: auto;
}

/* ============================================
   License Types (Island 2)
   ============================================ */

.license-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
}

.license-type {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(123, 94, 167, 0.2);
    border-radius: 10px;
    padding: 1.2em;
    transition: background 300ms ease;
}

.license-type:hover {
    background: rgba(255, 255, 255, 0.2);
}

.license-type p {
    font-size: 0.9em;
    margin-bottom: 0;
}

/* ============================================
   Process Steps (Island 3)
   ============================================ */

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.process-step {
    display: flex;
    gap: 1em;
    align-items: flex-start;
}

.process-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 1.4em;
    color: #50D0D0;
    min-width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(80, 208, 208, 0.4);
    border-radius: 50%;
    flex-shrink: 0;
}

.process-step h3 {
    margin-bottom: 0.15em;
}

.process-step p {
    margin-bottom: 0;
}

/* ============================================
   Comparison Grid (Island 4)
   ============================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.comparison-col {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2em;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.comparison-col h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid rgba(80, 208, 208, 0.3);
}

.comparison-col ul {
    list-style: none;
    padding: 0;
}

.comparison-col li {
    padding: 0.3em 0;
    padding-left: 1.2em;
    position: relative;
    font-size: 0.95em;
}

.comparison-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 6px;
    height: 6px;
    background: #E88BAE;
    border-radius: 50%;
}

/* ============================================
   Terms Grid (Island 5)
   ============================================ */

.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.term-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(232, 139, 174, 0.2);
    border-radius: 10px;
    padding: 1em;
    transition: transform 300ms ease, background 300ms ease;
}

.term-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.term-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.95em;
    color: #50D0D0;
    margin-bottom: 0.3em;
}

.term-card p {
    font-size: 0.88em;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   Best Practices (Island 6)
   ============================================ */

.best-practices {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.practice-item {
    display: flex;
    gap: 1em;
    align-items: flex-start;
}

.practice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.practice-icon svg {
    width: 100%;
    height: 100%;
}

.practice-item h3 {
    margin-bottom: 0.15em;
}

.practice-item p {
    margin-bottom: 0;
}

/* ============================================
   Resources (Island 7)
   ============================================ */

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    margin-top: 1em;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.6em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-bullet {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #E88BAE, #50D0D0);
    border-radius: 50%;
    flex-shrink: 0;
}

.resource-item span:last-child {
    font-size: 0.95em;
}

/* ============================================
   Footer
   ============================================ */

#site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4em 2em;
    overflow: hidden;
}

.footer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(90deg, rgba(123, 94, 167, 0.08) 0px, rgba(123, 94, 167, 0.08) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(123, 94, 167, 0.08) 0px, rgba(123, 94, 167, 0.08) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
}

.footer-text {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 0.08em;
    color: rgba(42, 42, 56, 0.5);
    text-transform: uppercase;
}

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

@media (max-width: 768px) {
    .island-left,
    .island-right,
    .island-center {
        width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .license-types,
    .comparison-grid,
    .terms-grid {
        grid-template-columns: 1fr;
    }

    .content-island.in-view .glass-panel {
        border-radius: 16px;
    }

    .content-island.in-view.at-center .glass-panel {
        border-radius: 16px;
    }

    .vector-deco-1,
    .vector-deco-2,
    .vector-deco-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    #content {
        padding: 3vh 3vw 8vh;
    }

    .glass-panel {
        padding: clamp(16px, 4vw, 24px);
    }
}
