/* ===== CUSTOM FONTS ===== */
@font-face {
    font-family: 'BebasNeue';
    src: url('../../fonts/bebasneue-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

/* ===== TYPOGRAPHY ===== */
h1 {
    font-family: 'BebasNeue', sans-serif;
    font-weight: 800;
    color: #8dfc7f;
}

:root {
    /* Colors - Designer Palette */
    --primary-color: #4b08bd;
    --primary-dark: #4b08bd;
    --secondary-color: #8dfc7f;
    --secondary-light: #9aff8a;
    --accent-color: #0a0f1a;
    --dark-bg: #323030;
    --darker-bg: #242424;
    --light-bg: #cdbea7;
    --lighter-bg: #e8e0d4;
    --text-dark: #323030;
    --text-light: #6b6b6b;
    --gray-medium: #4a4a4a;
    --gray-dark: #323030;
    --white: #ffffff;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4b08bd 0%, #4b08bd 100%);
    --gradient-secondary: linear-gradient(135deg, #4b08bd 0%, #8dfc7f 100%);
    --gradient-accent: linear-gradient(135deg, #0a0f1a 0%, #1a2332 100%);
    --gradient-dark: linear-gradient(135deg, #323030 0%, #242424 100%);
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4rem;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip; /* stops iOS Safari from panning the page sideways */
    -webkit-text-size-adjust: 100%; /* iOS must not inflate text on its own */
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #000000;
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* Tighter horizontal gutter (does not change vertical --spacing-* elsewhere) */
    padding: 0 clamp(10px, 2.5vw, 1.25rem);
}

/* ===== NAVIGATION ===== */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a2332 50%, #0a0f1a 100%);
}

.hero .container {
    max-width: none;
    margin: 0 auto;
    width: 100%;
}

/* Matrix background removed - using JavaScript instead */

/* ===== MATRIX BACKGROUND EFFECT (Terminal Style) ===== */
.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

.hero .matrix-background {
    top: 80px;
    height: calc(100% - 80px);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    background: #050811;
}

.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1200px;
    filter: blur(120px);
    opacity: 0.7;
    animation: supernovaPulse 5s ease-in-out infinite;
}

.hero-background::before {
    top: 50%;
    left: 20%;
    background: radial-gradient(ellipse 60% 80% at 30% 50%, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 220, 120, 0.9) 8%,
        rgba(255, 150, 100, 0.8) 15%,
        rgba(255, 100, 180, 0.7) 25%,
        rgba(180, 100, 255, 0.6) 35%,
        rgba(100, 150, 255, 0.5) 45%,
        rgba(50, 100, 200, 0.3) 60%,
        transparent 80%);
    transform: translate(-50%, -50%) rotate(-25deg) scale(1);
    animation-delay: 0s;
}

.hero-background::after {
    top: 50%;
    right: 20%;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 220, 120, 0.9) 8%,
        rgba(255, 150, 100, 0.8) 15%,
        rgba(255, 100, 180, 0.7) 25%,
        rgba(180, 100, 255, 0.6) 35%,
        rgba(100, 150, 255, 0.5) 45%,
        rgba(50, 100, 200, 0.3) 60%,
        transparent 80%);
    transform: translate(50%, -50%) rotate(25deg) scale(1);
    animation-delay: 0.5s;
}

@keyframes supernovaPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) rotate(-25deg) scale(0.9);
    }
    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) rotate(-25deg) scale(1.15);
    }
}

.hero-background::after {
    animation-name: supernovaPulseRight;
}

@keyframes supernovaPulseRight {
    0%, 100% {
        opacity: 0.5;
        transform: translate(50%, -50%) rotate(25deg) scale(0.9);
    }
    50% {
        opacity: 0.85;
        transform: translate(50%, -50%) rotate(25deg) scale(1.15);
    }
}

.gradient-orb {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
    padding: var(--spacing-md);
    margin: 0 auto 0 0;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.hero-logo {
    display: block;
    margin: var(--spacing-md) auto var(--spacing-md) 0;
    max-width: 480px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ffffff;
    margin-top: var(--spacing-md);
    text-align: left;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-primary {
    background: #ffffff;
    color: #0a0f1a;
}

.btn-primary:hover {
    background: #b0b0b0;
}

.btn-secondary {
    background: #ffffff;
    color: #0a0f1a;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #b0b0b0;
    color: #0a0f1a;
    border-color: #b0b0b0;
}

/* ===== SCROLL INDICATOR ===== */

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--spacing-xl) 0;
}

/* ===== UNIVERSES PREVIEW BLOCK ===== */
.universes-preview {
    background: #3a3a3a;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    overflow: hidden;
}

.universes-preview .container {
    max-width: 1600px;
    padding: 0 clamp(16px, 3.5vw, 48px);
    text-align: center;
}

.faq-universes-title {
    color: #d4d4d4;
    font-family: 'BebasNeue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.faq-universes-description {
    color: #c8c8c8;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* ===== FAQ SECTION ===== */
.faq {
    background: #000000;
    padding: var(--spacing-xl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 6rem auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-question:hover {
    color: #ffffff;
}

.faq-question h3 {
    font-family: 'BebasNeue', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    transition: color var(--transition-base);
}

.faq-item.active .faq-question h3 {
    color: #b0b0b0;
}

.faq-icon {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 300;
    transition: all var(--transition-base);
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #b0b0b0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 0 var(--spacing-md) 0;
}

.faq-answer p {
    color: #ffffff;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin: 0;
}

/* ===== ABOUT SECTION ===== */

/* ===== SERVICES SECTION ===== */

/* ===== PORTFOLIO SECTION ===== */

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(194, 149, 69, 0.1);
    border: 1px solid rgba(194, 149, 69, 0.3);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== REVIEWS SECTION ===== */

/* Matrix background using JavaScript instead */

/* ===== CONTACT SECTION ===== */

/* ===== FORM STYLES ===== */

/* ===== HEADER LANGUAGE (nav, after Download) ===== */

/* Outer height matches .nav-download-btn (0.35rem vertical padding + 0.75rem text) */

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

/* Same max width as main content; aligned to the left edge of the viewport */
/* Same width, horizontal gutter, and centering as Recommended Universes (1600px + clamp(16px, 3.5vw, 48px)) */
.footer .container {
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3.5vw, 48px);
    padding-right: clamp(16px, 3.5vw, 48px);
    box-sizing: border-box;
}

/* Footer: top band (logo + social + register | language) → link columns → legal */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
}

/* Top band: logo + social + (register | english) */
.footer-top-band {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Row: Register with us + English — grouped together */

/* "Register with us" container under social icons */

/* Logo + social — left aligned */
.footer-brand-social-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}

.footer-brand-social-row .footer-brand-logo {
    align-self: flex-start;
    flex: 0 0 auto;
}

/* example.html text mark */

.footer-brand-logo {
    height: clamp(1.5rem, 4vw, 2rem);
    width: auto;
    object-fit: contain;
    margin: 0;
    display: block;
    flex: 0 0 auto;
    align-self: flex-start;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    min-width: 0;
}

.footer-brand-social-row .footer-social-standalone {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border-top: none;
    justify-content: flex-start;
    align-self: flex-start;
}

.footer-social-standalone {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    border-top: none;
    box-sizing: border-box;
}

.social-link {
    display: inline-block;
    transition: transform var(--transition-base);
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Footer: four link columns (company / support / legal / corporate) */
/* Vertical rhythm: .footer-content gap + padding (no top border — trial) */
.footer-nav-blocks {
    flex-basis: 100%;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: var(--spacing-lg) var(--spacing-md);
    width: 100%;
    max-width: none;
    margin: 0;
    justify-items: start;
    align-items: start;
    padding: var(--spacing-md) 0 var(--spacing-sm) 0;
    border-top: none;
}

.footer-nav-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: left;
    width: 100%;
}

.footer-nav-block a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    line-height: 1.35;
}

.footer-nav-block a:hover {
    color: #b0b0b0;
}

@media (max-width: 900px) {
    .footer-nav-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-nav-blocks {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-nav-block {
        align-items: flex-start;
        text-align: left;
    }
}

/* Footer language row: Choose language + globe + select */

/* Footer language switcher (below link columns) */

/* Same metrics as EN; explicit on <button> (browser defaults differ); caps */

.footer-legal {
    flex-basis: 100%;
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    width: 100%;
    padding-top: var(--spacing-md);
    border-top: none;
}

.footer-copyright-left {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    text-align: left;
}

.footer-copyright-left p {
    color: #ffffff;
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    text-align: left;
}

.footer-copyright-left .all-rights {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .faq-universes-title {
        font-size: clamp(3rem, 7vw, 4.5rem);
    }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn {
        width: auto;
        max-width: 280px;
        padding: 0.75rem 1.2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ===== MODAL WINDOW ===== */

/* Header search (magnifier): only on Universes catalog (universes.html) */

