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

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
    /* Colors */
    --bg:            #070b14;
    --bg-s:          #0d1321;
    --bg-c:          #111827;
    --bg-glass:      rgba(255, 255, 255, .025);
    --bg-ch:         rgba(192, 132, 151, .05);
    --accent:        #c08497;
    --accent-h:      #d4a0b0;
    --accent-glow:   rgba(192, 132, 151, .12);
    --accent-glow2:  rgba(192, 132, 151, .06);
    --fg:            #e8ecf4;
    --fg2:           #94a3b8;
    --fg3:           #5a687a;
    --border:        #1a2235;
    --border-h:      rgba(192, 132, 151, .28);
    --border-light:  rgba(255, 255, 255, .06);

    /* Shadows */
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md:     0 8px 28px rgba(0, 0, 0, .35);
    --shadow-lg:     0 24px 64px rgba(0, 0, 0, .55);
    --shadow-accent: 0 8px 32px rgba(192, 132, 151, .22);

    /* Editor colors (VS Code Dark+) */
    --ed-bg:      #1e1e1e;
    --ed-bar:     #323233;
    --ed-tab-bg:  #2d2d2d;
    --ed-sidebar: #252526;
    --ed-status:  #c08497;
    --ed-text:    #d4d4d4;
    --ed-ln:      #858585;
    --tok-kw:     #569cd6;
    --tok-cls:    #4ec9b0;
    --tok-fn:     #dcdcaa;
    --tok-str:    #ce9178;
    --tok-num:    #b5cea8;
    --tok-var:    #9cdcfe;
    --tok-mod:    #9cdcfe;
    --tok-ghost:  #4a5568;

    /* Radii */
    --r:   14px;
    --rs:  8px;
    --rr:  22px;

    /* Typography */
    --f:   'Inter', system-ui, sans-serif;
    --fm:  'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --max: 1100px;
    --t:   200ms ease;
}

/* ─── Base ──────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-h) var(--bg-s)
}

::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: var(--bg-s) }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px }

body {
    font-family: var(--f);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t)
}

a:hover { color: var(--accent-h) }

img { max-width: 100%; display: block }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px
}

/* Focus ring — accessible but subtle */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px
}

/* ─── Top Accent Bar ────────────────────────────────────── */
.page-top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-h), #9b72a0);
    z-index: 200
}

/* ─── Animated BG Canvas ────────────────────────────────── */
#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .3
}

.page-content {
    position: relative;
    z-index: 1
}

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 3px; left: 0; right: 0;
    z-index: 100;
    background: rgba(7, 11, 20, .7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t)
}

.nav--scrolled {
    background: rgba(7, 11, 20, .94);
    border-bottom-color: var(--border)
}

.nav__in {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 17px;
    color: var(--fg);
    flex-shrink: 0
}

.nav__brand img {
    width: 26px; height: 26px;
    border-radius: 6px
}

.nav__brand-icon {
    color: var(--accent);
    font-size: 14px;
    display: none
}

.nav__brand img[style*="display: none"] ~ .nav__brand-icon,
.nav__brand img:not([src]) ~ .nav__brand-icon { display: inline }

.nav__links {
    display: flex;
    gap: 28px;
    list-style: none
}

.nav__links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg2);
    transition: color var(--t);
    position: relative
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--t)
}

.nav__links a:hover { color: var(--fg) }
.nav__links a:hover::after { transform: scaleX(1) }
.nav__links a.active { color: var(--accent) }
.nav__links a.active::after { transform: scaleX(1) }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    border-radius: var(--rs);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all var(--t)
}

.nav__cta:hover {
    background: var(--accent-h);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent)
}

.nav__cta i, .nav__cta svg { width: 14px; height: 14px }

/* Mobile-only nav CTA — hidden on desktop */
.nav__mobile-cta { display: none }

.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--fg);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--rs);
    transition: border-color var(--t), background var(--t)
}

.nav__toggle:hover {
    border-color: var(--border-h);
    background: var(--accent-glow)
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    padding: 120px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden
}

.hero__glow {
    position: absolute;
    top: 60px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse at 50% 30%,
        rgba(192, 132, 151, .18) 0%,
        rgba(155, 114, 160, .08) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-bottom: 52px
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: var(--rr);
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
    animation: fadeUp .5s ease both
}

.hero__badge i { width: 13px; height: 13px }

.hero__title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeUp .5s .08s ease both
}

.hero__title span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-h) 50%, #9b72a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.hero__sub {
    font-size: 17px;
    color: var(--fg2);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeUp .5s .16s ease both
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .5s .24s ease both
}

.hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    animation: fadeUp .5s .3s ease both;
    flex-wrap: wrap
}

.hero__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--fg3);
    font-weight: 500
}

.hero__meta i { width: 13px; height: 13px }

/* Hero screenshot */
.hero__img {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    animation: fadeUp .5s .35s ease both
}

.hero__img img {
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, .07);
    border-bottom: none;
    box-shadow:
        0 0 0 1px rgba(192, 132, 151, .08),
        0 32px 80px rgba(0, 0, 0, .65),
        0 8px 24px rgba(0, 0, 0, .4);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: block
}

/* Fade the screenshot bottom into bg */
.hero__img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 960px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--rs);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap
}

.btn i { width: 16px; height: 16px }

.btn--p {
    background: var(--accent);
    color: #fff
}

.btn--p:hover {
    background: var(--accent-h);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(192, 132, 151, .28)
}

.btn--o {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border)
}

.btn--o:hover {
    border-color: var(--border-h);
    color: var(--accent);
    background: var(--accent-glow2)
}

.btn--sm { padding: 9px 18px; font-size: 13px }

/* ─── Editor Mockup ─────────────────────────────────────── */
.hero__editor {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    animation: fadeUp .5s .35s ease both
}

.editor-mockup {
    background: var(--ed-bg);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, .07);
    border-bottom: none;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(192, 132, 151, .08),
        0 32px 80px rgba(0, 0, 0, .65),
        0 8px 24px rgba(0, 0, 0, .4);
    font-family: var(--fm);
    font-size: 12px;
    text-align: left;
    max-width: 960px;
    margin: 0 auto
}

.em-bar {
    background: var(--ed-bar);
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .3)
}

.em-dots { display: flex; gap: 7px }

.em-dot {
    width: 12px; height: 12px;
    border-radius: 50%
}

.em-dot--r { background: #ff5f57 }
.em-dot--y { background: #febc2e }
.em-dot--g { background: #28c840 }

.em-title {
    flex: 1;
    text-align: center;
    font-size: 11.5px;
    color: #bbb;
    font-family: var(--f)
}

.em-bar-end { color: #666; font-size: 14px; cursor: pointer }
.em-bar-icon { user-select: none }

.em-tabs {
    background: var(--ed-tab-bg);
    display: flex;
    border-bottom: 1px solid #1a1a1a;
    overflow-x: auto;
    scrollbar-width: none
}

.em-tabs::-webkit-scrollbar { display: none }

.em-tab {
    padding: 7px 16px;
    font-size: 11.5px;
    color: #7a7a7a;
    border-right: 1px solid rgba(0, 0, 0, .3);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f);
    transition: color .15s
}

.em-tab:hover { color: #bbb }

.em-tab--active {
    background: var(--ed-bg);
    color: #ccc;
    border-bottom: 2px solid var(--accent)
}

.em-tab--faint { opacity: .45 }

.em-tab-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0
}

.em-body {
    display: flex;
    height: 230px;
    overflow: hidden
}

.em-sidebar {
    width: 170px;
    background: var(--ed-sidebar);
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, .4);
    flex-shrink: 0;
    padding-top: 6px
}

.em-sidebar-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #777;
    padding: 4px 10px 8px;
    font-family: var(--f);
    font-weight: 600
}

.em-tree-item {
    padding: 2.5px 8px;
    font-size: 11.5px;
    color: #bbb;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--f);
    transition: background .1s
}

.em-tree-item:hover { background: rgba(255, 255, 255, .05) }
.em-tree-dir { color: #ccc; font-weight: 500 }
.em-tree-active { background: #37373d; color: #fff }
.em-indent1 { padding-left: 18px }
.em-indent2 { padding-left: 32px }

.em-code {
    flex: 1;
    overflow: hidden;
    padding: 10px 0;
    min-width: 0
}

.em-pre {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.75;
    white-space: pre;
    padding: 0 18px;
    color: var(--ed-text);
    overflow-x: auto;
    scrollbar-width: none
}

.em-pre::-webkit-scrollbar { display: none }

.tok-ln  { color: var(--ed-ln); user-select: none; margin-right: 14px; display: inline-block; width: 18px; text-align: right }
.tok-kw  { color: var(--tok-kw) }
.tok-mod { color: var(--tok-mod) }
.tok-cls { color: var(--tok-cls) }
.tok-fn  { color: var(--tok-fn) }
.tok-str { color: var(--tok-str) }
.tok-num { color: var(--tok-num) }
.tok-var { color: var(--tok-var) }
.tok-cmt { color: #6a9955 }
.tok-ghost {
    color: var(--tok-ghost);
    font-style: italic;
    animation: ghostBlink 2s ease-in-out infinite
}

@keyframes ghostBlink {
    0%, 100% { opacity: .5 }
    50%       { opacity: .85 }
}

.em-panel {
    width: 200px;
    background: #1a1a2e;
    border-left: 1px solid rgba(255, 255, 255, .05);
    flex-shrink: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden
}

.em-panel-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-family: var(--f);
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(192, 132, 151, .15)
}

.em-issue {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 10.5px;
    color: #8a9bb0;
    font-family: var(--f);
    line-height: 1.4
}

.em-badge {
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--fm)
}

.em-badge--warn { background: rgba(254, 188, 46, .15); color: #febc2e }
.em-badge--info { background: rgba(86, 156, 214, .15); color: #569cd6 }
.em-badge--ok   { background: rgba(40, 200, 64, .12);  color: #28c840 }

.em-panel-footer {
    margin-top: auto;
    font-size: 9.5px;
    color: #444;
    font-family: var(--fm);
    border-top: 1px solid rgba(255, 255, 255, .04);
    padding-top: 8px
}

.em-status {
    background: var(--ed-status);
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, .9);
    font-family: var(--f);
    font-weight: 500
}

.em-status-branch::before { content: '⎇ '; opacity: .7 }

.em-status-r {
    margin-left: auto;
    display: flex;
    gap: 14px
}

.em-status-ai { font-weight: 600 }

/* ─── Language Strip ─────────────────────────────────────── */
.lang-strip {
    padding: 52px 0 80px;
    position: relative;
    z-index: 1;
    overflow: hidden
}

.lang-strip__label {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--fg3);
    margin-bottom: 24px;
    font-weight: 600
}

.lang-strip__wrap {
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%)
}

.lang-strip__track {
    display: flex;
    gap: 36px;
    width: max-content;
    animation: marquee 35s linear infinite;
    padding: 8px 0
}

.lang-strip__track:hover { animation-play-state: paused }

.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    opacity: .45;
    transition: opacity .25s, transform .25s;
    cursor: default;
    flex-shrink: 0
}

.lang-item:hover { opacity: 1; transform: translateY(-3px) }
.lang-item img { width: 36px; height: 36px; display: block }

.lang-item span {
    font-size: 10px;
    color: var(--fg3);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: .5px
}

@keyframes marquee {
    from { transform: translateX(0) }
    to   { transform: translateX(-50%) }
}

/* ─── Section Common ─────────────────────────────────────── */
.s-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 10px;
    text-align: center
}

.s-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -.5px
}

.s-sub {
    font-size: 15px;
    color: var(--fg2);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 52px;
    line-height: 1.7
}

/* ─── Features ───────────────────────────────────────────── */
.features { padding: 90px 24px }

.f-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto
}

.f-card {
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px;
    transition: all var(--t);
    position: relative;
    overflow: hidden
}

.f-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--t)
}

/* Subtle inner shine */
.f-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(192, 132, 151, .06), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--t)
}

.f-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25), 0 0 0 1px var(--border-h)
}

.f-card:hover::before { opacity: 1 }
.f-card:hover::after  { opacity: 1 }

.f-icon {
    width: 40px; height: 40px;
    border-radius: var(--rs);
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent)
}

.f-icon i { width: 18px; height: 18px }

.f-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px }
.f-card p  { font-size: 13px; color: var(--fg2); line-height: 1.65 }

/* ─── Showcase ───────────────────────────────────────────── */
.showcase { padding: 70px 24px 90px }

.showcase__in {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

.showcase__in.flip { direction: rtl }
.showcase__in.flip > * { direction: ltr }

.sc-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px
}

.sc-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.4px
}

.sc-text p {
    font-size: 14px;
    color: var(--fg2);
    margin-bottom: 22px;
    line-height: 1.75
}

.sc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px
}

.sc-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--fg2)
}

.sc-list li i {
    width: 16px; height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px
}

.sc-img {
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    min-height: 220px;
    background: var(--bg-c)
}

.sc-img img { width: 100%; display: block }

.sc-img--placeholder img { display: none }

.sc-img-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--fg3)
}

.sc-img--placeholder .sc-img-placeholder { display: flex }
.sc-img-placeholder i { width: 36px; height: 36px }
.sc-img-placeholder span { font-size: 13px }

/* ─── Stats ──────────────────────────────────────────────── */
.stats {
    padding: 64px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-s);
    position: relative;
    overflow: hidden
}

/* Subtle grid texture */
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(192, 132, 151, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 132, 151, .04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none
}

.stats__in {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    position: relative;
    z-index: 1
}

.st-val {
    font-size: 40px;
    font-weight: 800;
    font-family: var(--fm);
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-h));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.st-lbl {
    font-size: 11px;
    color: var(--fg2);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500
}

/* Stat item dividers */
.stats__in > div:not(:last-child) {
    border-right: 1px solid var(--border)
}

/* ─── Providers ──────────────────────────────────────────── */
.providers { padding: 80px 24px }

.prov-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.prov-card {
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--t);
    position: relative;
    overflow: hidden
}

.prov-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(192, 132, 151, .06), transparent 60%);
    pointer-events: none
}

.prov-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25)
}

.prov-logo {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px
}

.prov-logo i { width: 26px; height: 26px }

.prov-logo--openai    { background: rgba(16, 163, 127, .12);  color: #10a37f; border: 1px solid rgba(16, 163, 127, .2) }
.prov-logo--anthropic { background: rgba(204, 146, 80, .12);  color: #cc9250; border: 1px solid rgba(204, 146, 80, .2) }
.prov-logo--gemini    { background: rgba(66, 133, 244, .12);  color: #4285f4; border: 1px solid rgba(66, 133, 244, .2) }

.prov-name  { font-size: 17px; font-weight: 700; margin-bottom: 6px }
.prov-desc  { font-size: 12.5px; color: var(--fg2); line-height: 1.6 }

.prov-models {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center
}

.prov-model {
    font-size: 10px;
    font-family: var(--fm);
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-glow2);
    border: 1px solid var(--border);
    color: var(--fg3)
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta { padding: 0 24px 100px }

.cta__inner {
    max-width: var(--max);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(192, 132, 151, .1) 0%, rgba(155, 114, 160, .06) 100%);
    border: 1px solid var(--border-h);
    border-radius: 20px;
    padding: 80px 32px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.cta__inner::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 260px;
    background: radial-gradient(ellipse, rgba(192, 132, 151, .15), transparent 70%);
    pointer-events: none
}

/* Decorative corner lines */
.cta__inner::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .03);
    pointer-events: none
}

.cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--rr);
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.cta__badge i { width: 12px; height: 12px }

.cta h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -.8px
}

.cta p {
    font-size: 15px;
    color: var(--fg2);
    max-width: 440px;
    margin: 0 auto 36px;
    line-height: 1.7
}

/* ─── Enterprise Page ───────────────────────────────────── */
.ent-hero {
    padding: 160px 24px 90px;
    text-align: center
}

.ent-hero .s-label { margin-bottom: 18px }

.ent-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 20px
}

.ent-hero h1 span { color: var(--accent) }

.ent-hero p {
    font-size: 17px;
    color: var(--fg2);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7
}

.ent-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px
}

.ent-hero__meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap
}

.ent-hero__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fg3)
}

.ent-hero__meta i { width: 14px; height: 14px; color: var(--accent) }

/* Services grid */
.ent-services { padding: 80px 0 }

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

.ent-card {
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 30px 26px;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t)
}

.ent-card:hover {
    border-color: var(--border-h);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(192, 132, 151, .08)
}

.ent-card__icon {
    width: 44px; height: 44px;
    border-radius: var(--rs);
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent)
}

.ent-card__icon i { width: 20px; height: 20px }
.ent-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--fg) }
.ent-card p  { font-size: 14px; color: var(--fg2); line-height: 1.7 }

/* Why section */
.ent-why { padding: 80px 0 }

.ent-why__in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.ent-why__img img {
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4)
}

.ent-why__img img:hover {
    transform: scale(1.015);
    box-shadow: 0 0 40px rgba(192, 132, 151, .18)
}

/* CTA / contact */
.ent-cta {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border)
}

.ent-cta__in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.ent-cta__text h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -.8px;
    margin-bottom: 16px
}

.ent-cta__text p {
    font-size: 15px;
    color: var(--fg2);
    line-height: 1.7;
    margin-bottom: 12px
}

.ent-cta__note {
    font-size: 13px !important;
    color: var(--fg3) !important;
    margin-bottom: 28px !important
}

.ent-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start
}

/* Contact card widget */
.ent-contact-card {
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-lg)
}

.ent-contact-card__top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-s);
    border-bottom: 1px solid var(--border)
}

.ent-contact-card__dot {
    width: 10px; height: 10px;
    border-radius: 50%
}

.ent-contact-card__dot--r { background: #ff5f57 }
.ent-contact-card__dot--y { background: #febc2e }
.ent-contact-card__dot--g { background: #28c840 }

.ent-contact-card__title {
    font-family: var(--fm);
    font-size: 11px;
    color: var(--fg3);
    margin-left: 6px
}

.ent-contact-card__body { padding: 22px 22px 20px }

.ent-contact-card__row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--border)
}

.ent-contact-card__lbl {
    font-size: 11px;
    color: var(--fg3);
    font-family: var(--fm);
    min-width: 52px
}

.ent-contact-card__val { font-size: 13px; color: var(--fg2) }
.ent-contact-card__divider { height: 18px }

.ent-contact-card__msg {
    font-size: 13px;
    color: var(--fg2);
    line-height: 1.7;
    margin-bottom: 20px
}

.ent-contact-card__hl { color: var(--accent); font-weight: 600 }
.ent-contact-card__send { width: 100%; justify-content: center }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    padding: 56px 24px 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-s)
}

.footer__in {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px
}

/* Brand column */
.footer__brand { display: flex; flex-direction: column; gap: 14px }

.footer__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none
}

.footer__logo img {
    width: 26px; height: 26px;
    border-radius: 6px;
    display: block
}

.footer__logo-icon { color: var(--accent); font-size: 14px }

.footer__logo-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg)
}

.footer__tagline {
    font-size: 13px;
    color: var(--fg3);
    line-height: 1.65;
    max-width: 240px
}

.footer__maintained {
    font-size: 12px;
    color: var(--fg3);
    margin-top: 8px
}

.footer__copy {
    font-size: 11px;
    color: var(--fg3);
    margin-top: 6px
}

.footer__brand-link {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t)
}

.footer__brand-link:hover {
    color: var(--accent-h);
    text-decoration: underline
}

/* Nav columns */
.footer__col-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--fg2);
    margin-bottom: 16px
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer__links a {
    font-size: 13px;
    color: var(--fg3);
    transition: color var(--t);
    display: flex;
    align-items: center;
    gap: 7px
}

.footer__links a:hover { color: var(--fg2) }
.footer__links a i,
.footer__links a svg { width: 13px !important; height: 13px !important; flex-shrink: 0 }

/* ─── Docs Hero ──────────────────────────────────────────── */
.docs-hero {
    padding: 150px 24px 60px;
    text-align: center
}

.docs-hero .s-label { margin-bottom: 16px }

.docs-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 18px
}

.docs-hero h1 span { color: var(--accent) }

.docs-hero p {
    font-size: 16px;
    color: var(--fg2);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7
}

.docs-hero__pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
}

.docs-hero__pills span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg2);
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--rr);
    padding: 6px 14px;
    transition: border-color var(--t), color var(--t)
}

.docs-hero__pills span i { width: 13px; height: 13px; color: var(--accent) }
.docs-hero__pills span:hover { border-color: var(--border-h); color: var(--fg) }

/* ─── Docs Layout ────────────────────────────────────────── */
.docs { padding: 40px 24px 80px }

.docs__layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start
}

/* Sticky sidebar TOC */
.docs__sidebar {
    position: sticky;
    top: 84px
}

.docs__toc-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--fg3);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border)
}

.docs__toc {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.docs__toc a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fg3);
    padding: 6px 10px;
    border-radius: var(--rs);
    transition: color var(--t), background var(--t)
}

.docs__toc a:hover {
    color: var(--fg);
    background: var(--bg-ch)
}

.docs__toc a.toc-active {
    color: var(--accent);
    background: var(--accent-glow)
}

.docs__toc a i { width: 13px; height: 13px; flex-shrink: 0 }

.docs__content { min-width: 0 }

/* Single-column fallback (no sidebar) */
.docs__in { max-width: 720px; margin: 0 auto }

.doc-section { margin-bottom: 56px; scroll-margin-top: 90px }

.doc-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px
}

.doc-section h2 i { width: 20px; height: 20px; color: var(--accent) }
.doc-section h3 { font-size: 16px; font-weight: 600; margin: 20px 0 10px; color: var(--fg) }

.doc-section p,
.doc-section li { font-size: 14px; color: var(--fg2); line-height: 1.7 }

.doc-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px
}

.doc-section ul li { display: flex; align-items: flex-start; gap: 8px }

.doc-section ul li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 8px
}

.doc-section ol { padding-left: 20px; margin-bottom: 12px }
.doc-section ol li { margin-bottom: 6px }

.doc-code {
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    padding: 16px 18px;
    font-family: var(--fm);
    font-size: 13px;
    color: var(--fg2);
    margin: 14px 0;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.7
}

.doc-note {
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    border-radius: var(--rs);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--fg2);
    margin: 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.doc-note i { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px }

/* ─── Keyboard Shortcuts Table ───────────────────────────── */
.kb-table {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--bg-c)
}

.kb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border)
}

.kb-row:last-child { border-bottom: none }
.kb-row:hover { background: var(--bg-ch) }

.kb-key {
    font-family: var(--fm);
    color: var(--fg2);
    font-size: 12px;
    background: var(--accent-glow2);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border)
}

/* ─── Download Page ──────────────────────────────────────── */
.dl-hero { padding: 140px 24px 50px; text-align: center }

.dl-hero h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -1px
}

.dl-hero p {
    font-size: 16px;
    color: var(--fg2);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.7
}

.dl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    border-radius: var(--rr);
    padding: 5px 14px;
    margin-bottom: 22px;
    letter-spacing: .04em;
    text-transform: uppercase
}

.dl-hero__badge i { width: 13px; height: 13px }

.dl-hero__meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap
}

.dl-hero__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fg3)
}

.dl-hero__meta i { width: 14px; height: 14px; color: var(--accent) }

.dl-cards { padding: 36px 24px 60px }

.dl-cards__in {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px
}

.dl-card {
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--t)
}

.dl-card:hover {
    border-color: var(--border-h);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2)
}

/* Featured primary card */
.dl-card--primary {
    border-color: var(--border-h);
    background: linear-gradient(160deg, rgba(192, 132, 151, .08), var(--bg-c) 60%);
    position: relative;
    overflow: hidden
}

.dl-card--primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent)
}

.dl-card--primary:hover {
    box-shadow: 0 16px 40px rgba(192, 132, 151, .12)
}

.dl-card__badge {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 10px;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--rr);
    letter-spacing: .05em;
    text-transform: uppercase
}

.dl-card__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid var(--border-h);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent)
}

.dl-card__icon i { width: 26px; height: 26px }
.dl-card__name   { font-size: 18px; font-weight: 700; margin-bottom: 3px }
.dl-card__ver    { font-size: 12px; color: var(--fg2); margin-bottom: 10px }
.dl-card__size   { font-size: 11px; color: var(--fg3); margin-bottom: 18px }
.dl-card .btn    { width: 100% }

/* Changelog */
.dl-changelog {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border)
}

.cl-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border)
}

.cl-entry:last-child { border-bottom: none }

.cl-ver {
    font-family: var(--fm);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    padding-top: 4px
}

.cl-date { font-size: 12px; color: var(--fg3); margin-bottom: 12px }

.cl-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.cl-list li {
    font-size: 14px;
    color: var(--fg2);
    display: flex;
    align-items: baseline;
    gap: 10px
}

.cl-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0
}

.cl-tag--add { background: rgba(40, 200, 80, .12);   color: #4ade80; border: 1px solid rgba(40, 200, 80, .2) }
.cl-tag--fix { background: rgba(96, 165, 250, .12);  color: #60a5fa; border: 1px solid rgba(96, 165, 250, .2) }
.cl-tag--imp { background: rgba(192, 132, 151, .12); color: var(--accent); border: 1px solid var(--border-h) }

/* System requirements */
.req { padding: 40px 24px 60px }

.req__box {
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-c);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px
}

.req__box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.req__box h3 i { width: 16px; height: 16px; color: var(--accent) }

.req__box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.req__box li {
    font-size: 13px;
    color: var(--fg2);
    display: flex;
    align-items: center;
    gap: 8px
}

.req__box li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0
}

.req__box code {
    font-family: var(--fm);
    background: var(--accent-glow);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px
}

/* ─── Decorative Glow Orbs ───────────────────────────────── */
.glow-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

.g-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform
}

.g-orb--1 { width: 580px; height: 580px; left: -240px; top: 260px }
.g-orb--2 { width: 460px; height: 460px; right: -180px; top: 1350px }
.g-orb--3 { width: 540px; height: 540px; left: -200px;  top: 2550px }
.g-orb--4 { width: 380px; height: 380px; right: -140px; top: 3500px }
.g-orb--5 { width: 500px; height: 500px; left: -200px;  top: 4400px }

.g-orb--1 {
    background: radial-gradient(circle at 40% 45%, rgba(192, 132, 151, .55) 0%, rgba(192, 132, 151, .22) 38%, transparent 68%);
    filter: blur(72px);
    animation: float1 18s ease-in-out infinite
}
.g-orb--2 {
    background: radial-gradient(circle at 55% 50%, rgba(160, 110, 180, .52) 0%, rgba(192, 132, 151, .20) 38%, transparent 68%);
    filter: blur(60px);
    animation: float2 22s ease-in-out infinite;
    animation-delay: -7s
}
.g-orb--3 {
    background: radial-gradient(circle at 45% 48%, rgba(192, 132, 151, .50) 0%, rgba(210, 140, 170, .18) 38%, transparent 68%);
    filter: blur(68px);
    animation: float3 20s ease-in-out infinite;
    animation-delay: -3s
}
.g-orb--4 {
    background: radial-gradient(circle at 50% 45%, rgba(175, 115, 155, .48) 0%, rgba(155, 110, 175, .16) 38%, transparent 68%);
    filter: blur(55px);
    animation: float4 16s ease-in-out infinite;
    animation-delay: -10s
}
.g-orb--5 {
    background: radial-gradient(circle at 45% 50%, rgba(192, 132, 151, .52) 0%, rgba(180, 125, 155, .20) 38%, transparent 68%);
    filter: blur(65px);
    animation: float5 24s ease-in-out infinite;
    animation-delay: -5s
}

@keyframes float1 {
    0%   { transform: translate(0px,   0px) }
    20%  { transform: translate(38px, -52px) }
    45%  { transform: translate(-24px,-80px) }
    70%  { transform: translate(50px, -35px) }
    100% { transform: translate(0px,   0px) }
}
@keyframes float2 {
    0%   { transform: translate(0px,   0px) }
    25%  { transform: translate(-40px, 55px) }
    55%  { transform: translate(30px,  80px) }
    80%  { transform: translate(-20px, 30px) }
    100% { transform: translate(0px,   0px) }
}
@keyframes float3 {
    0%   { transform: translate(0px,  0px) }
    30%  { transform: translate(45px,-45px) }
    60%  { transform: translate(-30px,-70px) }
    85%  { transform: translate(20px,-20px) }
    100% { transform: translate(0px,  0px) }
}
@keyframes float4 {
    0%   { transform: translate(0px,   0px) }
    35%  { transform: translate(-50px, 40px) }
    65%  { transform: translate(25px,  65px) }
    100% { transform: translate(0px,   0px) }
}
@keyframes float5 {
    0%   { transform: translate(0px,  0px) }
    20%  { transform: translate(35px, 50px) }
    50%  { transform: translate(-40px,75px) }
    75%  { transform: translate(55px, 30px) }
    100% { transform: translate(0px,  0px) }
}

/* ─── Lightbox ───────────────────────────────────────────── */
.sc-img img,
.hero__img img,
.ent-why__img img {
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease
}

.sc-img img:hover,
.hero__img img:hover,
.ent-why__img img:hover {
    transform: scale(1.015);
    box-shadow: 0 0 40px rgba(192, 132, 151, .18)
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 20, .88);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease
}

.lightbox.open { opacity: 1; pointer-events: all }

.lightbox__img {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    border-radius: var(--r);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(192, 132, 151, .12);
    transform: scale(.94);
    transition: transform .28s cubic-bezier(.34, 1.3, .64, 1)
}

.lightbox.open .lightbox__img { transform: scale(1) }

.lightbox__close {
    position: absolute;
    top: 20px; right: 24px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--fg);
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s
}

.lightbox__close:hover { background: rgba(192, 132, 151, .25) }

/* ─── Back To Top ────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-c);
    border: 1px solid var(--border-h);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, background .2s, box-shadow .2s;
    pointer-events: none
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all
}

.back-to-top:hover {
    background: var(--accent-glow);
    box-shadow: var(--shadow-accent)
}

.back-to-top i { width: 16px; height: 16px }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px) }
    to   { opacity: 1; transform: translateY(0) }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease
}

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .docs__layout {
        grid-template-columns: 180px 1fr;
        gap: 36px
    }
}

@media (max-width: 960px) {
    .em-panel { display: none }
    .docs__layout {
        grid-template-columns: 1fr;
    }
    .docs__sidebar { display: none }
}

@media (max-width: 900px) {
    .f-grid        { grid-template-columns: repeat(2, 1fr) }
    .prov-grid     { grid-template-columns: 1fr 1fr }
    .ent-grid      { grid-template-columns: 1fr 1fr }
    .stats__in     { grid-template-columns: repeat(2, 1fr); gap: 20px }
    .footer__in    { grid-template-columns: 1fr 1fr; gap: 36px }

    .showcase__in,
    .showcase__in.flip {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr
    }

    .showcase__in > * { direction: ltr }
    .sc-img { order: -1 }

    .ent-why__in,
    .ent-cta__in { grid-template-columns: 1fr; gap: 40px }

    /* Remove stat dividers at 2-col */
    .stats__in > div:not(:last-child) {
        border-right: none
    }
    .stats__in > div:nth-child(odd) {
        border-right: 1px solid var(--border)
    }
}

@media (max-width: 720px) {
    .em-sidebar { display: none }
}

@media (max-width: 640px) {
    /* Mobile nav */
    .nav__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: rgba(7, 11, 20, .98);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px 20px;
        gap: 4px;
        backdrop-filter: blur(20px)
    }

    .nav__links.open { display: flex }
    .nav__links a    { padding: 10px 4px; font-size: 14px }

    /* Show CTA inside mobile menu */
    .nav__mobile-cta {
        display: flex !important;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid var(--border)
    }

    .nav__toggle { display: flex }
    .nav__cta { display: none }

    /* Remove underline pseudo on vertical mobile menu */
    .nav__links a::after { display: none }
    .nav__links a { padding: 8px 4px }
    .nav__links a.active { color: var(--accent) }

    /* Hero */
    .hero { padding: 100px 0 0 }
    .hero__title { letter-spacing: -.8px }

    /* Grids */
    .f-grid           { grid-template-columns: 1fr }
    .ent-grid         { grid-template-columns: 1fr }
    .stats__in        { grid-template-columns: repeat(2, 1fr) }
    .prov-grid        { grid-template-columns: 1fr }
    .dl-cards__in     { grid-template-columns: 1fr }

    /* Stats - reset dividers */
    .stats__in > div:not(:last-child) { border-right: none }
    .stats__in > div:nth-child(odd)   { border-right: none }

    /* Footer single col */
    .footer__in {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .footer__copy { margin-top: 8px }

    /* Hero actions — stack on mobile */
    .hero__actions { flex-direction: column; align-items: center }
    .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center }

    .ent-hero__actions { flex-direction: column; align-items: center }
    .ent-hero__actions .btn { width: 100%; max-width: 320px; justify-content: center }

    /* CTA */
    .cta__inner { padding: 48px 20px }

    /* Editor mockup */
    .em-body { height: 180px }
    .em-pre  { font-size: 11px }
    .em-tab--faint { display: none }

    /* Changelog */
    .cl-entry {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .cl-ver {
        display: inline-block;
        background: var(--accent-glow);
        border: 1px solid var(--border-h);
        border-radius: var(--rr);
        padding: 3px 12px;
        font-size: 12px
    }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 16px }

    /* Section padding */
    .features      { padding: 70px 16px }
    .showcase      { padding: 50px 16px 70px }
    .providers     { padding: 60px 16px }
    .cta           { padding: 0 16px 80px }
    .ent-services  { padding: 60px 0 }
    .ent-why       { padding: 60px 0 }
    .ent-cta       { padding: 60px 0 80px }
    .docs          { padding: 32px 16px 64px }
    .dl-changelog  { padding: 48px 0 64px }

    /* Req section */
    .req { padding: 24px 16px 48px }
}

/* ─── Mobile: fix black-bar scroll artefact ─────────────── */
/* position:fixed + filter:blur triggers a black compositing layer      */
/* on mobile WebKit/Blink during downscroll. Canvas hides cleanly;      */
/* glow-orbs switches to absolute (anchored to .page-content which is   */
/* already position:relative) so they render in-document, not on GPU.   */
@media (max-width: 768px) {
    #bgCanvas  { display: none }
    .glow-orbs { position: absolute }
}

@media (max-width: 420px) {
    .hero__meta    { gap: 12px }
    .ent-hero__meta { gap: 14px; flex-direction: column; align-items: center }
    .dl-hero__meta { gap: 12px; flex-direction: column; align-items: center }
}
