/* ============================================================
   FENNECTRA — Crystal Noir Theme
   Dark tunnel aesthetic with cyan crystal accents
   ============================================================ */

/* --- TOKENS --- */
:root {
    /* Dark theme (default) */
    --bg-primary: #080C10;
    --bg-secondary: #0C1117;
    --bg-tertiary: #111920;
    --bg-card: #0E151C;
    --bg-card-hover: #132029;
    --bg-elevated: #152232;

    --text-primary: #E0EEF5;
    --text-secondary: #8AAAB8;
    --text-tertiary: #5A7A8A;
    --text-dim: #3A5563;

    --accent: #3DD8D8;
    --accent-bright: #40E8E0;
    --accent-dim: #2AA8A8;
    --accent-glow: rgba(61, 216, 216, 0.12);

    --sand: #B0E0E6;
    --sand-dim: #7BB8C4;
    --brown: #1A3040;
    --brown-deep: #0F1F2B;

    --border: rgba(61, 216, 216, 0.08);
    --border-hover: rgba(61, 216, 216, 0.18);

    --success: #6BCB77;
    --warning: #FFD93D;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-pad: clamp(80px, 12vw, 140px);
    --container-max: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}


/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* --- SECTION HEADERS --- */
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-top: 16px;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(20px, 4vw, 40px);
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(8, 12, 16, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

.nav__logo-3d {
    width: 40px;
    height: 40px;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(61, 216, 216, 0.7))
            drop-shadow(0 0 14px rgba(61, 216, 216, 0.4));
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav__links a:hover { color: var(--accent); }

.nav__github {
    display: flex !important;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s !important;
}

.nav__github:hover { opacity: 1; }


.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__burger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    z-index: 99;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 60px;
    overflow: hidden;
    background: url('fond.webp') center center / cover no-repeat;
}

.hero__3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(61, 216, 216, 0.06) 0%, transparent 50%),
                linear-gradient(180deg, transparent 0%, rgba(8, 12, 16, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__title-accent {
    color: var(--accent);
    font-style: italic;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-bright);
    color: #0A1015;
    font-weight: 600;
    box-shadow: 0 2px 16px rgba(61, 216, 216, 0.3);
}

.btn--primary:hover {
    background: #5AEEE8;
    box-shadow: 0 4px 24px rgba(61, 216, 216, 0.45);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn--ghost:hover {
    border-color: var(--accent-dim);
    background: var(--accent-glow);
    color: var(--accent);
}

/* Terminal */
.terminal {
    background: #0C0C14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.terminal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__dots { display: flex; gap: 6px; }

.terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal__dot--red { background: #FF5F57; }
.terminal__dot--yellow { background: #FEBC2E; }
.terminal__dot--green { background: #28C840; }

.terminal__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.terminal__body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal__line {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s, transform 0.4s;
}

.terminal__line.typed {
    opacity: 1;
    transform: translateY(0);
}

.terminal__prompt {
    color: var(--accent);
    margin-right: 8px;
    user-select: none;
}

.terminal__cmd {
    color: #F0EAE0;
}

.terminal__cmd::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

.terminal__cmd.done::after { display: none; }

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

.terminal__success { color: var(--success); }
.terminal__dim { color: rgba(240, 234, 224, 0.4); }

.terminal--large {
    max-width: 720px;
    margin: 0 auto;
}

.terminal--large .terminal__body {
    padding: 24px 28px;
    min-height: 360px;
}

.hero__terminal {
    max-width: 560px;
    margin: 0 auto;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
    animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- WHY SECTION --- */
.why {
    padding: var(--section-pad) 0;
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.why__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.why__card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.why__card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.why__card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.why__card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.why__card-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.why__card-metric-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.why__card-metric-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.why__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(61, 216, 216, 0.2);
}

@media (max-width: 768px) {
    .why__grid { grid-template-columns: 1fr; }
}

/* --- FEATURES --- */
.features {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.feature-card__title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card__desc code {
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 4px;
}

@media (max-width: 1024px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features__grid { grid-template-columns: 1fr; } }

/* --- CODE SHOWCASE --- */
.code-showcase {
    padding: var(--section-pad) 0;
}

.code-tabs { margin-top: 48px; }

.code-tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    margin-bottom: 0;
    overflow-x: auto;
}

.code-tab {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 20px;
    color: var(--text-tertiary);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.code-tab:hover { color: var(--text-secondary); }

.code-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.code-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.code-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.code-block {
    background: #0C0C14;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.code-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block__file {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

.code-block__copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.code-block__copy:hover {
    color: var(--accent);
    background: rgba(61, 216, 216, 0.1);
}

.code-block__pre {
    padding: 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.75;
    color: #D4D0C8;
    tab-size: 4;
}

/* Syntax colors */
.c-key { color: #C792EA; }
.c-cls { color: #FFCB6B; }
.c-fn { color: #82AAFF; }
.c-str { color: #C3E88D; }
.c-var { color: #F07178; }
.c-op { color: #89DDFF; }
.c-num { color: #F78C6C; }
.c-cmt { color: #546E7A; font-style: italic; }
.c-attr { color: #FFCB6B; }

/* --- COMPLIANCE --- */
.compliance {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.compliance__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    z-index: 0;
}

.compliance__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('fond.webp') center center / cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.compliance > .container { position: relative; z-index: 1; }

.compliance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.compliance__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.compliance__card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
}

.compliance__card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.compliance__card-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    white-space: nowrap;
}

.compliance__card-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
}

.compliance__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.compliance__list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.compliance__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.compliance__list li code {
    font-size: 0.78rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 3px;
}

.compliance__cmd {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.compliance__cmd code {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: 6px;
    display: block;
}

@media (max-width: 768px) {
    .compliance__grid { grid-template-columns: 1fr; }
}

/* --- PERFORMANCE --- */
.performance {
    padding: var(--section-pad) 0;
}

.perf__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
    align-items: start;
}

.perf__chart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.perf__chart-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.perf__chart-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

.perf__bars { display: flex; flex-direction: column; gap: 20px; }

.perf__bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perf__bar-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.perf__bar-label small {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.perf__bar-track {
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.perf__bar {
    height: 100%;
    width: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    justify-content: flex-end;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.perf__bar.animated { width: var(--bar-width); }

.perf__bar--fennectra {
    background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
}

.perf__bar--laravel {
    background: linear-gradient(90deg, #2A4060, #3A5A80);
}

.perf__bar--symfony {
    background: linear-gradient(90deg, #2A3040, #3A4555);
}

.perf__bar-value {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.perf__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.perf__stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.perf__stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.perf__stat-unit {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.perf__stat-label {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .perf__grid { grid-template-columns: 1fr; }
}

/* --- DX / CLI --- */
.dx {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.dx__content { margin-top: 48px; }

.dx__cmd-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dx__cmd-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dx__cmd-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.dx__cmd {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #F0EAE0;
    margin-bottom: 4px;
    line-height: 1.6;
}

.dx__output {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(240, 234, 224, 0.45);
    line-height: 1.7;
    margin-top: 6px;
    padding-left: 16px;
}

/* --- CTA --- */
.cta {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('banniere.webp') center center / cover no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
    pointer-events: none;
}

.cta > .container {
    position: relative;
    z-index: 1;
}

.cta__inner {
    text-align: center;
    background: rgb(10 16 22 / 41%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(61, 216, 216, 0.12);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}

.cta__pattern {
    display: none;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 12px;
}

.cta__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta__install {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0C0C14;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 20px;
    margin-bottom: 32px;
}

.cta__install code {
    font-size: 0.85rem;
    color: var(--sand);
}

.cta__install-copy {
    color: rgba(255, 255, 255, 0.3);
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.cta__install-copy:hover {
    color: var(--accent);
    background: rgba(61, 216, 216, 0.15);
}

.cta__links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.footer__logo { width: 28px; height: 28px; object-fit: contain; }

.footer__logo-3d {
    width: 36px;
    height: 36px;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(61, 216, 216, 0.7))
            drop-shadow(0 0 14px rgba(61, 216, 216, 0.4));
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent); }

.footer__meta {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer__separator { margin: 0 8px; }

@media (max-width: 640px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* --- SELECTION --- */
::selection {
    background: rgba(61, 216, 216, 0.3);
    color: var(--text-primary);
}
