/* gamelicen.se - Brutalist Neon Grids Agency */
/* Palette: #111111, #1a1a1a, #222222, #333333, #39ff14, #e0e0e0 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #111111;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ========== GRID BACKGROUND ========== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg, #333333 0px, transparent 1px, transparent 60px),
        repeating-linear-gradient(90deg, #333333 0px, transparent 1px, transparent 60px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* ========== SCANLINES ========== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* ========== CORNER MARKS ========== */
.corner {
    position: absolute;
    width: 14px;
    height: 14px;
}

.corner.tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid #39ff14;
    border-left: 2px solid #39ff14;
}

.corner.tr {
    top: -1px;
    right: -1px;
    border-top: 2px solid #39ff14;
    border-right: 2px solid #39ff14;
}

.corner.bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid #39ff14;
    border-left: 2px solid #39ff14;
}

.corner.br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid #39ff14;
    border-right: 2px solid #39ff14;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Game controller icon (CSS geometric) */
.controller-icon {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideDown 0.6s ease 0.3s forwards;
}

.controller-body {
    width: 52px;
    height: 28px;
    border: 2px solid #39ff14;
    border-radius: 6px 6px 12px 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.controller-dpad {
    width: 14px;
    height: 14px;
    position: relative;
}

.controller-dpad::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 14px;
    height: 5px;
    background: #39ff14;
}

.controller-dpad::after {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 5px;
    height: 14px;
    background: #39ff14;
}

.controller-buttons {
    display: flex;
    gap: 4px;
}

.controller-buttons span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #39ff14;
}

.version-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #39ff14;
    letter-spacing: 0.2em;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 6rem);
    -webkit-text-stroke: 1.5px #39ff14;
    color: transparent;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.7s forwards;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    margin-top: 0.6rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.9s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: #39ff14;
    margin: 1.5rem 0;
    opacity: 0;
    animation: expandWidth 0.5s ease 1.1s forwards;
}

.hero-sub {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #555555;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.3s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.6s forwards;
}

.scroll-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #555555;
    letter-spacing: 0.3em;
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid #39ff14;
    border-bottom: 1.5px solid #39ff14;
    transform: rotate(45deg);
    animation: bounce 2s ease infinite;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    margin-bottom: 2rem;
}

.section-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #555555;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.3rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #39ff14;
    margin-bottom: 0.5rem;
}

.section-line {
    width: 40px;
    height: 2px;
    background: #39ff14;
}

/* ========== LICENSES SECTION ========== */
.licenses {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    position: relative;
    z-index: 1;
}

.license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .license-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.cell {
    background: #1a1a1a;
    border: 1px solid #333333;
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.cell.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.cell:hover {
    border-color: #39ff14;
    background: rgba(57, 255, 20, 0.03);
}

.cell:hover .corner {
    width: 20px;
    height: 20px;
}

.cell .corner {
    transition: width 0.3s ease, height 0.3s ease;
}

.cell-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333333;
}

.cell-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #39ff14;
}

.cell-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #555555;
    letter-spacing: 0.1em;
}

.cell-body {
    margin-bottom: 1rem;
}

.cell-desc {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.cell-terms {
    list-style: none;
}

.cell-terms li {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #222222;
    display: flex;
    justify-content: space-between;
}

.cell-terms li:last-child {
    border-bottom: none;
}

.term-key {
    color: #777777;
}

.term-val {
    color: #aaaaaa;
}

.term-val.neon {
    color: #39ff14;
}

.cell-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #333333;
}

.cell-status {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #39ff14;
    letter-spacing: 0.15em;
}

/* ========== COMPARE SECTION ========== */
.compare {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    position: relative;
    z-index: 1;
}

.table-wrapper {
    overflow-x: auto;
}

.table {
    border: 1px solid #333333;
    min-width: 500px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.table.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.table-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    background: #222222;
    padding: 0.75rem 1.2rem;
    border-bottom: 2px solid #39ff14;
}

.th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #39ff14;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.table-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid #222222;
    transition: background-color 0.2s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(57, 255, 20, 0.03);
}

.td {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #aaaaaa;
    display: flex;
    align-items: center;
}

.td.label {
    font-family: 'Inter', sans-serif;
    color: #888888;
}

.td.neon {
    color: #39ff14;
}

.td.dim {
    color: #444444;
}

/* ========== EXECUTE SECTION ========== */
.execute {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

.execute-cell {
    position: relative;
    padding: 3rem 3.5rem;
    border: 1px solid #333333;
    background: #1a1a1a;
    text-align: center;
    max-width: 500px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.execute-cell.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.execute-prompt {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #39ff14;
    margin-bottom: 1.5rem;
}

.execute-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.exec-btn {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #39ff14;
    border: 1px solid #39ff14;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.exec-btn:hover {
    background: #39ff14;
    color: #111111;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.exec-btn:active {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

.execute-divider {
    width: 30px;
    height: 1px;
    background: #333333;
    margin: 0 auto 1rem;
}

.execute-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    -webkit-text-stroke: 0.5px #39ff14;
    color: transparent;
    display: block;
    margin-bottom: 0.3rem;
}

.execute-copy {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #555555;
    display: block;
}

/* ========== FOOTER ========== */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid #222222;
    position: relative;
    z-index: 1;
}

.footer-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-item {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #444444;
    letter-spacing: 0.05em;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 60px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(6px);
    }
    60% {
        transform: rotate(45deg) translateY(3px);
    }
}

/* ========== NEON GLOW PULSE ========== */
@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(57, 255, 20, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(57, 255, 20, 0.7), 0 0 30px rgba(57, 255, 20, 0.3);
    }
}

.brand {
    animation: fadeIn 0.6s ease 0.7s forwards, neonPulse 3s ease-in-out 2s infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .hero {
        padding: 1.5rem;
    }

    .licenses,
    .compare {
        padding: 3rem 1rem 4rem;
    }

    .execute-cell {
        padding: 2rem 1.5rem;
    }

    .execute-buttons {
        flex-direction: column;
        align-items: center;
    }

    .exec-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .table-header,
    .table-row {
        padding: 0.5rem 0.8rem;
    }
}
