/* =========================================
   FILE: main.css
   DESC: Core design system — variables, reset, typography, layout,
         navbar, hero, footer. Polygon Fox premium agency site.
   Fonts: header.php preload (ne @import — blokkolná a CSS-t)
   ========================================= */

/* -----------------------------------------
   [SECTION] CSS VARIABLES
   ----------------------------------------- */
:root {
    /* Core palette */
    --fox-black:        #050505;
    --fox-dark:         #0a0a0a;
    --fox-gray:         #111111;
    --fox-card:         #0e0e0e;
    --fox-white:        #ffffff;

    /* Single accent */
    --fox-cyan:         #00f2ff;
    --fox-cyan-dim:     rgba(0, 242, 255, 0.15);
    --fox-cyan-glow:    rgba(0, 242, 255, 0.35);
    --fox-cyan-border:  rgba(0, 242, 255, 0.25);

    /* Glass surfaces */
    --glass-bg:         linear-gradient(135deg, rgba(255,255,255,0.030), rgba(255,255,255,0.010));
    --glass-border:     1px solid rgba(255,255,255,0.05);
    --glass-border-top: 1px solid rgba(255,255,255,0.10);
    --glass-shadow:     0 20px 40px rgba(0,0,0,0.60);
    --glass-blur:       blur(20px);

    /* Legacy compat */
    --fox-gold:         #FFD700;
    --fox-terminal:     #0c0c0c;
    --fox-cmd-green:    #00ff00;
    --fox-silver:       #c0c0c0;
    --fox-cyan-primary: #00f2ff;
    --fox-cyan-secondary: #00c2ce;
    --fox-cyan-dark:    #00b8c2;
    --gray-300:         #d1d5db;
    --gray-400:         #9ca3af;
    --gray-500:         #6b7280;
    --gray-600:         #4b5563;
    --gray-700:         #374151;
    --gray-800:         #1f2937;
    --gray-900:         #111827;

    /* Typography */
    --font-tech: 'Poppins',     sans-serif;  /* Headings */
    --font-text: 'Orbitron',    sans-serif;  /* Body text */
    --font-sans: 'Orbitron',    sans-serif;
    --font-mono: 'Fira Code',   monospace;

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 8rem;

    /* Easing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Physics glare — updated per-element by JS (0–100 range) */
    --mouse-x: 50;
    --mouse-y: 50;
    --mouse-gx: 50%;
    --mouse-gy: 50%;
}

/* -----------------------------------------
   [SECTION] RESET & BASE
   ----------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-text);
    background-color: var(--fox-black);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0, 242, 255, 0.018) 80px),
        repeating-linear-gradient(0deg,   transparent, transparent 79px, rgba(0, 242, 255, 0.018) 80px);
    background-size: 80px 80px;
}

::selection { background: var(--fox-cyan); color: #000; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: transparent;
}

button { cursor: pointer; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--fox-black); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fox-cyan); }

/* -----------------------------------------
   [SECTION] TYPOGRAPHY
   ----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tech);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-text);
}

/* -----------------------------------------
   [SECTION] LAYOUT
   ----------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Section base transparency */
#hero, #about, .text-section, .text-section-reverse,
.split-section,
#services, #stats, #projects, #pricing-intro,
.transmissions-section, #pricing-packages,
.stats-section {
    background: transparent;
}

/* -----------------------------------------
   [SECTION] BACKGROUND CANVAS
   ----------------------------------------- */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--fox-black);
}

/* Decorative ambient glow */
.deco-blur-circle {
    position: fixed;
    top: -20vh;
    right: -5vw;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,242,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* -----------------------------------------
   [SECTION] CUSTOM CURSOR
   ----------------------------------------- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    will-change: transform;
    transform: translate(-100px, -100px);
}

.cursor-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    mix-blend-mode: difference;
    /* No box-shadow — blend mode handles the inversion magic */
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 242, 255, 0.4);
    transition: width 0.18s ease, height 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.hovering .cursor-outline {
    width: 56px;
    height: 56px;
    background: rgba(0, 242, 255, 0.06);
    border-color: var(--fox-cyan);
}

body.clicking .cursor-dot { background: #fff; }

@media (max-width: 767px) {
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
}

/* -----------------------------------------
   [SECTION] BLOG — List & Post pages
   ----------------------------------------- */

/* ── Blog list section ── */
.blog-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    min-height: 60vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ── Blog card ── */
.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth),
                border-color 0.3s ease;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at var(--mouse-gx, 50%) var(--mouse-gy, 0%),
                rgba(0,242,255,0.06) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,242,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,242,255,0.1);
}

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

/* Cover image */
.blog-card__cover-link { display: block; overflow: hidden; aspect-ratio: 16/9; }

.blog-card__cover {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
    display: block;
}

.blog-card:hover .blog-card__cover img { transform: scale(1.05); }

.blog-card__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.7) 0%, transparent 60%);
}

/* Body */
.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-card__author,
.blog-card__date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card__author i,
.blog-card__date i { color: var(--fox-cyan); opacity: 0.7; }

.blog-card__title {
    font-family: var(--font-tech);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.blog-card__title a { color: inherit; transition: color 0.2s ease; }
.blog-card__title a:hover { color: var(--fox-cyan); }

.blog-card__excerpt {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    flex: 1;
}

.blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--fox-cyan);
    text-transform: uppercase;
    margin-top: auto;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.blog-card__cta:hover { gap: 0.65rem; opacity: 0.8; }

/* ── Empty state ── */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: rgba(255,255,255,0.25);
}

.blog-empty i {
    font-size: 3rem;
    color: rgba(0,242,255,0.2);
    margin-bottom: 1rem;
    display: block;
}

.blog-empty p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
}

/* ── Pagination ── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem 0 1rem;
}

.blog-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.blog-pag-btn:hover {
    background: rgba(0,242,255,0.08);
    border-color: rgba(0,242,255,0.3);
    color: var(--fox-cyan);
    box-shadow: 0 0 12px rgba(0,242,255,0.15);
}

.blog-pag-btn.active {
    background: var(--fox-cyan);
    border-color: var(--fox-cyan);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(0,242,255,0.35);
    pointer-events: none;
}

/* ── Blog single post ── */
.blog-post-page {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.blog-post-cover {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-post-cover img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.blog-post-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(5,5,5,0.3) 0%,
        rgba(5,5,5,0.6) 70%,
        rgba(5,5,5,0.95) 100%);
}

.blog-post-header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2.5rem;
}

.blog-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--fox-cyan);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transition: gap 0.2s ease, opacity 0.2s;
}

.blog-post-back:hover { gap: 0.75rem; opacity: 0.75; }

.blog-post-title {
    font-family: var(--font-tech);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
}

.blog-post-meta span i { color: var(--fox-cyan); opacity: 0.7; }

/* Post content typography */
.blog-post-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.72);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #fff;
    margin: 2.5rem 0 1rem;
    font-family: var(--font-tech);
    line-height: 1.25;
}

.blog-post-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.blog-post-content h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }

.blog-post-content p { margin-bottom: 1.4rem; }

.blog-post-content a {
    color: var(--fox-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0,242,255,0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.blog-post-content a:hover { text-decoration-color: var(--fox-cyan); }

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.4rem 1.5rem;
    list-style: disc;
}

.blog-post-content ol { list-style: decimal; }

.blog-post-content li { margin-bottom: 0.4rem; }

.blog-post-content blockquote {
    border-left: 3px solid var(--fox-cyan);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: rgba(0,242,255,0.04);
    border-radius: 0 0.5rem 0.5rem 0;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.blog-post-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(0,242,255,0.08);
    color: var(--fox-cyan);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.blog-post-content pre {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255,255,255,0.06);
}

.blog-post-content hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2.5rem 0;
}

.blog-post-footer {
    max-width: 780px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Admin blog current cover thumbnail ── */
.blog-current-cover {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.5rem;
}

.blog-current-cover img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.375rem;
    display: block;
}

.blog-current-cover span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono, monospace);
}

/* ── Responsive blog ── */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-post-meta { gap: 1rem; }

    .blog-post-content { font-size: 0.975rem; }
}

/* -----------------------------------------
   [SECTION] FOOTER — 4-column premium
   ----------------------------------------- */
.site-footer {
    position: relative;
    padding: 5rem 0 2.5rem;
    background: var(--fox-black);
    overflow: hidden;
    z-index: 10;
}

/* Hairline cyan separator at top */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--fox-cyan) 50%, transparent 100%);
    opacity: 0.4;
}

.footer-grid-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg, transparent, transparent 79px, rgba(255,255,255,0.006) 80px
    ),
    repeating-linear-gradient(
        0deg, transparent, transparent 79px, rgba(255,255,255,0.006) 80px
    );
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

@media (min-width: 600px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 2.5rem; }
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img { height: 2.5rem; width: auto; }

.footer-logo__text {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
}

.footer-logo__text span { color: var(--fox-cyan); }

.footer-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    max-width: 22rem;
}

/* Social icons — minimalist, glow-on-hover only */
.footer-social {
    display: flex;
    gap: 0.875rem;
    margin-top: 0.25rem;
}

.footer-social__link {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--glass-border);
    border-radius: 50%;
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    transition: color 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, transform 0.3s var(--ease-spring);
}

.footer-social__link:hover {
    color: var(--fox-cyan);
    border-color: var(--fox-cyan-border);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.25);
    transform: translateY(-3px);
}

/* Footer nav columns */
.footer-column__title {
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.25s ease;
    padding: 0.2rem 0;
}

.footer-link i {
    font-size: 0.65rem;
    color: var(--fox-cyan);
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.footer-link:hover { color: rgba(255,255,255,0.85); }
.footer-link:hover i { opacity: 1; }

/* Contact column */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

.footer-contact__item i {
    color: var(--fox-cyan);
    margin-top: 0.15rem;
    opacity: 0.7;
    font-size: 0.85rem;
}

.footer-contact__item a {
    color: rgba(255,255,255,0.5);
    transition: color 0.25s ease;
}

.footer-contact__item a:hover { color: var(--fox-cyan); }

/* Newsletter column */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-newsletter__desc {
    font-size: 0.8rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.4);
}

.footer-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter__input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.25s;
}

.footer-newsletter__input-row:focus-within {
    border-color: var(--fox-cyan);
    box-shadow: 0 0 0 3px rgba(0,242,255,0.08);
}

.footer-newsletter__input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: none;
    outline: none;
    padding: 0.6rem 0.875rem;
    font-family: var(--font-text);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    min-width: 0;
}

.footer-newsletter__input::placeholder {
    color: rgba(255,255,255,0.25);
}

.footer-newsletter__btn {
    background: var(--fox-cyan);
    border: none;
    padding: 0 1rem;
    color: #000;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-newsletter__btn:hover {
    background: #fff;
    box-shadow: 0 0 16px rgba(0,242,255,0.4);
}

.footer-newsletter__btn:disabled {
    background: rgba(0,242,255,0.3);
    cursor: not-allowed;
}

.footer-newsletter__msg {
    font-size: 0.75rem;
    min-height: 1.1rem;
    transition: color 0.25s;
}

.footer-newsletter__msg--success { color: #4ade80; }
.footer-newsletter__msg--error   { color: #f87171; }

.footer-newsletter__note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-newsletter__note i {
    color: var(--fox-cyan);
    opacity: 0.5;
    font-size: 0.65rem;
}

/* Bottom bar */
.footer-bottom {
    position: relative;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.25);
    transition: color 0.25s ease;
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* -----------------------------------------
   [SECTION] HERO
   Full-screen, razor-sharp typography
   ----------------------------------------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 4.5rem;
    overflow: hidden;
    background: transparent;
}

/* Ambient radial glow behind hero */
#hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(ellipse, rgba(0,242,255,0.055) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 2.5rem);
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-content { text-align: center; }
}

/* Eyebrow label */
.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fox-cyan);
    opacity: 0.8;
}

/* Massive headline */
.hero-title {
    font-family: var(--font-tech);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

/* Cyan gradient words */
.hero-title .gradient,
.hero-title .gradient--cyan {
    background: linear-gradient(135deg, var(--fox-cyan) 0%, #00aacc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accent divider line */
.hero-line {
    width: 3rem;
    height: 2px;
    background: var(--fox-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
    margin-bottom: 1.75rem;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hero-line { margin: 0 auto 1.75rem; }
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.58);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-subdesc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    margin-top: -1.75rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-desc, .hero-subdesc { margin-left: auto; margin-right: auto; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons { justify-content: center; }
}

/* Hero logo / visual */
.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo {
    max-width: min(420px, 100%);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.12));
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    animation: hero-bounce 2.5s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
    50% { transform: translateX(-50%) translateY(7px); opacity: 0.6; }
}

/* -----------------------------------------
   [SECTION] BUTTONS — Global system
   ----------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth),
                background 0.3s ease,
                color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* Primary: solid cyan */
.btn--primary,
.btn--primary-clip,
.btn--cyan {
    background: var(--fox-cyan);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.2);
}

.btn--primary:hover,
.btn--primary-clip:hover,
.btn--cyan:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4);
}

/* Outline ghost */
.btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn--outline:hover {
    color: var(--fox-cyan);
    border-color: var(--fox-cyan-border);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 242, 255, 0.12);
}

/* -----------------------------------------
   [SECTION] REVEAL ANIMATION — Cinematic clip-path
   ----------------------------------------- */

/* Container: preserve-3d so children can lift up */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity  0.35s var(--ease-smooth),
        transform 0.35s var(--ease-smooth);
    will-change: opacity, transform;
}

.reveal.active,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* ── Word-reveal ── JS splits text into .word-wrap > .word-inner */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.15;
}

.word-inner {
    display: inline-block;
    /* starts clipped at bottom — slides into view */
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(40%);
    transition:
        clip-path  0.4s var(--ease-smooth),
        transform  0.4s var(--ease-smooth);
    will-change: clip-path, transform;
}

/* When the parent reveal becomes active, every child word animates */
.reveal.active  .word-inner,
.reveal.visible .word-inner {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transform: translateY(0);
}

/* Stagger: siblings get increasing delay via --i set by JS */
.word-inner { transition-delay: calc(var(--i, 0) * 28ms); }

/* Hero title words get a slightly longer, more dramatic timing */
.hero-title .word-inner {
    transition-duration: 0.85s;
    transition-delay: calc(var(--i, 0) * 80ms);
}

/* Section titles — medium stagger */
.section-title .word-inner,
.bento-card__title .word-inner,
.neural-faq-title .word-inner {
    transition-duration: 0.65s;
    transition-delay: calc(var(--i, 0) * 60ms);
}

/* -----------------------------------------
   [SECTION] PERFORMANCE & GPU HINTS
   ----------------------------------------- */

/* Compositing hints for animated elements */
.cursor-dot,
.cursor-outline,
#particles-canvas,
#bg-canvas,
.vault-card__img,
.card-shine {
    will-change: transform;
}

/* Layout containment — prevent paint bleed */
.vault-card,
.arsenal-card,
.bento-card,
.pricing-tier,
.team-card,
.support-node,
.service-crate {
    contain: layout style;
}

/* Footer + fixed elements — own stacking context */
.site-footer,
.navbar,
#boot-screen {
    isolation: isolate;
}

/* Lazy-loaded image fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Reduced-motion: disable all transitions & animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* -----------------------------------------
   [SECTION] GLASS PANEL UTILITY
   ----------------------------------------- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-top: var(--glass-border-top);
    box-shadow: var(--glass-shadow);
    border-radius: 1rem;
}

/* -----------------------------------------
   [SECTION] SECTION HEADERS
   ----------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: #fff;
    margin-bottom: 1.125rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.section-header__desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.42);
    max-width: 520px;
    margin: 0 auto;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    line-height: 1.9;
}

/* -----------------------------------------
   [SECTION] MISC UTILITIES
   ----------------------------------------- */
.animate-pulse {
    animation: anim-pulse 2s ease-in-out infinite;
}

@keyframes anim-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes neon-stripe-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin-left: 4px;
}

.status-online {
    background: #00c851;
    box-shadow: 0 0 6px rgba(0, 200, 81, 0.7);
    animation: pulse 2s infinite;
}

/* -----------------------------------------
   [SECTION] LEGAL PAGES (privacy, terms, impressum)
   ----------------------------------------- */
.legal-page-section {
    padding: clamp(6rem, 10vw, 9rem) 0 clamp(4rem, 6vw, 6rem);
    min-height: 80vh;
}

.legal-page-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.legal-page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0.75rem 0 0.5rem;
}

.legal-page-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
    margin-top: 0.75rem;
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.legal-content h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--fox-cyan, #00f2ff);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,242,255,0.15);
    letter-spacing: 0.04em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin: 1.25rem 0 0.5rem;
    letter-spacing: 0.03em;
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.58);
    line-height: 1.8;
    margin-bottom: 0.3rem;
}

.legal-content a {
    color: var(--fox-cyan, #00f2ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
}

.legal-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    vertical-align: top;
}

.legal-table td:first-child {
    width: 200px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.legal-page-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .legal-content {
        padding: 1.5rem;
    }
    .legal-table td:first-child {
        width: auto;
        white-space: normal;
    }
}
