/*
Theme Name: Lunik Theme
Theme URI: https://lunik.tech
Author: Lunik
Description: Lunik.tech — Cosmic Precision dark HUD theme. Orange/Cyan on deep midnight blue.
Version: 3.0.0
License: Private
Text Domain: lunik-theme
*/

/* ── Material Symbols ─────────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* ── Star field (full-screen fixed background) ────────────────── */
.star-field {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255,153,0,0.05) 0%, transparent 50%),
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 90px, rgba(255,255,255,0.4), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 170px 20px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 220px 140px, rgba(255,255,255,0.3), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px, 400px 400px, 300px 300px, 500px 500px, 250px 250px, 350px 350px, 280px 280px, 450px 450px;
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
}

/* ── Nebula glow blobs ─────────────────────────────────────────── */
.nebula-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,153,0,0.08) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* ── Glass panel cards ─────────────────────────────────────────── */
.glass-panel {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(126,244,255,0.1);
    border-top: 1px solid rgba(126,244,255,0.12);
    border-right: 1px solid rgba(126,244,255,0.04);
    border-bottom: 1px solid rgba(126,244,255,0.04);
}
.glass-panel-strong {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(126,244,255,0.2);
}
.card-glow { transition: box-shadow 0.3s, border-color 0.3s; }
.card-glow:hover {
    box-shadow: 0 0 24px rgba(255,153,0,0.15);
    border-color: rgba(255,153,0,0.3) !important;
}

/* ── Solution module descriptions ─────────────────────────────── */
.module-spec-description {
    display: grid;
    gap: 0.35rem;
}
.module-spec-description > span {
    display: block;
}

/* ── Legal pages ───────────────────────────────────────────────── */
.legal-content {
    color: #8ca8c4;
    line-height: 1.75;
}
.legal-content h2 {
    margin: 2.5rem 0 1rem;
    color: #d4e4fa;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.35;
}
.legal-content h2:first-of-type {
    margin-top: 2rem;
}
.legal-content p {
    margin-bottom: 1rem;
}
.legal-content ul {
    margin: 0 0 1.25rem 1.25rem;
    list-style: none;
}
.legal-content li {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 1.25rem;
}
.legal-content li::before {
    content: '';
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 5px;
    height: 5px;
    background: #7ef4ff;
}
.legal-content ul ul {
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.legal-content strong {
    color: #d4e4fa;
    font-weight: 600;
}
.legal-content a {
    color: #7ef4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content a:hover {
    color: #ffc082;
}

/* ── HUD decorative line ───────────────────────────────────────── */
.hud-line {
    height: 0.5px;
    background: linear-gradient(90deg, transparent, rgba(126,244,255,0.4), transparent);
}
.hud-line-v {
    width: 0.5px;
    background: linear-gradient(180deg, transparent, rgba(126,244,255,0.4), transparent);
}

/* ── Corner bracket decoration ─────────────────────────────────── */
.hud-bracket::before,
.hud-bracket::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #ff9900;
    border-style: solid;
}
.hud-bracket::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-bracket::after  { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-bracket-bottom::before { bottom: 0; left: 0; border-width: 0 0 2px 2px; top: auto; }
.hud-bracket-bottom::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; top: auto; }

/* ── Scanline animation ─────────────────────────────────────────── */
@keyframes scanline {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.scanline {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.scanline::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(126,244,255,0.25), transparent);
    animation: scanline 8s linear infinite;
}

/* ── Homepage Lunik hero visual ─────────────────────────────────── */
.hero-lunik-visual {
    position: relative;
    width: min(110%, 520px);
    aspect-ratio: 1.12;
    filter: drop-shadow(0 0 38px rgba(0,132,205,0.18));
    animation: hero-float 7s ease-in-out infinite;
    z-index: 1;
}
.hero-lunik-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 0%, #000 48%, rgba(0,0,0,0.82) 62%, rgba(0,0,0,0.3) 82%, transparent 100%);
    mask-image: radial-gradient(ellipse closest-side at center, #000 0%, #000 48%, rgba(0,0,0,0.82) 62%, rgba(0,0,0,0.3) 82%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.hero-lunik-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.88;
    filter: saturate(0.9) contrast(1.08);
    transform: scale(1.08);
    animation: hero-image-breathe 10s ease-in-out infinite;
}
.hero-lunik-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 52% 50%, transparent 28%, rgba(1,15,31,0.06) 55%, rgba(1,15,31,0.5) 100%),
        linear-gradient(180deg, rgba(126,244,255,0.06), transparent 38%, rgba(1,15,31,0.18));
    pointer-events: none;
}
.hero-lunik-image::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 5;
    background:
        linear-gradient(90deg, #001a33 0%, rgba(0,26,51,0.92) 5%, rgba(0,26,51,0.42) 15%, transparent 30%),
        linear-gradient(270deg, #001a33 0%, rgba(0,26,51,0.92) 5%, rgba(0,26,51,0.42) 15%, transparent 30%),
        linear-gradient(180deg, #001a33 0%, rgba(0,26,51,0.88) 6%, rgba(0,26,51,0.35) 18%, transparent 32%),
        linear-gradient(0deg, #001a33 0%, rgba(0,26,51,0.88) 6%, rgba(0,26,51,0.35) 18%, transparent 32%);
    pointer-events: none;
}
.hero-lunik-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(126,244,255,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126,244,255,0.35) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle, transparent 25%, #000 100%);
    pointer-events: none;
}
.hero-lunik-sweep {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -45%;
    width: 28%;
    z-index: 4;
    background: linear-gradient(90deg, transparent, rgba(126,244,255,0.18), transparent);
    filter: blur(4px);
    transform: skewX(-14deg);
    animation: hero-sweep 6s ease-in-out infinite;
    pointer-events: none;
}
.hero-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-orbit::before,
.hero-orbit::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ef4ff;
    box-shadow: 0 0 14px rgba(126,244,255,0.9);
}
.hero-orbit-outer {
    width: 520px;
    height: 520px;
    border: 1px solid rgba(126,244,255,0.12);
    animation: hero-orbit-spin 30s linear infinite;
}
.hero-orbit-outer::before { top: 40px; right: 82px; }
.hero-orbit-outer::after { bottom: 70px; left: 52px; background: #de8304; }
.hero-orbit-inner {
    width: 455px;
    height: 455px;
    border: 1px dashed rgba(222,131,4,0.2);
    animation: hero-orbit-spin 24s linear infinite reverse;
}
.hero-orbit-inner::before { top: 50%; left: -4px; background: #de8304; }
.hero-orbit-inner::after { top: -4px; left: 55%; }
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes hero-image-breathe {
    0%, 100% { transform: scale(1.08); }
    50% { transform: scale(1.13); }
}
@keyframes hero-sweep {
    0%, 18% { left: -45%; opacity: 0; }
    28% { opacity: 1; }
    58%, 100% { left: 120%; opacity: 0; }
}
@keyframes hero-orbit-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-lunik-visual,
    .hero-lunik-image img,
    .hero-lunik-sweep,
    .hero-orbit {
        animation: none;
    }
}

/* ── Pulse dot ──────────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.pulse-dot { animation: pulse 2s infinite; }

/* ── Nav dropdown ───────────────────────────────────────────────── */
.nav-solutions-dropdown {
    position: relative;
}
.nav-solutions-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 280px;
    height: 14px;
    transform: translateX(-50%);
}
.nav-solutions-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: rgba(5,20,36,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(126,244,255,0.2);
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 20px rgba(255,153,0,0.05);
    z-index: 200;
}
.nav-solutions-dropdown:hover .nav-solutions-menu,
.nav-solutions-dropdown:focus-within .nav-solutions-menu {
    display: block;
}
.nav-solutions-menu a {
    display: block;
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #a0b4c8;
    border-radius: 2px;
    transition: all 0.15s;
    text-decoration: none;
}
.nav-solutions-menu a:hover { color: #7ef4ff; background: rgba(126,244,255,0.06); }

/* ── Active nav ─────────────────────────────────────────────────── */
.nav-link-active { color: #ffc082 !important; border-bottom: 1px solid #ffc082; padding-bottom: 2px; }

/* ── Fade-up ────────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Admin bar offset ───────────────────────────────────────────── */
.admin-bar #site-header { top: 32px !important; }
@media (max-width:782px) { .admin-bar #site-header { top: 46px !important; } }

body { overflow-x: hidden; }
