/* HYPER-AMBER FLUX DESIGN SYSTEM v14.0 
   Strictly following user rules 1-5.
   Concept: RETURN OF THE ORANGE LIGHT. Neon Magma & Deep Void.
*/

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    /* The Requested Orange Light */
    --flux-orange: #ff5e00; /* Vibrant Neon Orange */
    --flux-glow: rgba(255, 94, 0, 0.35);
    --flux-core: #ff2a00; /* Deep Red-Orange */
    
    /* Void Base */
    --void-black: #020202;
    --void-panel: rgba(15, 15, 15, 0.7);
    
    /* UI Elements */
    --text-bright: #ffffff;
    --text-dim: #999999;
    --border-glass: rgba(255, 94, 0, 0.15);
    
    /* Advanced Physics */
    --ease-flux: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
    --motion-speed: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--void-black);
    color: var(--text-bright);
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Ambient Orange Background Glow */
    background-image: radial-gradient(circle at 50% -20%, #331200 0%, #000000 60%);
}

/* NAVIGATION: NEON GLASS PILL */
nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 95%; /* Защита от выхода за края на мобильных */
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 6px;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(255, 94, 0, 0.15);
    animation: dropIn 1.2s var(--ease-snap);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    padding: 4px;
    gap: 2px;
}

nav ul li a {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.6rem, 1.2vw, 0.75rem); /* Адаптивный размер шрифта */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px clamp(12px, 2vw, 24px); /* Адаптивные отступы */
    border-radius: 100px;
    transition: all 0.4s var(--ease-flux);
    white-space: nowrap;
}

nav ul li a:hover, nav ul li a.active {
    background: var(--flux-orange);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 25px var(--flux-glow);
}

/* HEADER: BURNING HORIZON */
header {
    min-height: 100vh; /* Используем min-height для длинного контента */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px; /* Увеличен верхний отступ из-за nav */
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.08) 0%, transparent 60%);
    animation: pulseOrange 6s ease-in-out infinite alternate;
    pointer-events: none;
}

header h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2.5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 20%, var(--flux-orange) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 10;
    animation: riseUp 1.6s var(--ease-flux);
}

header p {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    color: var(--text-dim);
    max-width: 550px;
    margin-top: clamp(20px, 5vh, 40px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 10;
    opacity: 0;
    margin-bottom: 50px;
    animation: fadeIn 1.5s var(--ease-flux) 0.8s forwards;
}

/* MAIN: MAGMA GLASS CARDS */
main {
    max-width: 1400px;
    margin: -80px auto 100px; /* Уменьшен отрицательный маржин для мобильных */
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

#hero {
    background: var(--void-panel);
    border: 1px solid var(--border-glass);
    padding: clamp(40px, 8vw, 100px) clamp(24px, 6vw, 80px); /* Гибкие внутренние отступы */
    border-radius: clamp(24px, 4vw, 40px);
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    transition: var(--motion-speed) var(--ease-flux);
}

#hero:hover {
    transform: translateY(-10px) scale(1.005);
    border-color: var(--flux-orange);
    box-shadow: 0 40px 120px -30px rgba(255, 94, 0, 0.2);
}

#hero h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 3vw, 30px);
    color: var(--text-bright);
    letter-spacing: -1px;
}

#hero p {
    color: var(--text-dim);
    font-size: clamp(0.95rem, 1.2vw, 1.4rem);
    font-weight: 300;
    line-height: 1.6;
}

/* ANIMATION PHYSICS */
@keyframes dropIn {
    0% { transform: translate(-50%, -100px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes riseUp {
    0% { transform: translateY(60px) scale(0.95); opacity: 0; filter: blur(15px); }
    100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes pulseOrange {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

/* --- IDEAL ADAPTIVITY BREAKPOINTS --- */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    main { margin-top: -40px; }
    header h1 { letter-spacing: -0.02em; }
}

/* Mobiles (Portrait) */
@media (max-width: 768px) {
    nav { top: 12px; }
    nav ul { gap: 0; }
    nav ul li a { padding: 8px 12px; }
    
    header { padding-top: 100px; }
    header h1 { line-height: 1.1; }
    
    main { margin-top: 20px; } /* Убираем наложение на мобильных для удобства */
    #hero { text-align: left; }
}

/* Small Mobiles */
@media (max-width: 480px) {
    nav { width: 98%; }
    nav ul li a { letter-spacing: 0; padding: 8px 8px; font-size: 0.6rem; }
    
    header h1 { font-size: 3rem; }
    header p { letter-spacing: 0.1em; }
    
    #hero { padding: 32px 20px; }
}

/* SCROLLBAR: FLUX ORANGE */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void-black); }
::-webkit-scrollbar-thumb {
    background: var(--flux-orange);
    border-radius: 10px;
}

::selection {
    background: var(--flux-orange);
    color: #000;
}