/* ============================================================
   Aeronation — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700&family=Unbounded:wght@700;800;900&display=swap');
@import url('themes.css?v=19');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: var(--theme-transition);
}

body.wow-ready { cursor: none; }
body.wow-ready a, body.wow-ready button { cursor: none; }

/* Atmospheric layers */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, var(--atmo-1) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 25%, var(--atmo-2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 10% 70%, var(--atmo-3) 0%, transparent 50%);
    transition: opacity 0.35s;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--scanline-opacity);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--noise-opacity);
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--cursor-glow-color) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s;
    opacity: 0;
}

body.cursor-active .cursor-glow { opacity: 1; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.page-wrapper,
.navbar,
.footer { position: relative; z-index: 2; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding-inline: 40px;
    transition: background 0.5s var(--ease-out), backdrop-filter 0.5s, box-shadow 0.5s, border-color 0.5s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
    display: grid;
    place-items: center;
}

.logo-mark__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: none;
}

.logo-mark__img--light { display: block; }
[data-theme="dark"] .logo-mark__img--light { display: none; }
[data-theme="dark"] .logo-mark__img--dark { display: block; }

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--grad-accent-btn);
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--text-on-accent);
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 1px solid var(--accent-border);
    opacity: 0;
    transition: opacity 0.35s;
}

.navbar-logo:hover .logo-icon,
.navbar-logo:hover .logo-mark {
    transform: scale(1.06) rotate(-2deg);
}

.navbar-logo:hover .logo-icon {
    box-shadow: 0 8px 32px var(--accent-glow);
}

.navbar-logo:hover .logo-icon::after { opacity: 1; }

.logo-mark {
    transition: transform 0.35s var(--ease-out);
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.logo-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s, background 0.25s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--bg-inset);
}

.nav-link.active {
    color: var(--accent-bright);
}

.nav-cta {
    margin-left: 14px;
    padding: 10px 24px;
    background: var(--grad-accent-btn);
    color: var(--text-on-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
    box-shadow: var(--shadow-btn);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px var(--accent-glow);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-menu.open { display: flex; opacity: 1; }

.mobile-menu .nav-link { font-size: 20px; padding: 14px 28px; }
.mobile-menu .nav-cta { margin-left: 0; margin-top: 16px; font-size: 16px; padding: 14px 36px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrapper { padding-top: var(--nav-height); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: 40px;
}

.section { padding: 80px 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 72px 0 96px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--grad-horizon);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 79px,
            var(--secondary-soft) 79px,
            var(--secondary-soft) 80px
        );
    mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.hero-radar {
    position: absolute;
    top: 12%;
    right: 8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid var(--radar-border);
    z-index: 0;
    opacity: 0.6;
}

.hero-radar::before {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 1px solid var(--radar-border);
    opacity: 0.5;
}

.hero-radar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--radar-sweep) 40deg, transparent 80deg);
    animation: radar-sweep 6s linear infinite;
}

@keyframes radar-sweep {
    to { transform: rotate(360deg); }
}

.hero-path {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(48vw, 520px);
    height: auto;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
    color: var(--secondary);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb--gold {
    width: 560px;
    height: 560px;
    background: var(--hero-orb-1);
    top: -8%;
    right: -6%;
    animation: float 9s ease-in-out infinite;
}

.hero-orb--blue {
    width: 440px;
    height: 440px;
    background: var(--hero-orb-2);
    bottom: -12%;
    left: -6%;
    animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -28px) scale(1.04); }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    gap: clamp(24px, 4vw, 48px);
    align-items: end;
}

.hero-content {
    max-width: 100%;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-bright);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 62px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero h1 .hero-line { display: block; }
.hero h1 .hero-line--indent { padding-left: clamp(16px, 3vw, 56px); }
.hero h1 .gradient-text,
.hero h1 .glitch-text { display: inline; }

.hero h1 .gradient-text {
    background: var(--grad-accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: grad-shift 6s ease infinite;
}

@keyframes grad-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-desc {
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 8px;
    flex-shrink: 0;
    width: 100%;
    max-width: 240px;
}

.hero-stat {
    padding: 20px 24px;
    min-width: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--grad-accent-btn);
    opacity: 0.7;
}

.hero-stat:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: var(--grad-accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    background: var(--grad-accent-btn);
    color: var(--text-on-accent);
    font-weight: 700;
    font-size: 15px;
    border-radius: 999px;
    box-shadow: var(--shadow-btn);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 48px var(--accent-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-radius: 999px;
    transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--bg-inset-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 90px 0 70px; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary-bright);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--secondary-soft) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-card:hover::before,
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-bright);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   UPDATES / CHANGELOG
   ============================================================ */
.updates { padding: 70px 0 90px; }

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 16px;
}

.updates-header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.btn-link:hover {
    color: var(--accent-bright);
    background: var(--accent-soft);
    border-color: var(--accent-border);
}

.cl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cl-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    backdrop-filter: blur(8px);
}

.cl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--accent-soft) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
}

.cl-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.cl-card:hover::before { opacity: 1; }

.cl-link { position: absolute; inset: 0; z-index: 2; }

.cl-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.cl-version {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
    color: var(--accent-bright);
    letter-spacing: 0.03em;
}

.cl-date { font-size: 12px; color: var(--text-muted); }

.cl-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cl-bullets {
    position: relative;
    z-index: 1;
    padding-left: 18px;
    margin-bottom: 16px;
    flex-grow: 1;
    list-style: disc;
}

.cl-bullets li {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 7px;
    line-height: 1.5;
}

.cl-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-secondary);
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.cl-tag {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid var(--border);
    background: var(--bg-inset);
}

.cl-tag.new { border-color: var(--tag-new-border); background: var(--tag-new-bg); color: var(--tag-new); }
.cl-tag.improved { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.cl-tag.tech { border-color: var(--tag-tech-border); background: var(--tag-tech-bg); color: var(--tag-tech); }

.cl-read { font-weight: 600; transition: color 0.2s; }
.cl-card:hover .cl-read { color: var(--accent-bright); }

/* ============================================================
   ARTICLE PAGES
   ============================================================ */
.article-page { padding: 48px 0 90px; }

.article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.article h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.article .meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.article .meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.hr-soft {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 16px 0 24px;
}

.article .sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.article .sec {
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
}

.article .sec h2 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article .sec ul { padding-left: 20px; list-style: disc; }

.article .sec li {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.article .backline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-muted);
}

.article .back {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.2s;
}

.article .back:hover { color: var(--accent-bright); }

.badges { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-small {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    background: var(--bg-inset);
    border: 1px solid var(--border);
}

.badge-small.green { background: var(--tag-new-bg); border-color: var(--tag-new-border); color: var(--tag-new); }
.badge-small.yellow { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.badge-small.blue { background: var(--tag-tech-bg); border-color: var(--tag-tech-border); color: var(--tag-tech); }
.badge-small.orange { background: var(--secondary-soft); border-color: var(--secondary-border); color: var(--secondary-bright); }
.badge-small.purple { background: var(--cat-services-bg); border-color: var(--cat-services-border); color: var(--cat-services); }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.publication-content { max-width: 800px; line-height: 1.75; }

.publication-content .lead-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.pub-section { margin-bottom: 36px; }

.pub-section h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.pub-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.pub-section p:last-child { margin-bottom: 0; }

.pub-img {
    display: block;
    max-width: 90%;
    margin: 16px auto 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.pub-img:hover {
    border-color: var(--accent-border);
    transform: scale(1.01);
    box-shadow: var(--shadow-card);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-img {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-out);
}

.lightbox.active .lightbox-img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 72px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--grad-footer-line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 52px;
    padding-bottom: 52px;
}

.footer-brand .logo-name {
    font-family: var(--font-display);
    font-size: 17px;
    margin-bottom: 4px;
}

.footer-brand .logo-sub { display: block; margin-bottom: 18px; }

.footer-brand p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover { color: var(--accent-bright); transform: translateX(3px); }

.footer-requisites {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
}

.footer-requisites strong { color: var(--text-secondary); font-weight: 600; }

.footer-email {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-email:hover { color: var(--accent-bright); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.hero-content { animation: heroIn 1s var(--ease-out) both; }
.hero-stats { animation: heroIn 1s var(--ease-out) 0.2s both; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HYPERSONIC — MAX WOW LAYER
   ============================================================ */

/* Intro boot sequence */
.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--intro-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.intro-loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--intro-scan);
    box-shadow: 0 0 40px var(--secondary-soft), 0 0 80px var(--accent-glow);
    animation: intro-scan 1.8s var(--ease-out) forwards;
}

@keyframes intro-scan {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--secondary-bright);
    margin-bottom: 20px;
    animation: intro-flicker 0.15s steps(2) 8;
}

.intro-logo {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: var(--grad-accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: intro-glitch 2s ease forwards;
}

.intro-progress {
    width: min(320px, 70vw);
    height: 2px;
    background: var(--border);
    margin: 28px auto 16px;
    border-radius: 2px;
    overflow: hidden;
}

.intro-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    animation: intro-bar 1.6s var(--ease-out) forwards;
    box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes intro-bar { to { width: 100%; } }

.intro-coords {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

@keyframes intro-flicker {
    50% { opacity: 0.4; }
}

@keyframes intro-glitch {
    0%, 100% { transform: none; filter: none; }
    10% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
    20% { transform: translate(3px, -1px); }
    30% { transform: translate(-2px, -2px); filter: hue-rotate(-40deg); }
    40% { transform: none; filter: none; }
}

/* Custom cursor */
.cursor-ring {
    position: fixed;
    width: 48px;
    height: 48px;
    border: 1px solid var(--secondary-border);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, border-color 0.25s;
    mix-blend-mode: difference;
}

.cursor-ring.hover {
    width: 64px;
    height: 64px;
    border-color: var(--accent);
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* HUD telemetry */
.hud-frame {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    padding: calc(var(--nav-height) + 12px) 20px 20px;
}

.hud-corner {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--hud-color);
    line-height: 1.8;
    text-transform: uppercase;
}

.hud-corner--tl { top: calc(var(--nav-height) + 16px); left: 20px; }
.hud-corner--tr { top: calc(var(--nav-height) + 16px); right: 20px; text-align: right; }
.hud-corner--bl { bottom: 20px; left: 20px; }
.hud-corner--br { bottom: 20px; right: 20px; text-align: right; }

.hud-corner strong { color: var(--accent); font-weight: 600; }

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    opacity: var(--scanline-opacity);
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--vignette);
}

/* Hero mega ghost */
.hero-mega {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-family: var(--font-display);
    font-size: clamp(80px, 18vw, 280px);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px var(--hero-mega-stroke);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    animation: mega-drift 20s ease-in-out infinite;
}

@keyframes mega-drift {
    0%, 100% { transform: translate(-50%, -52%) scale(1); }
    50% { transform: translate(-48%, -54%) scale(1.02); }
}

.hero-fl370 {
    position: absolute;
    right: 2%;
    top: 20%;
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 900;
    color: var(--hero-fl370);
    letter-spacing: -0.05em;
    writing-mode: vertical-rl;
    z-index: 0;
    pointer-events: none;
}

.marquee-band {
    position: relative;
    z-index: 3;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--marquee-bg);
    overflow: hidden;
    transform: skewY(-1.5deg);
    margin: -20px 0 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee 28s linear infinite;
}

.marquee-track--reverse { animation-direction: reverse; }

.marquee-set {
    display: flex;
    flex-shrink: 0;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--marquee-text);
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-item em {
    font-style: normal;
    color: var(--accent);
    opacity: 0.7;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(var(--marquee-distance, -50%)); }
}

/* Diagonal slash between sections */
.slash-divider {
    height: 80px;
    position: relative;
    z-index: 2;
    margin: -40px 0;
    background: linear-gradient(135deg, transparent 49.5%, var(--accent) 49.5%, var(--accent) 50.5%, transparent 50.5%);
    opacity: 0.15;
    pointer-events: none;
}

/* 3D tilt cards */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}

.tilt-card .tilt-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.tilt-card:hover .tilt-shine { opacity: 1; }

.feature-card .feature-num {
    position: absolute;
    top: 12px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    color: var(--card-num);
    line-height: 1;
    pointer-events: none;
}

.features { position: relative; }

.features::before {
    content: 'CAPABILITIES';
    position: absolute;
    top: 40px;
    right: 5%;
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 900;
    color: var(--feature-watermark);
    letter-spacing: -0.04em;
    pointer-events: none;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s;
}

.btn-primary:hover::after { transform: translateX(120%); }

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--grad-accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero:hover .glitch-text::before {
    opacity: 0.6;
    animation: glitch-1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.hero:hover .glitch-text::after {
    opacity: 0.6;
    animation: glitch-2 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: none; }
    92% { transform: translate(-4px, 2px); }
    94% { transform: translate(4px, -2px); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: none; }
    91% { transform: translate(4px, -1px); }
    93% { transform: translate(-3px, 1px); }
}

.cl-card .cl-num {
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--card-num);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* Magnetic hover lift on nav cta */
.nav-cta, .btn-primary { transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }

/* Legal page wow */
.legal-stamp {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 88px;
    height: 88px;
    border: 2px solid var(--stamp-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--stamp-color);
    text-align: center;
    transform: rotate(-12deg);
    animation: stamp-pulse 4s ease-in-out infinite;
}

@keyframes stamp-pulse {
    0%, 100% { opacity: 0.6; transform: rotate(-12deg) scale(1); }
    50% { opacity: 1; transform: rotate(-12deg) scale(1.05); }
}

.legal-hero h1 {
    font-size: clamp(32px, 4.5vw, 52px) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.05em !important;
}

.doc-card {
    position: relative;
}

.doc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--secondary-soft) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.doc-card:hover::after { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .hero .container {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: none;
    }

    .hero-stat {
        flex: 1 1 160px;
        max-width: none;
    }

    .hero-mega,
    .hero-fl370 {
        display: none;
    }
}

@media (max-width: 1024px) {
    .container { padding-inline: 28px; }
    .navbar { padding-inline: 28px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-grid { grid-template-columns: repeat(2, 1fr); }
    .hero .container { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; max-width: none; }
    .hero-stat { flex: 1 1 160px; max-width: none; }
    .hero-radar { width: 200px; height: 200px; right: 4%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --nav-height: 66px; --section-gap: 64px; }
    .navbar {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .page-wrapper { overflow-x: clip; max-width: 100vw; }
    .navbar-links { display: none; }
    .nav-cta.desktop-only { display: none; }
    .burger { display: flex; }
    body.wow-ready { cursor: auto; }
    body.wow-ready a, body.wow-ready button { cursor: pointer; }
    .cursor-ring, .cursor-dot { display: none; }
    .hud-frame, .hero-mega, .hero-fl370, .marquee-band, .slash-divider { display: none; }
    .hero {
        min-height: auto;
        padding: 48px 0 64px;
        overflow: hidden;
    }
    .hero .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero h1 {
        font-size: clamp(26px, 7vw, 36px);
        letter-spacing: -0.03em;
    }
    .hero h1 .hero-line--indent { padding-left: 12px; }
    .hero-desc {
        font-size: 16px;
        max-width: 100%;
    }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-stats { flex-direction: column; max-width: 100%; }
    .hero-stat { min-width: 0; width: 100%; flex: none; }
    .hero-radar, .hero-path, .hero-orb { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .cl-grid { grid-template-columns: 1fr; }
    .article { padding: 26px 22px; }
    .article .sections { grid-template-columns: 1fr; }
    .article .backline { flex-direction: column; align-items: flex-start; gap: 8px; }
    .topbar { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .updates-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .cursor-glow, .cursor-ring, .cursor-dot, .intro-loader, .scanlines { display: none; }
    body.wow-ready { cursor: auto; }
}
