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

:root {
    --navy-950: #060c18;
    --navy-900: #0a1628;
    --navy-800: #0f1d33;
    --navy-700: #162847;
    --navy-600: #1a2d4a;
    --teal-500: #2a9d8f;
    --teal-400: #3ab4a6;
    --teal-300: #4ecdc4;
    --teal-200: #7eddd6;
    --white: #ffffff;
    --gray-50: #f8fafb;
    --gray-100: #eef2f5;
    --gray-200: #dde4ea;
    --gray-400: #8899aa;
    --gray-600: #556677;
    --glow-teal: rgba(78, 205, 196, 0.15);
    --glow-teal-strong: rgba(78, 205, 196, 0.3);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal-500) var(--navy-900);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--navy-950);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--teal-500);
    color: var(--navy-950);
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-teal) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ========== NOISE OVERLAY ========== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 12, 24, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(78, 205, 196, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(6, 12, 24, 0.9);
    border-bottom-color: rgba(78, 205, 196, 0.12);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--glow-teal)); }
    50% { filter: drop-shadow(0 0 12px var(--glow-teal-strong)); }
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white), var(--teal-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-500);
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(78, 205, 196, 0.08);
}

.nav-link:hover .nav-dot, .nav-link.active .nav-dot {
    opacity: 1;
    transform: scale(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-950);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(rgba(78, 205, 196, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 205, 196, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-scanline {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(78, 205, 196, 0.015) 2px,
        rgba(78, 205, 196, 0.015) 4px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(78, 205, 196, 0.06);
    border: 1px solid rgba(78, 205, 196, 0.12);
    border-radius: 100px;
    color: var(--teal-300);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 0.3s forwards;
}

.tag-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-300);
    position: relative;
}

.tag-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--teal-300);
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(40px);
}

.title-line[data-line="1"] {
    animation: heroFadeUp 0.8s ease 0.5s forwards;
    color: var(--white);
}

.title-outline {
    -webkit-text-stroke: 2px var(--teal-300);
    -webkit-text-fill-color: transparent;
    animation: heroFadeUp 0.8s ease 0.7s forwards !important;
}

.title-accent {
    background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-blink {
    display: inline-block;
    color: var(--teal-300);
    font-weight: 300;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line[data-line="3"] {
    animation: heroFadeUp 0.8s ease 0.9s forwards;
    color: var(--gray-400);
    font-weight: 500;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 1.1s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 1.3s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-300));
    color: var(--navy-950);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-300), var(--teal-200));
    opacity: 0;
    transition: var(--transition);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

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

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px var(--glow-teal-strong);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-300);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(78, 205, 196, 0.2);
}

/* ========== HERO ORB ========== */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: heroFadeUp 1s ease 0.6s forwards;
}

.hero-orb-container {
    position: relative;
    width: 360px;
    height: 360px;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: orbRotate 20s linear infinite;
}

.orb-ring-1 {
    inset: 0;
    border-color: rgba(78, 205, 196, 0.15);
    animation-duration: 20s;
}

.orb-ring-2 {
    inset: 30px;
    border-color: rgba(78, 205, 196, 0.1);
    animation-duration: 15s;
    animation-direction: reverse;
}

.orb-ring-3 {
    inset: 60px;
    border-color: rgba(78, 205, 196, 0.08);
    animation-duration: 25s;
}

.orb-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-300);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--teal-300);
}

@keyframes orbRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orb-core {
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orbPulse 4s ease-in-out infinite;
}

.orb-core svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px var(--glow-teal-strong));
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== SCROLL INDICATOR ========== */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 1.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--teal-300), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--white);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0% { top: -50%; }
    100% { top: 150%; }
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ========== LIBRARY ========== */
.library {
    position: relative;
    padding: 120px 32px 140px;
    background: var(--navy-900);
    overflow: hidden;
}

.library-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lib-grid-line {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(78, 205, 196, 0.04), transparent);
    width: 1px;
    height: 100%;
}

.lib-grid-line-1 { left: 25%; }
.lib-grid-line-2 { left: 50%; }
.lib-grid-line-3 { left: 75%; }

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--teal-500);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.section-tag.visible {
    animation: heroFadeUp 0.6s ease forwards;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.section-title.visible {
    animation: heroFadeUp 0.6s ease 0.1s forwards;
}

.title-thin {
    font-weight: 300;
    color: var(--gray-400);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
}

.section-desc.visible {
    animation: heroFadeUp 0.6s ease 0.2s forwards;
}

/* ========== GAME CARDS ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 36px;
}

.game-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 29, 51, 0.8), rgba(10, 22, 40, 0.9));
    border: 1px solid rgba(78, 205, 196, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
    perspective: 1000px;
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.game-card.visible:hover {
    border-color: rgba(78, 205, 196, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px var(--glow-teal);
}

.card-cover {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .card-cover img {
    transform: scale(1.12);
}

.card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(6, 12, 24, 0.3) 50%,
        rgba(6, 12, 24, 0.9) 100%
    );
    transition: var(--transition);
}

.card-cover-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-300), transparent);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .card-cover-glow {
    opacity: 1;
}

.card-body {
    padding: 28px;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.12);
    color: var(--teal-300);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 16px;
}

.card-category::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal-300);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.game-card:hover .card-title {
    color: var(--teal-300);
}

.card-description {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--teal-300);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-300));
    opacity: 0;
    transition: var(--transition);
}

.card-play span {
    position: relative;
    z-index: 1;
}

.card-play svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.card-play:hover {
    border-color: var(--teal-300);
    color: var(--navy-950);
    box-shadow: 0 4px 24px var(--glow-teal);
}

.card-play:hover::before {
    opacity: 1;
}

.card-play:hover svg {
    transform: translateX(4px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy-950);
    padding: 48px 32px;
    border-top: 1px solid rgba(78, 205, 196, 0.06);
}

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

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    margin-left: 32px;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 120px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-right {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 64px;
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(6, 12, 24, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid rgba(78, 205, 196, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .library {
        padding: 60px 16px 80px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-cover {
        height: 200px;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 24px;
    }

    .hero-stats {
        justify-content: center;
    }

    .title-line {
        font-size: 2.2rem;
    }

    .title-line[data-line="3"] {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 22px;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--teal-300);
    outline-offset: 2px;
}

/* ========== DROPDOWN MENU ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    color: var(--gray-400);
    font-family: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-trigger:hover {
    color: var(--white);
    background: rgba(78, 205, 196, 0.08);
}

.nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 280px;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 8px 12px 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-400);
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(78, 205, 196, 0.08);
    color: var(--white);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--teal-300);
}

.dropdown-item-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: inherit;
}

.dropdown-item-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(78, 205, 196, 0.08);
    margin: 6px 0;
}

.dropdown-item-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-item-disabled .dropdown-item-title {
    font-size: 0.8rem;
}

/* ========== BTN SECONDARY ========== */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--teal-300);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-300));
    opacity: 0;
    transition: var(--transition);
}

.btn-secondary span, .btn-secondary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--teal-300);
    color: var(--navy-950);
    box-shadow: 0 4px 24px var(--glow-teal);
}

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

.btn-secondary:hover svg {
    transform: rotate(-15deg);
}

/* ========== TOOLS SECTION ========== */
.tools-section {
    position: relative;
    padding: 120px 32px 80px;
    background: var(--navy-950);
    overflow: hidden;
}

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

.tool-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 29, 51, 0.8), rgba(10, 22, 40, 0.9));
    border: 1px solid rgba(78, 205, 196, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    perspective: 1000px;
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    border-color: rgba(78, 205, 196, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--glow-teal);
    transform: translateY(-4px);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--teal-300);
}

.tool-card-icon svg {
    width: 24px;
    height: 24px;
}

.tool-card-category {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: 100px;
    color: var(--teal-300);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tool-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.tool-card-desc {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tool-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--teal-300);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.tool-card-btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.tool-card-btn:hover {
    border-color: var(--teal-300);
    background: rgba(78, 205, 196, 0.1);
    box-shadow: 0 4px 20px var(--glow-teal);
}

.tool-card-btn:hover svg {
    transform: translateX(3px);
}

/* ========== GLASGOW TOOL ========== */
.glasgow-section {
    position: relative;
    padding: 100px 32px 80px;
    background: var(--navy-900);
    overflow: hidden;
}

.glasgow-header {
    text-align: center;
    margin-bottom: 60px;
}

.glasgow-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--teal-300);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.7;
    transition: var(--transition);
}

.glasgow-back:hover {
    opacity: 1;
}

.glasgow-back svg {
    width: 16px;
    height: 16px;
}

.glasgow-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.12);
    border-radius: 100px;
    color: var(--teal-300);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.glasgow-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.glasgow-desc {
    font-size: 1rem;
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.glasgow-formula {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--teal-300);
    background: rgba(78, 205, 196, 0.06);
    border: 1px solid rgba(78, 205, 196, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
}

/* ========== GLASGOW COMPONENTS ========== */
.glasgow-component {
    background: linear-gradient(145deg, rgba(15, 29, 51, 0.6), rgba(10, 22, 40, 0.8));
    border: 1px solid rgba(78, 205, 196, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.component-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.component-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--teal-300);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.12);
    flex-shrink: 0;
}

.component-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.component-sub {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.component-hint {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 16px;
    line-height: 1.6;
}

.component-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(6, 12, 24, 0.5);
    border: 1px solid rgba(78, 205, 196, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.option-btn:hover {
    background: rgba(78, 205, 196, 0.06);
    border-color: rgba(78, 205, 196, 0.15);
}

.option-btn.selected {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--teal-300);
    box-shadow: 0 0 20px var(--glow-teal), inset 0 0 20px rgba(78, 205, 196, 0.05);
}

.option-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal-300);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.12);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-btn.selected .option-score {
    background: var(--teal-300);
    color: var(--navy-950);
    border-color: var(--teal-300);
}

.option-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.option-btn.selected .option-label {
    color: var(--white);
}

.option-nt {
    border-style: dashed;
}

.option-nt.selected {
    border-style: solid;
    background: rgba(136, 153, 170, 0.1);
    border-color: var(--gray-400);
    box-shadow: none;
}

.option-nt .option-score {
    background: rgba(136, 153, 170, 0.1);
    border-color: rgba(136, 153, 170, 0.2);
    color: var(--gray-400);
}

.option-nt.selected .option-score {
    background: var(--gray-400);
    color: var(--navy-950);
    border-color: var(--gray-400);
}

/* Factor */
.factor-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.factor-btn {
    padding: 10px 18px;
    background: rgba(6, 12, 24, 0.5);
    border: 1px solid rgba(136, 153, 170, 0.15);
    border-radius: 100px;
    color: var(--gray-400);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.factor-btn:hover {
    background: rgba(136, 153, 170, 0.1);
    border-color: rgba(136, 153, 170, 0.25);
}

.factor-btn.selected {
    background: rgba(136, 153, 170, 0.15);
    border-color: var(--gray-400);
    color: var(--white);
}

/* ========== RESULT ========== */
.glasgow-result-area {
    margin: 40px 0;
}

.result-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.result-placeholder svg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.result-card {
    background: linear-gradient(145deg, rgba(15, 29, 51, 0.9), rgba(10, 22, 40, 0.95));
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--glow-teal);
    animation: resultAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes resultAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.result-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--teal-300);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 40px var(--glow-teal-strong);
}

.result-composition {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    color: var(--gray-400);
    letter-spacing: 0.05em;
}

.result-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.2), transparent);
    margin: 28px auto;
}

.result-prs {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.result-gcsp {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.result-classification {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.result-classification.leve {
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid rgba(78, 205, 196, 0.25);
    color: var(--teal-300);
}

.result-classification.moderado {
    background: rgba(255, 183, 77, 0.12);
    border: 1px solid rgba(255, 183, 77, 0.25);
    color: #ffb74d;
}

.result-classification.grave {
    background: rgba(239, 83, 80, 0.12);
    border: 1px solid rgba(239, 83, 80, 0.25);
    color: #ef5350;
}

.result-classification.nao-calculavel {
    background: rgba(136, 153, 170, 0.12);
    border: 1px solid rgba(136, 153, 170, 0.25);
    color: var(--gray-400);
}

/* ========== INTERPRETATION ========== */
.glasgow-interpretation {
    background: linear-gradient(145deg, rgba(15, 29, 51, 0.5), rgba(10, 22, 40, 0.7));
    border: 1px solid rgba(78, 205, 196, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    animation: resultAppear 0.5s ease forwards;
}

.interpretation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.interpretation-header svg {
    width: 20px;
    height: 20px;
    color: var(--teal-300);
}

.interpretation-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.interpretation-text {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.8;
}

/* ========== EXPLANATION ========== */
.glasgow-explanation {
    background: rgba(78, 205, 196, 0.04);
    border: 1px solid rgba(78, 205, 196, 0.08);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.glasgow-explanation p {
    font-size: 0.82rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.glasgow-explanation strong {
    color: var(--teal-300);
}

/* ========== ACTIONS ========== */
.glasgow-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: #ef5350;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-clear svg {
    width: 18px;
    height: 18px;
}

.btn-clear:hover {
    background: rgba(239, 83, 80, 0.1);
    border-color: #ef5350;
    box-shadow: 0 4px 20px rgba(239, 83, 80, 0.15);
}

/* ========== DISCLAIMER ========== */
.glasgow-disclaimer {
    text-align: center;
    margin-top: 48px;
    padding: 20px;
    border-top: 1px solid rgba(78, 205, 196, 0.06);
}

.glasgow-disclaimer p {
    font-size: 0.72rem;
    color: var(--gray-400);
    opacity: 0.6;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 0;
        transform: translateY(-100%);
        padding: 16px 20px;
    }

    .nav-dropdown.open .dropdown-menu {
        transform: translateY(0);
    }

    .tools-section {
        padding: 60px 16px 60px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .glasgow-section {
        padding: 60px 16px 60px;
    }

    .glasgow-component {
        padding: 20px;
    }

    .option-btn {
        padding: 14px 16px;
    }

    .result-card {
        padding: 28px 20px;
    }

    .btn-secondary {
        padding: 14px 24px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .option-btn {
        padding: 12px 14px;
        gap: 10px;
    }

    .option-score {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .option-label {
        font-size: 0.82rem;
    }

    .component-letter {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .result-score {
        font-size: 3rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== SPA VIEWS ========== */
.view {
    display: none;
    min-height: 100vh;
    opacity: 0;
    animation: none;
}

.view.active {
    display: block;
    animation: viewFadeIn 0.4s ease forwards;
}

.view.leaving {
    display: block;
    animation: viewFadeOut 0.25s ease forwards;
}

@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.page-section {
    padding: 140px 32px 80px;
    min-height: 100vh;
}

.page-section-tall {
    padding: 140px 32px 100px;
}

@media (max-width: 768px) {
    .page-section {
        padding: 100px 16px 60px;
    }
    .page-section-tall {
        padding: 100px 16px 80px;
    }
}
