/* ============================================================
   DESIGN SYSTEM — v5 (полный релиз)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0f1116;
    color: #e8ecf0;
    font-size: 20px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; width: 100%; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200, 210, 220, 0.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 210, 220, 0.28); }
* { scrollbar-width: thin; scrollbar-color: rgba(200, 210, 220, 0.14) transparent; }

.grain {
    position: fixed; inset: 0; pointer-events: none;
    z-index: 9998; opacity: 0.04; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 8s steps(10) infinite;
}
@keyframes grainShift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-3%,3%)} }

.cursor-dot, .cursor-ring {
    position: fixed; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); top: 0; left: 0; will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; background: #e8ecf0; border-radius: 50%; }
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(232, 236, 240, 0.35);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
.cursor-ring.hover {
    width: 70px; height: 70px;
    border-color: rgba(232, 236, 240, 0.6);
    background: rgba(232, 236, 240, 0.04);
}

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px;
    background: linear-gradient(90deg, #6a7a8a, #aabaca);
    z-index: 10000; width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(106, 122, 138, 0.4);
}

.parallax-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.parallax-bg .orb { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.orb-1 { top: 10%; left: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(106, 122, 138, 0.08), transparent 70%); }
.orb-2 { bottom: 5%; right: -10%; width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(160, 170, 180, 0.06), transparent 70%); }
.orb-3 { top: 40%; left: 40%; width: 35vw; height: 35vw; background: radial-gradient(circle, rgba(200, 210, 220, 0.03), transparent 70%); }

h1, h2, h3, h4, .btn, .nav-extra, .kicker, .segments button {
    font-family: 'SF Mono', 'Roboto Mono', 'Menlo', 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.01em;
    word-wrap: break-word;
}
h1 { font-size: clamp(3rem, 8vw, 7.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.9rem); font-weight: 500; line-height: 1.3; }
h4 { font-size: clamp(1rem, 1.15vw, 1.2rem); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(200, 210, 220, 0.55); }
p, li { font-size: clamp(1.1rem, 1.3vw, 1.3rem); line-height: 1.75; color: rgba(200, 210, 220, 0.72); }
.kicker {
    display: inline-block;
    font-size: clamp(0.72rem, 0.95vw, 0.85rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.45);
    margin-bottom: 1.2rem;
    padding: 8px 20px;
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 9999px;
}

.answer-first {
    background: linear-gradient(180deg, rgba(160, 170, 180, 0.04), rgba(160, 170, 180, 0.015));
    border-left: 3px solid rgba(200, 210, 220, 0.25);
    padding: 24px 28px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0 36px;
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    color: rgba(232, 236, 240, 0.88);
    line-height: 1.7;
    max-width: 950px;
}

.split-line { overflow: hidden; display: block; }
.split-line span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.split-ready .split-line span { transform: translateY(0); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'SF Mono', monospace; font-weight: 500;
    font-size: clamp(0.9rem, 1.05vw, 1.05rem);
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 20px 48px; border-radius: 9999px;
    border: 1px solid rgba(160, 170, 180, 0.15);
    background: rgba(255, 255, 255, 0.015);
    color: #e8ecf0; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center; position: relative; overflow: hidden;
    backdrop-filter: blur(6px); min-height: 58px;
    white-space: nowrap; text-decoration: none;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(232, 236, 240, 0.1), transparent 40%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn:hover {
    border-color: rgba(232, 236, 240, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(106, 122, 138, 0.08);
}
.btn:focus-visible { outline: 2px solid rgba(232, 236, 240, 0.6); outline-offset: 3px; }
.btn-primary { background: #e8ecf0; color: #0f1116; border-color: #e8ecf0; }
.btn-primary:hover { background: #ffffff; box-shadow: 0 20px 40px rgba(232, 236, 240, 0.15); }
.btn-hal { border-color: rgba(180, 120, 120, 0.25); color: #d0b0b0; }
.btn-neural { border-color: rgba(120, 150, 190, 0.25); color: #a0b8d0; }
.price-card .btn { min-height: 52px; padding: 16px 32px; font-size: 0.95rem; width: 100%; letter-spacing: 0.05em; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 32px;
    z-index: 100;
    background: rgba(15, 17, 22, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(160, 170, 180, 0.05);
    flex-wrap: nowrap; gap: 12px;
    transition: padding 0.4s, background 0.4s;
}
.navbar.scrolled { padding: 10px 32px; background: rgba(15, 17, 22, 0.92); }

/* ============ LOGO AVATAR ============ */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    padding: 4px 6px 4px 4px;
    border-radius: 14px;
}
.logo:hover { transform: translateY(-1px); }
.logo:focus-visible { outline: 2px solid rgba(232, 236, 240, 0.6); outline-offset: 2px; }
.logo-avatar {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: radial-gradient(circle at 35% 30%, #b8c4d0, #6a7a8a 60%, #3a4652 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(106, 122, 138, 0.25),
        0 0 40px rgba(106, 122, 138, 0.1);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.logo:hover .logo-avatar {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(160, 180, 200, 0.4),
        0 0 60px rgba(106, 122, 138, 0.15);
    transform: scale(1.04);
}
.logo-avatar svg { width: 100%; height: 100%; display: block; }
.logo-avatar::after {
    content: '';
    position: absolute;
    top: 15%; left: 22%;
    width: 26%; height: 22%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-text .wordmark {
    font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.03em; color: #e8ecf0;
}
.logo-text .wordmark span { color: #8a9aaa; }
.logo-text .tagline {
    font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
    font-size: 0.58rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(160, 170, 180, 0.5);
}

.nav-controls { display: flex; align-items: center; gap: 16px; }
.segments {
    display: flex; gap: 2px;
    background: rgba(160, 170, 180, 0.04);
    border-radius: 9999px; padding: 4px;
    border: 1px solid rgba(160, 170, 180, 0.05);
}
.segments button {
    background: transparent; border: none;
    color: rgba(160, 170, 180, 0.5);
    font-weight: 500; font-size: 0.82rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 10px 20px; border-radius: 9999px;
    cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.segments button.active { background: rgba(232, 236, 240, 0.08); color: #e8ecf0; }
.segments button:hover:not(.active) { color: #e8ecf0; }
.nav-extra {
    font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(232, 236, 240, 0.6);
    padding: 12px 24px; border-radius: 9999px;
    border: 1px solid rgba(160, 170, 180, 0.1);
    cursor: pointer; transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02); white-space: nowrap;
}
.nav-extra:hover { background: rgba(232, 236, 240, 0.06); color: #e8ecf0; border-color: rgba(232, 236, 240, 0.2); }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: #e8ecf0; border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.segment-content { display: none; }
.segment-content.active { display: block; }

.hero {
    min-height: 100vh; min-height: 100svh;
    padding: 200px 0 120px;
    position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { margin-bottom: 2rem; max-width: 1150px; }
.hero h1 .accent {
    background: linear-gradient(135deg, #e8ecf0 30%, #8a9aaa 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}
.hero .lead {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    max-width: 700px;
    color: rgba(200, 210, 220, 0.68);
    margin-bottom: 3rem; line-height: 1.65;
}
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 18px; }

.hero-meta {
    position: absolute; right: 32px; bottom: 60px;
    text-align: right;
    font-family: 'SF Mono', monospace;
    font-size: 0.82rem; letter-spacing: 0.08em;
    color: rgba(200, 210, 220, 0.35);
    text-transform: uppercase; line-height: 1.9; z-index: 3;
}
.hero-meta strong { color: rgba(232, 236, 240, 0.85); font-weight: 500; }

.scroll-hint {
    position: absolute; left: 50%; bottom: 30px;
    transform: translateX(-50%);
    z-index: 3;
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem; letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.35);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-hint::after {
    content: ''; width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(200, 210, 220, 0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollPulse {
    0%,100% { transform: scaleY(0.4); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
}

.marquee {
    padding: 34px 0;
    border-top: 1px solid rgba(160, 170, 180, 0.05);
    border-bottom: 1px solid rgba(160, 170, 180, 0.05);
    overflow: hidden; white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: inline-flex; gap: 60px; animation: marqueeScroll 40s linear infinite; will-change: transform; }
.marquee-item {
    font-family: 'SF Mono', monospace;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    letter-spacing: 0.05em;
    color: rgba(200, 210, 220, 0.38);
    text-transform: uppercase;
    display: flex; align-items: center; gap: 60px;
}
.marquee-item::after { content: '◆'; color: rgba(160, 170, 180, 0.15); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { padding: 130px 0; position: relative; }
.section-head { max-width: 850px; margin-bottom: 5rem; }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head p { font-size: clamp(1.1rem, 1.3vw, 1.3rem); color: rgba(200, 210, 220, 0.62); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 26px; padding: 44px 36px;
    position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 280px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.bento-item:hover { border-color: rgba(232, 236, 240, 0.15); transform: translateY(-4px); }
.bento-item .bento-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 14px;
    background: rgba(160, 170, 180, 0.03);
    margin-bottom: 24px;
}
.bento-item svg { width: 24px; height: 24px; stroke: #aabaca; stroke-width: 1.5; fill: none; }
.bento-item h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); margin-bottom: 0.6rem; }
.bento-item p { font-size: clamp(1rem, 1.15vw, 1.15rem); color: rgba(200, 210, 220, 0.62); }
.bento-item .bento-num {
    font-family: 'SF Mono', monospace;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 500; color: rgba(232, 236, 240, 0.9);
    letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px;
}
.bento-3 { grid-column: span 3; }
.bento-2 { grid-column: span 2; }

.graph-section { padding: 0; position: relative; }
#three-container {
    width: 100%; height: 640px;
    border-radius: 34px; overflow: hidden;
    border: 1px solid rgba(160, 170, 180, 0.06);
    background: radial-gradient(ellipse at center, rgba(106, 122, 138, 0.04), rgba(15, 17, 22, 0.6));
    position: relative;
}
.graph-overlay-tl {
    position: absolute; top: 34px; left: 34px; z-index: 5;
    font-family: 'SF Mono', monospace;
    font-size: clamp(0.72rem, 0.9vw, 0.85rem);
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(200, 210, 220, 0.5); line-height: 1.9;
}
.graph-overlay-tl .dot {
    display: inline-block; width: 7px; height: 7px;
    background: #8a9aaa; border-radius: 50%;
    margin-right: 8px;
    animation: dotPulse 2s ease-in-out infinite;
    vertical-align: middle;
}
@keyframes dotPulse {
    0%,100% { opacity: 1; box-shadow: 0 0 10px rgba(138, 154, 170, 0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 20px rgba(138, 154, 170, 1); }
}
.graph-overlay-br {
    position: absolute; bottom: 34px; right: 34px; z-index: 5;
    display: flex; gap: 26px;
    font-family: 'SF Mono', monospace;
    font-size: clamp(0.72rem, 0.9vw, 0.85rem);
    letter-spacing: 0.08em;
    color: rgba(200, 210, 220, 0.4);
}
.graph-overlay-br .stat b {
    display: block;
    color: rgba(232, 236, 240, 0.9);
    font-size: clamp(1.3rem, 1.8vw, 1.9rem);
    font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
}

.stack-wrap { position: relative; }
.stack-card {
    position: sticky; top: 130px;
    background: linear-gradient(180deg, #16181f, #11131a);
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 30px; padding: 60px 52px;
    margin-bottom: 32px; min-height: 440px;
    transition: transform 0.3s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card .step {
    font-family: 'SF Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(200, 210, 220, 0.45); margin-bottom: 26px;
}
.stack-card h3 { font-size: clamp(1.6rem, 3.2vw, 3rem); margin-bottom: 20px; color: #e8ecf0; }
.stack-card p { font-size: clamp(1.1rem, 1.3vw, 1.3rem); max-width: 760px; color: rgba(200, 210, 220, 0.68); }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 44px; }
.stack-grid .item { border-top: 1px solid rgba(160, 170, 180, 0.08); padding-top: 22px; }
.stack-grid .item h4 { margin-bottom: 8px; }
.stack-grid .item p { font-size: clamp(1rem, 1.1vw, 1.1rem); }

.roi-wrap {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 34px; padding: 68px 60px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 68px; align-items: center;
}
.roi-controls { display: flex; flex-direction: column; gap: 40px; }
.roi-field label {
    display: flex; justify-content: space-between;
    font-family: 'SF Mono', monospace;
    font-size: clamp(0.85rem, 1vw, 1rem);
    letter-spacing: 0.05em;
    color: rgba(200, 210, 220, 0.55);
    text-transform: uppercase;
    margin-bottom: 16px; gap: 12px;
}
.roi-field label b { color: #e8ecf0; font-weight: 500; font-size: clamp(1rem, 1.15vw, 1.15rem); white-space: nowrap; }
.roi-field input[type="range"] {
    width: 100%; height: 3px;
    -webkit-appearance: none; appearance: none;
    background: rgba(160, 170, 180, 0.1);
    border-radius: 2px; outline: none; cursor: pointer;
}
.roi-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px;
    background: #e8ecf0; border-radius: 50%;
    cursor: pointer; border: 3px solid #0f1116;
    box-shadow: 0 0 20px rgba(232, 236, 240, 0.3);
    transition: transform 0.2s;
}
.roi-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-output {
    text-align: center; padding: 44px 32px;
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 26px;
    background: rgba(15, 17, 22, 0.5);
}
.roi-output .label {
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem; letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.4); margin-bottom: 16px;
}
.roi-output .value {
    font-family: 'SF Mono', monospace;
    font-size: clamp(2rem, 5vw, 4.4rem);
    font-weight: 500; letter-spacing: -0.03em;
    color: #e8ecf0; line-height: 1; word-break: break-word;
}
.roi-output .value small { font-size: 0.5em; color: rgba(200, 210, 220, 0.4); margin-left: 8px; }
.roi-output .payback {
    margin-top: 24px;
    font-family: 'SF Mono', monospace;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: rgba(200, 210, 220, 0.6);
}
.roi-output .payback b { color: #a0b8a0; font-weight: 500; }

.pricing-section { position: relative; }
.pricing-toggle {
    display: flex; justify-content: center;
    gap: 4px; margin: 0 auto 56px;
    padding: 6px;
    background: rgba(160, 170, 180, 0.04);
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 9999px; width: fit-content;
}
.pricing-toggle button {
    background: transparent; border: none;
    color: rgba(200, 210, 220, 0.55);
    font-family: 'SF Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 12px 28px; border-radius: 9999px;
    cursor: pointer; transition: all 0.3s;
}
.pricing-toggle button.active { background: #e8ecf0; color: #0f1116; }
.pricing-toggle .save-badge {
    display: inline-block; font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(160, 184, 160, 0.15);
    color: #a0b8a0; border-radius: 999px;
    margin-left: 6px; letter-spacing: 0.03em;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.price-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 28px; padding: 48px 40px;
    position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex; flex-direction: column;
}
.price-card:hover { border-color: rgba(232, 236, 240, 0.15); transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.price-card.featured {
    background: linear-gradient(180deg, rgba(232, 236, 240, 0.04), rgba(232, 236, 240, 0.01));
    border-color: rgba(232, 236, 240, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.price-card.featured::before {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute; top: 22px; right: -50px;
    padding: 6px 60px; background: #e8ecf0; color: #0f1116;
    font-family: 'SF Mono', monospace;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.15em; transform: rotate(35deg); z-index: 2;
}
.price-card .plan-name {
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem; letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.5); margin-bottom: 16px;
}
.price-card .plan-price {
    font-family: 'SF Mono', monospace;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 500; letter-spacing: -0.03em;
    color: #e8ecf0; line-height: 1; margin-bottom: 8px;
}
.price-card .plan-price small { font-size: 0.42em; color: rgba(200, 210, 220, 0.4); margin-left: 6px; }
.price-card .plan-price-yearly {
    font-family: 'SF Mono', monospace;
    font-size: 0.9rem; color: rgba(200, 210, 220, 0.4);
    margin-bottom: 32px; min-height: 1.4em;
}
.price-card .plan-price-yearly .old { text-decoration: line-through; opacity: 0.5; margin-right: 6px; }
.price-card .plan-price-yearly .save { color: #a0b8a0; margin-left: 8px; font-weight: 500; }
.price-card h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); margin-bottom: 8px; color: #e8ecf0; }
.price-card .plan-desc {
    color: rgba(200, 210, 220, 0.6);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    margin-bottom: 32px; line-height: 1.6; min-height: 3.2em;
}
.price-card .plan-features {
    list-style: none;
    display: flex; flex-direction: column; gap: 14px;
    margin-bottom: 40px; flex: 1;
    border-top: 1px solid rgba(160, 170, 180, 0.06);
    padding-top: 32px;
}
.price-card .plan-features li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: rgba(200, 210, 220, 0.75);
    line-height: 1.5;
}
.price-card .plan-features li::before { content: '✓'; flex-shrink: 0; color: #a0b8a0; font-weight: 500; font-size: 1.1em; }
.price-card .plan-features li.dim { color: rgba(200, 210, 220, 0.35); }
.price-card .plan-features li.dim::before { content: '—'; color: rgba(200, 210, 220, 0.2); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(160, 170, 180, 0.05);
    border-radius: 26px; padding: 44px 36px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.case-card:hover { border-color: rgba(232, 236, 240, 0.15); transform: translateY(-6px); }
.case-card .case-tag {
    font-family: 'SF Mono', monospace;
    font-size: 0.78rem; letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.4); margin-bottom: 20px;
}
.case-card h3 { font-size: clamp(1.3rem, 1.6vw, 1.55rem); margin-bottom: 16px; }
.case-card .metric {
    font-family: 'SF Mono', monospace;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 500; letter-spacing: -0.03em;
    color: #aabaca; line-height: 1; margin: 20px 0 8px;
}
.case-card .metric-label { font-size: 0.95rem; color: rgba(200, 210, 220, 0.5); margin-bottom: 24px; }
.case-card p { font-size: clamp(1rem, 1.1vw, 1.1rem); color: rgba(200, 210, 220, 0.62); }

.faq-item {
    border-bottom: 1px solid rgba(160, 170, 180, 0.06);
    padding: 36px 0; cursor: pointer;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.faq-q h3 { font-size: clamp(1.15rem, 1.7vw, 1.7rem); color: #e8ecf0; font-weight: 400; line-height: 1.4; transition: color 0.3s; }
.faq-item:hover .faq-q h3 { color: #ffffff; }
.faq-q .icon {
    flex-shrink: 0; width: 36px; height: 36px;
    border: 1px solid rgba(160, 170, 180, 0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s;
    color: rgba(200, 210, 220, 0.6);
    font-size: 1.2rem; line-height: 1;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); border-color: rgba(232, 236, 240, 0.4); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s;
    color: rgba(200, 210, 220, 0.62);
    padding-top: 0;
    font-size: clamp(1.05rem, 1.15vw, 1.15rem);
}
.faq-item.open .faq-a { max-height: 600px; padding-top: 22px; }

/* ============ FOOTER (полностью переработан) ============ */
footer {
    padding: 96px 0 0;
    border-top: 1px solid rgba(160, 170, 180, 0.05);
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.4));
}
footer::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; max-width: 800px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 210, 220, 0.15), transparent);
    pointer-events: none;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 60px; margin-bottom: 72px;
    align-items: start;
}
.footer-brand { max-width: 380px; }
.footer-brand .logo { margin-bottom: 22px; padding-left: 0; }
.footer-brand p {
    color: rgba(200, 210, 220, 0.5);
    font-size: 0.95rem; line-height: 1.75;
    margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(160, 170, 180, 0.04);
    border: 1px solid rgba(160, 170, 180, 0.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(200, 210, 220, 0.55);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}
.footer-socials a:hover {
    background: rgba(232, 236, 240, 0.08);
    border-color: rgba(232, 236, 240, 0.15);
    color: #e8ecf0;
    transform: translateY(-2px);
}
.footer-socials a svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.footer-col h4 {
    font-family: 'SF Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.4);
    margin-bottom: 24px; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    color: rgba(200, 210, 220, 0.65);
    font-size: 0.95rem; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1.5;
}
.footer-col a::before {
    content: ''; display: inline-block;
    width: 0; height: 1px; background: currentColor;
    transition: width 0.3s; opacity: 0.5;
}
.footer-col a:hover { color: #e8ecf0; }
.footer-col a:hover::before { width: 12px; }

.footer-newsletter {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 20px; padding: 32px 36px;
    margin-bottom: 72px;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 40px; align-items: center;
    transition: border-color 0.3s;
}
.footer-newsletter:hover { border-color: rgba(232, 236, 240, 0.1); }
.footer-newsletter .news-text h4 {
    font-family: 'SF Mono', monospace;
    font-size: 1.05rem; font-weight: 500;
    color: #e8ecf0; margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.footer-newsletter .news-text p {
    color: rgba(200, 210, 220, 0.5);
    font-size: 0.9rem; line-height: 1.6;
}
.footer-newsletter form { display: flex; gap: 10px; align-items: center; }
.footer-newsletter input {
    flex: 1; min-width: 0;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 999px;
    color: #e8ecf0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; outline: none;
    transition: all 0.3s;
}
.footer-newsletter input::placeholder { color: rgba(200, 210, 220, 0.3); }
.footer-newsletter input:focus {
    border-color: rgba(232, 236, 240, 0.2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 4px rgba(232, 236, 240, 0.02);
}
.footer-newsletter button {
    padding: 14px 28px;
    background: #e8ecf0; color: #0f1116;
    border: none; border-radius: 999px;
    font-family: 'SF Mono', monospace;
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s;
    flex-shrink: 0; white-space: nowrap;
}
.footer-newsletter button:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(232, 236, 240, 0.15);
}
.footer-bottom {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap;
    gap: 20px; padding: 32px 0;
    border-top: 1px solid rgba(160, 170, 180, 0.05);
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    color: rgba(200, 210, 220, 0.4);
}
.footer-bottom .copyright { display: flex; align-items: center; gap: 10px; }
.footer-bottom .copyright b { color: rgba(232, 236, 240, 0.7); font-weight: 500; }
.footer-bottom .legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: rgba(200, 210, 220, 0.4); transition: color 0.3s; }
.footer-bottom .legal-links a:hover { color: #e8ecf0; }
.footer-bottom .made-with { display: flex; align-items: center; gap: 8px; color: rgba(200, 210, 220, 0.35); }
.footer-bottom .made-with .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #a0b8a0;
    box-shadow: 0 0 10px rgba(160, 184, 160, 0.6);
    animation: dotPulse 2s infinite;
}

/* ============ МОДАЛКА ============ */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(8, 9, 12, 0.85);
    backdrop-filter: blur(16px);
    z-index: 2000;
    justify-content: center; align-items: center;
    padding: 20px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #16181f;
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 30px; padding: 60px 52px;
    max-width: 560px; width: 100%;
    position: relative;
    animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal .close {
    position: absolute; top: 22px; right: 26px;
    font-size: 2rem; color: rgba(200, 210, 220, 0.3);
    cursor: pointer; background: none; border: none;
    transition: color 0.3s; line-height: 1;
}
.modal .close:hover { color: #e8ecf0; }
.modal h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 12px; }
.modal p { color: rgba(200, 210, 220, 0.6); margin-bottom: 34px; font-size: 1.1rem; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal input {
    padding: 20px 26px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 16px;
    color: #e8ecf0;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem; outline: none; transition: all 0.3s;
}
.modal input::placeholder { color: rgba(200, 210, 220, 0.3); }
.modal input:focus { border-color: rgba(232, 236, 240, 0.25); background: rgba(255, 255, 255, 0.03); }
.modal-success { display: none; text-align: center; padding: 20px 0; }
.modal-success.active { display: block; }
.modal-success svg { width: 60px; height: 60px; stroke: #a0b8a0; stroke-width: 2; fill: none; margin-bottom: 18px; }
.modal-success h3 { color: #a0b8a0; margin-bottom: 8px; font-size: 1.6rem; }

/* ============ FLOATING BTNS ============ */
.scroll-top-btn, .ai-toggle {
    position: fixed; bottom: 32px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(232, 236, 240, 0.05);
    border: 1px solid rgba(232, 236, 240, 0.1);
    backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 900;
}
.scroll-top-btn { left: 32px; opacity: 0; pointer-events: none; }
.scroll-top-btn.show { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover, .ai-toggle:hover { background: rgba(232, 236, 240, 0.1); transform: scale(1.08); }
.scroll-top-btn svg, .ai-toggle svg { width: 22px; height: 22px; stroke: #e8ecf0; stroke-width: 1.8; fill: none; }
.ai-toggle { right: 32px; }
.ai-toggle::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 14px; height: 14px;
    background: #a0b8a0; border-radius: 50%;
    border: 2px solid #0f1116;
    animation: dotPulse 2s infinite;
}

/* ============ WIDGET TRIGGERS ============ */
.widget-trigger {
    position: fixed; top: 50%;
    transform: translateY(-50%);
    z-index: 950;
    width: 46px; height: 110px;
    background: rgba(232, 236, 240, 0.04);
    border: 1px solid rgba(232, 236, 240, 0.08);
    backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: rgba(232, 236, 240, 0.6);
    font-family: 'SF Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.15em;
    writing-mode: vertical-rl; text-orientation: mixed;
    padding: 14px 0;
}
.widget-trigger:hover {
    background: rgba(232, 236, 240, 0.08);
    border-color: rgba(232, 236, 240, 0.15);
    color: #e8ecf0;
}
.widget-trigger.left { left: 0; border-radius: 0 14px 14px 0; border-left: none; }
.widget-trigger.right { right: 0; border-radius: 14px 0 0 14px; border-right: none; }
.widget-trigger.left.active { transform: translateY(-50%) translateX(360px); }
.widget-trigger.right.active { transform: translateY(-50%) translateX(-420px); }
.widget-trigger .indicator {
    width: 6px; height: 6px;
    background: #a0b8a0; border-radius: 50%;
    animation: dotPulse 2s infinite;
}

/* ============ SIDE PANELS ============ */
.side-panel {
    position: fixed; top: 0; bottom: 0;
    z-index: 940;
    width: 360px; max-width: 92vw;
    background: rgba(15, 17, 22, 0.98);
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(160, 170, 180, 0.06);
    display: flex; flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    overscroll-behavior: contain;
}
.side-panel.left { left: 0; transform: translateX(-100%); }
.side-panel.left.open { transform: translateX(0); }
.side-panel.right {
    right: 0; border-right: none;
    border-left: 1px solid rgba(160, 170, 180, 0.06);
    width: 420px;
    transform: translateX(100%);
}
.side-panel.right.open { transform: translateX(0); }
.side-panel-header {
    flex-shrink: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 24px 20px;
    border-bottom: 1px solid rgba(160, 170, 180, 0.06);
    background: rgba(15, 17, 22, 0.98);
    position: relative; z-index: 2;
}
.side-panel-header::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: -24px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(15,17,22,0.6), transparent);
    pointer-events: none; z-index: 1;
}
.side-panel-header h3 {
    font-size: 0.88rem;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(232, 236, 240, 0.85); font-weight: 500;
    display: flex; align-items: center; gap: 10px;
}
.side-panel-header h3::before {
    content: ''; width: 6px; height: 6px;
    background: #a0b8a0; border-radius: 50%;
    box-shadow: 0 0 12px rgba(160,184,160,0.8);
    animation: dotPulse 2s infinite;
}
.side-panel-header .close-panel {
    background: rgba(160, 170, 180, 0.04);
    border: 1px solid rgba(160, 170, 180, 0.06);
    width: 34px; height: 34px; border-radius: 50%;
    color: rgba(200, 210, 220, 0.5); font-size: 1.15rem;
    cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.side-panel-header .close-panel:hover {
    background: rgba(232, 236, 240, 0.08);
    color: #e8ecf0; border-color: rgba(232, 236, 240, 0.15);
    transform: rotate(90deg);
}
.side-panel-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 24px 22px 32px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.side-panel-scroll::-webkit-scrollbar { width: 6px; }
.side-panel-scroll::-webkit-scrollbar-track {
    background: rgba(160, 170, 180, 0.03);
    border-radius: 6px; margin: 8px 0;
}
.side-panel-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(200, 210, 220, 0.2), rgba(160, 170, 180, 0.15));
    border-radius: 6px;
    border: 1px solid rgba(160, 170, 180, 0.05);
}

.widget-group { margin-bottom: 22px; }
.widget-group-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding: 0 4px;
    font-family: 'SF Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(160, 170, 180, 0.45);
}
.widget-group-header::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, rgba(160, 170, 180, 0.1), transparent);
}
.widget-group-header .group-count {
    display: inline-block; font-size: 0.62rem;
    color: rgba(160, 170, 180, 0.35);
    padding: 2px 8px;
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 999px; letter-spacing: 0.1em;
}

.widget {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
    border: 1px solid rgba(160, 170, 180, 0.06);
    border-radius: 18px; padding: 0;
    margin-bottom: 12px;
    transition: border-color 0.3s;
    overflow: hidden; position: relative;
}
.widget:hover { border-color: rgba(232, 236, 240, 0.12); }
.widget.collapsed .widget-body { max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; }
.widget.collapsed .widget-title .w-chevron { transform: rotate(-90deg); }
.widget-title {
    font-family: 'SF Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(200, 210, 220, 0.6);
    padding: 16px 18px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none;
    transition: background 0.2s;
}
.widget-title:hover { background: rgba(232, 236, 240, 0.025); }
.widget-title:focus-visible { outline: 2px solid rgba(232, 236, 240, 0.4); outline-offset: -2px; border-radius: 18px; }
.widget-title .w-icon { display: inline-flex; align-items: center; gap: 9px; }
.widget-title .w-icon svg { width: 15px; height: 15px; stroke: rgba(200, 210, 220, 0.7); stroke-width: 1.5; fill: none; }
.widget-title .w-actions { display: inline-flex; align-items: center; gap: 8px; }
.widget-title .w-badge {
    font-size: 0.62rem; color: #a0b8a0;
    padding: 2px 7px; border-radius: 999px;
    background: rgba(160, 184, 160, 0.1);
    letter-spacing: 0.08em;
}
.widget-title .w-chevron { display: inline-flex; transition: transform 0.3s; color: rgba(200, 210, 220, 0.4); }
.widget-title .w-chevron svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.widget-body {
    padding: 0 18px 18px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s, opacity 0.3s;
    max-height: 900px; overflow: hidden;
}

.time-widget .big-time {
    font-family: 'SF Mono', monospace;
    font-size: 2.7rem; font-weight: 500;
    letter-spacing: -0.02em; color: #e8ecf0;
    line-height: 1; margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.time-widget .big-time .sec { font-size: 1.4rem; color: rgba(200, 210, 220, 0.45); margin-left: 4px; }
.time-widget .date {
    font-family: 'SF Mono', monospace;
    font-size: 0.82rem; letter-spacing: 0.08em;
    color: rgba(200, 210, 220, 0.55);
    text-transform: uppercase; text-align: center;
}
.time-widget .weekday { font-size: 0.9rem; color: rgba(200, 210, 220, 0.7); margin-top: 8px; text-align: center; }
.time-widget .time-meta {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(160, 170, 180, 0.06);
    font-family: 'SF Mono', monospace;
    font-size: 0.7rem;
    color: rgba(200, 210, 220, 0.4);
    letter-spacing: 0.08em; text-transform: uppercase;
}

.biorhythm-widget .birth-input { display: flex; gap: 8px; margin-bottom: 18px; }
.biorhythm-widget input[type="date"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 10px; padding: 10px 14px;
    color: #e8ecf0;
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem; outline: none;
    color-scheme: dark;
}
.biorhythm-widget input[type="date"]:focus { border-color: rgba(232, 236, 240, 0.2); }
.biorhythm-widget .bio-list { display: flex; flex-direction: column; gap: 14px; }
.bio-item { display: flex; flex-direction: column; gap: 6px; }
.bio-label {
    display: flex; justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(200, 210, 220, 0.65);
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.03em;
}
.bio-label b { font-weight: 500; color: #e8ecf0; font-variant-numeric: tabular-nums; }
.bio-bar {
    height: 6px;
    background: rgba(160, 170, 180, 0.08);
    border-radius: 3px; overflow: hidden; position: relative;
}
.bio-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(90deg, #6a7a8a, #aabaca);
    position: relative;
}
.bio-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: bioShine 3s ease-in-out infinite;
}
@keyframes bioShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.bio-bar-fill.physical { background: linear-gradient(90deg, #8a7a7a, #c0a0a0); }
.bio-bar-fill.emotional { background: linear-gradient(90deg, #7a8a9a, #a0c0d0); }
.bio-bar-fill.intellectual { background: linear-gradient(90deg, #8a9a7a, #b0c8a0); }
.bio-bar-fill.intuition { background: linear-gradient(90deg, #9a8a7a, #c8b8a0); }
.bio-bar-fill.creative { background: linear-gradient(90deg, #8a7a9a, #b8a0c8); }

.focus-widget .timer-display {
    font-family: 'SF Mono', monospace;
    font-size: 2.6rem; font-weight: 500;
    letter-spacing: -0.02em; color: #e8ecf0;
    line-height: 1; margin-bottom: 8px;
    font-variant-numeric: tabular-nums; text-align: center;
}
.focus-widget .timer-label {
    font-size: 0.8rem; color: rgba(200, 210, 220, 0.5);
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 18px; text-align: center;
}
.focus-widget .timer-presets {
    display: flex; gap: 6px; margin-bottom: 16px;
    justify-content: center; flex-wrap: wrap;
}
.focus-widget .preset {
    background: rgba(160, 170, 180, 0.05);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 999px; padding: 6px 14px;
    font-family: 'SF Mono', monospace;
    font-size: 0.72rem;
    color: rgba(200, 210, 220, 0.65);
    cursor: pointer; transition: all 0.3s;
}
.focus-widget .preset:hover,
.focus-widget .preset.active {
    background: rgba(232, 236, 240, 0.1);
    color: #e8ecf0;
    border-color: rgba(232, 236, 240, 0.2);
}
.focus-widget .timer-controls { display: flex; gap: 8px; justify-content: center; }
.focus-widget .timer-btn {
    background: rgba(160, 170, 180, 0.06);
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 999px; padding: 10px 22px;
    font-family: 'SF Mono', monospace;
    font-size: 0.78rem;
    color: #e8ecf0; cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.focus-widget .timer-btn:hover { background: rgba(232, 236, 240, 0.1); border-color: rgba(232, 236, 240, 0.2); }
.focus-widget .timer-btn.primary { background: #e8ecf0; color: #0f1116; border-color: #e8ecf0; }

.weather-widget .weather-main { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.weather-widget .weather-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(160, 170, 180, 0.05);
    border-radius: 14px; font-size: 1.8rem; flex-shrink: 0;
}
.weather-widget .weather-temp {
    font-family: 'SF Mono', monospace;
    font-size: 2rem; font-weight: 500;
    letter-spacing: -0.02em; color: #e8ecf0; line-height: 1;
}
.weather-widget .weather-desc { font-size: 0.85rem; color: rgba(200, 210, 220, 0.55); margin-top: 4px; }
.weather-widget .weather-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(160, 170, 180, 0.06);
    font-family: 'SF Mono', monospace;
    font-size: 0.78rem;
}
.weather-widget .weather-details span {
    display: flex; justify-content: space-between;
    color: rgba(200, 210, 220, 0.5);
}
.weather-widget .weather-details b { color: #e8ecf0; font-weight: 500; }

.ai-status-widget .status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(160, 170, 180, 0.05);
    border-radius: 10px; padding: 14px 10px;
    text-align: center; transition: all 0.3s;
}
.status-item:hover { border-color: rgba(232, 236, 240, 0.1); background: rgba(232, 236, 240, 0.02); }
.status-item .s-value {
    font-family: 'SF Mono', monospace;
    font-size: 1.2rem; font-weight: 500;
    color: #e8ecf0; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.status-item .s-label {
    font-size: 0.65rem;
    color: rgba(200, 210, 220, 0.45);
    margin-top: 5px;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.ai-mood {
    display: flex; align-items: center; gap: 12px;
    margin-top: 14px; padding: 14px 16px;
    background: rgba(160, 184, 160, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(160, 184, 160, 0.1);
}
.ai-mood .mood-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #a0b8a0, #6a8a6a);
    flex-shrink: 0;
    animation: moodPulse 3s ease-in-out infinite;
}
@keyframes moodPulse {
    0%,100% { box-shadow: 0 0 10px rgba(160, 184, 160, 0.3); }
    50% { box-shadow: 0 0 20px rgba(160, 184, 160, 0.7); }
}
.ai-mood .mood-text { font-size: 0.82rem; color: rgba(200, 210, 220, 0.75); line-height: 1.4; }
.ai-mood .mood-text b {
    display: block; color: #a0b8a0;
    font-family: 'SF Mono', monospace;
    font-size: 0.78rem; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 2px;
}

.network-widget .sparkline {
    width: 100%; height: 56px;
    display: block; margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(160, 170, 180, 0.02);
}
.network-widget .network-stats {
    display: flex; justify-content: space-between;
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem; color: rgba(200, 210, 220, 0.5);
    letter-spacing: 0.03em;
}
.network-widget .network-stats b { color: #e8ecf0; font-weight: 500; }

.tg-feed-widget .tg-filter {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(160, 170, 180, 0.05);
}
.tg-filter .filter-chip {
    background: rgba(160, 170, 180, 0.05);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 999px; padding: 4px 12px;
    font-size: 0.68rem; color: rgba(200, 210, 220, 0.6);
    cursor: pointer; transition: all 0.3s;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.03em;
}
.tg-filter .filter-chip:hover { color: #e8ecf0; border-color: rgba(232, 236, 240, 0.15); }
.tg-filter .filter-chip.active {
    background: rgba(232, 236, 240, 0.1);
    color: #e8ecf0;
    border-color: rgba(232, 236, 240, 0.2);
}
.tg-feed-widget .tg-feed-scroll {
    max-height: 340px; overflow-y: auto;
    padding-right: 4px; margin-right: -6px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    overscroll-behavior: contain;
}
.tg-feed-widget .tg-feed-scroll::-webkit-scrollbar { width: 4px; }
.tg-feed-widget .tg-feed-scroll::-webkit-scrollbar-thumb { background: rgba(200, 210, 220, 0.15); border-radius: 4px; }
.tg-feed-widget .tg-post {
    padding: 14px 0;
    border-bottom: 1px solid rgba(160, 170, 180, 0.05);
    transition: all 0.3s; cursor: pointer;
}
.tg-feed-widget .tg-post:last-child { border-bottom: none; padding-bottom: 0; }
.tg-feed-widget .tg-post:hover {
    padding-left: 8px; padding-right: 8px;
    margin: 0 -8px; border-radius: 8px;
    background: rgba(232, 236, 240, 0.02);
}
.tg-post-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
    font-family: 'SF Mono', monospace;
    font-size: 0.72rem;
}
.tg-post-channel { color: #8a9aaa; font-weight: 500; letter-spacing: 0.03em; }
.tg-post-time { color: rgba(200, 210, 220, 0.35); margin-left: auto; }
.tg-post-content {
    font-size: 0.88rem;
    color: rgba(200, 210, 220, 0.75);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tg-post:hover .tg-post-content { color: #e8ecf0; }

.quick-actions-widget .action-list { display: flex; flex-direction: column; gap: 8px; }
.quick-action {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(160, 170, 180, 0.05);
    border-radius: 10px; cursor: pointer;
    transition: all 0.3s;
    font-size: 0.88rem;
    color: rgba(200, 210, 220, 0.75);
}
.quick-action:hover {
    background: rgba(232, 236, 240, 0.05);
    border-color: rgba(232, 236, 240, 0.1);
    color: #e8ecf0;
    transform: translateX(2px);
}
.quick-action .qa-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(160, 170, 180, 0.05);
    border-radius: 8px; flex-shrink: 0; font-size: 0.95rem;
}
.quick-action .qa-kbd {
    margin-left: auto;
    font-family: 'SF Mono', monospace;
    font-size: 0.68rem;
    color: rgba(200, 210, 220, 0.35);
    padding: 2px 6px;
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 4px;
}

.currency-widget .cur-list { display: flex; flex-direction: column; gap: 12px; }
.cur-item {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(160, 170, 180, 0.04);
}
.cur-item:last-child { border-bottom: none; padding-bottom: 0; }
.cur-item .cur-name { color: rgba(200, 210, 220, 0.65); letter-spacing: 0.05em; }
.cur-item .cur-value { color: #e8ecf0; font-weight: 500; font-variant-numeric: tabular-nums; }
.cur-item .cur-change { font-size: 0.75rem; margin-left: 8px; transition: color 0.3s; }
.cur-item .cur-change.up { color: #a0b8a0; }
.cur-item .cur-change.down { color: #c0a0a0; }

.activity-widget .activity-scroll {
    max-height: 200px; overflow-y: auto;
    padding-right: 4px; margin-right: -6px;
    font-family: 'SF Mono', monospace;
    font-size: 0.78rem; line-height: 1.9;
    color: rgba(200, 210, 220, 0.55);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.activity-widget .activity-scroll::-webkit-scrollbar { width: 4px; }
.activity-widget .activity-scroll::-webkit-scrollbar-thumb { background: rgba(200, 210, 220, 0.15); border-radius: 4px; }
.activity-widget .activity-scroll > div { padding: 2px 0; transition: color 0.2s; }
.activity-widget .activity-scroll > div:hover { color: rgba(200, 210, 220, 0.85); }

.shortcuts-widget .shortcut-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(200, 210, 220, 0.7);
    border-bottom: 1px solid rgba(160, 170, 180, 0.04);
}
.shortcuts-widget .shortcut-row:last-child { border-bottom: none; padding-bottom: 0; }
.shortcut-row kbd {
    font-family: 'SF Mono', monospace;
    font-size: 0.7rem;
    color: rgba(232, 236, 240, 0.85);
    padding: 3px 8px;
    background: rgba(160, 170, 180, 0.06);
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 5px; letter-spacing: 0.05em;
}

.cmd-palette-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(8, 9, 12, 0.8);
    backdrop-filter: blur(12px);
    z-index: 2100;
    justify-content: center; align-items: flex-start;
    padding-top: 15vh;
}
.cmd-palette-overlay.active { display: flex; }
.cmd-palette {
    width: 620px; max-width: 90vw;
    background: #16181f;
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 20px; overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
.cmd-input-row {
    display: flex; align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(160, 170, 180, 0.06);
    gap: 12px;
}
.cmd-input-row svg { width: 20px; height: 20px; stroke: rgba(200, 210, 220, 0.4); stroke-width: 1.5; fill: none; flex-shrink: 0; }
.cmd-input-row input {
    flex: 1; background: transparent; border: none;
    outline: none; color: #e8ecf0;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
}
.cmd-input-row input::placeholder { color: rgba(200, 210, 220, 0.35); }
.cmd-input-row kbd {
    font-family: 'SF Mono', monospace;
    font-size: 0.72rem;
    color: rgba(200, 210, 220, 0.4);
    padding: 4px 8px;
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 6px;
}
.cmd-list { max-height: 400px; overflow-y: auto; padding: 8px; }
.cmd-list::-webkit-scrollbar { width: 4px; }
.cmd-list::-webkit-scrollbar-thumb { background: rgba(200, 210, 220, 0.15); border-radius: 4px; }
.cmd-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 12px;
    cursor: pointer; transition: background 0.2s;
    font-size: 1.05rem;
    color: rgba(200, 210, 220, 0.85);
}
.cmd-item:hover, .cmd-item.selected { background: rgba(232, 236, 240, 0.06); color: #e8ecf0; }
.cmd-item .c-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(160, 170, 180, 0.06);
    border-radius: 8px; flex-shrink: 0; font-size: 1rem;
}
.cmd-item .c-hint {
    margin-left: auto;
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem;
    color: rgba(200, 210, 220, 0.35);
}

.panel-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 9, 12, 0.5);
    backdrop-filter: blur(4px);
    z-index: 935; opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.panel-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-widget-bar {
    display: none; position: fixed;
    bottom: 96px; left: 50%;
    transform: translateX(-50%);
    z-index: 910; gap: 6px; padding: 8px;
    background: rgba(22, 24, 31, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 9999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.mobile-widget-bar button {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: transparent; border: none;
    color: rgba(200, 210, 220, 0.75);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; font-size: 1.1rem;
}
.mobile-widget-bar button:hover, .mobile-widget-bar button.active {
    background: rgba(232, 236, 240, 0.08);
    color: #e8ecf0;
}

.toast-container {
    position: fixed; bottom: 100px; right: 32px;
    z-index: 3000;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: rgba(22, 24, 31, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(160, 170, 180, 0.1);
    border-radius: 14px;
    font-size: 0.9rem; color: #e8ecf0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(120%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    pointer-events: auto; max-width: 380px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-success { border-left: 3px solid #a0b8a0; }
.toast.toast-info { border-left: 3px solid #8a9aaa; }
.toast.toast-error { border-left: 3px solid #c0a0a0; }
.toast .toast-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.parallax-y { will-change: transform; }

.ai-chat {
    position: fixed; bottom: 100px; right: 32px;
    width: 400px; max-width: calc(100vw - 32px);
    background: #16181f;
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 24px;
    display: none; flex-direction: column;
    max-height: min(580px, calc(100vh - 160px));
    overflow: hidden; z-index: 910;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ai-chat.open { display: flex; animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ai-chat-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(160, 170, 180, 0.06);
    display: flex; justify-content: space-between; align-items: center;
}
.ai-chat-header .name {
    font-family: 'SF Mono', monospace;
    font-size: 0.95rem; color: #e8ecf0;
}
.ai-chat-header .name span { color: #8a9aaa; display: block; font-size: 0.72rem; letter-spacing: 0.05em; margin-top: 2px; }
.ai-chat-header .close-btn { background: none; border: none; color: rgba(200, 210, 220, 0.3); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.ai-chat-messages {
    flex: 1; padding: 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
    min-height: 240px;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(200, 210, 220, 0.15); border-radius: 4px; }
.msg {
    padding: 12px 16px; border-radius: 14px;
    font-size: 0.95rem; line-height: 1.5;
    max-width: 88%; word-wrap: break-word;
}
.msg.bot { background: rgba(160, 170, 180, 0.05); color: rgba(232, 236, 240, 0.85); align-self: flex-start; }
.msg.user { background: rgba(232, 236, 240, 0.1); color: #e8ecf0; align-self: flex-end; }
.chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 8px 16px 14px;
    border-top: 1px solid rgba(160, 170, 180, 0.06);
}
.chip {
    background: rgba(160, 170, 180, 0.05);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 999px; padding: 6px 14px;
    font-size: 0.72rem;
    color: rgba(200, 210, 220, 0.7);
    cursor: pointer; transition: all 0.3s;
}
.chip:hover { background: rgba(232, 236, 240, 0.08); color: #e8ecf0; }
.ai-chat-input {
    display: flex; gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(160, 170, 180, 0.06);
}
.ai-chat-input input {
    flex: 1; min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(160, 170, 180, 0.08);
    border-radius: 999px;
    padding: 10px 18px;
    color: #e8ecf0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; outline: none;
}
.ai-chat-input button {
    background: #e8ecf0; color: #0f1116;
    border: none; border-radius: 999px;
    padding: 10px 18px;
    font-family: 'SF Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase;
    cursor: pointer; flex-shrink: 0;
}

.hal-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.hal-grid > .hal-panel {
    text-align: center; padding: 60px 30px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(160,170,180,0.06);
    border-radius: 24px;
}
.hal-grid > .hal-terminal {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(160,170,180,0.06);
    border-radius: 20px; padding: 26px;
    font-family: 'SF Mono', monospace;
    font-size: 1rem;
    height: 420px; overflow-y: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .container { padding: 0 26px; }
    body { font-size: 19px; }
    .pricing-grid { gap: 18px; }
    .price-card { padding: 40px 30px; }
    .widget-trigger.left.active { transform: translateY(-50%) translateX(320px); }
    .widget-trigger.right.active { transform: translateY(-50%) translateX(-380px); }
    .side-panel { width: 320px; }
    .side-panel.right { width: 380px; }
    .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
    .footer-top .footer-col:nth-child(4) { grid-column: 2 / span 2; padding-top: 8px; }
    .footer-newsletter { grid-template-columns: 1fr; gap: 24px; padding: 28px 30px; }
}

@media (max-width: 900px) {
    body { font-size: 17px; }
    .container { padding: 0 22px; }
    .navbar { padding: 14px 22px; flex-wrap: wrap; }
    .navbar.scrolled { padding: 12px 22px; }
    .hamburger { display: flex; }
    .nav-controls {
        display: none; position: fixed;
        top: 0; left: 0; right: 0;
        padding: 100px 22px 36px;
        background: rgba(15, 17, 22, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; gap: 20px;
        border-bottom: 1px solid rgba(160, 170, 180, 0.06);
        height: 100vh; overflow-y: auto; z-index: 99;
    }
    .nav-controls.open { display: flex; }
    .segments { flex-direction: column; width: 100%; background: transparent; border: none; padding: 0; gap: 6px; }
    .segments button {
        text-align: left; padding: 18px 22px;
        border-radius: 14px; font-size: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(160, 170, 180, 0.05);
    }
    .segments button.active { background: rgba(232, 236, 240, 0.06); }
    .nav-extra { width: 100%; padding: 18px 22px; font-size: 1rem; text-align: center; }
    .hamburger { z-index: 101; position: relative; }
    .hero { padding: 140px 0 80px; min-height: auto; }
    .hero-meta { display: none; }
    .scroll-hint { display: none; }
    section { padding: 80px 0; }
    .section-head { margin-bottom: 3rem; max-width: 100%; }
    .bento { grid-template-columns: 1fr; gap: 16px; }
    .bento-3, .bento-2 { grid-column: span 1; }
    #three-container { height: 440px; border-radius: 24px; }
    .roi-wrap { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
    .stack-card { position: relative; top: 0; padding: 40px 28px; min-height: auto; margin-bottom: 22px; }
    .stack-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
    .case-grid { grid-template-columns: 1fr; gap: 18px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 52px; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; }
    .footer-newsletter { padding: 24px 24px; margin-bottom: 52px; border-radius: 18px; }
    .footer-newsletter form { flex-direction: column; align-items: stretch; }
    .footer-newsletter button { width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 0; }
    .widget-trigger { display: none; }
    .side-panel { width: 88vw; max-width: 400px; }
    .side-panel.right { width: 88vw; max-width: 440px; }
    .mobile-widget-bar { display: flex; }
    .hal-grid { grid-template-columns: 1fr; }
    .hal-grid > .hal-terminal { height: 320px; }
    .toast-container { bottom: 140px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }
    footer { padding: 72px 0 0; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .navbar { padding: 12px 20px; }
    .logo-text .tagline { display: none; }
    .logo-avatar { width: 38px; height: 38px; }
    .logo-text .wordmark { font-size: 1.3rem; }
    .hero { padding: 120px 0 60px; }
    .hero .cta-group { flex-direction: column; width: 100%; }
    .hero .cta-group .btn { width: 100%; }
    section { padding: 68px 0; }
    .section-head { margin-bottom: 2.6rem; }
    #three-container { height: 360px; border-radius: 20px; }
    .graph-overlay-tl { top: 18px; left: 18px; font-size: 0.65rem; }
    .graph-overlay-br { bottom: 18px; right: 18px; gap: 14px; font-size: 0.62rem; }
    .bento { gap: 14px; }
    .bento-item { padding: 28px 22px; border-radius: 22px; }
    .roi-wrap { padding: 30px 20px; border-radius: 24px; gap: 30px; }
    .roi-output { padding: 30px 18px; border-radius: 20px; }
    .roi-output .value { font-size: 1.9rem; }
    .stack-card { padding: 30px 22px; border-radius: 22px; }
    .case-card { padding: 28px 22px; border-radius: 22px; }
    .price-card { padding: 36px 26px; border-radius: 22px; }
    .faq-item { padding: 26px 0; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-top .footer-col:nth-child(4) { grid-column: auto; }
    .footer-bottom .legal-links { gap: 16px; }
    .modal { padding: 36px 24px; border-radius: 22px; }
    .btn { padding: 17px 32px; min-height: 52px; }
    .scroll-top-btn, .ai-toggle { width: 50px; height: 50px; bottom: 24px; }
    .scroll-top-btn { left: 20px; }
    .ai-toggle { right: 20px; }
    .mobile-widget-bar { bottom: 88px; }
    .cmd-input-row input { font-size: 1rem; }
    .ai-chat { bottom: 96px; right: 16px; }
    .side-panel-scroll { padding: 20px 18px 28px; }
    .widget-title { padding: 14px 16px; }
    .widget-body { padding: 0 16px 16px; }
    .side-panel-header { padding: 20px 20px 18px; }
    .price-card.featured::before { top: 18px; right: -55px; font-size: 0.6rem; padding: 5px 55px; }
    .footer-brand .logo { margin-bottom: 18px; }
    .footer-newsletter { padding: 22px 20px; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .hero { padding: 108px 0 50px; }
    section { padding: 56px 0; }
    #three-container { height: 300px; }
    .graph-overlay-br { flex-direction: column; gap: 10px; align-items: flex-end; }
    .bento-item { padding: 24px 18px; }
    .roi-output .value { font-size: 1.6rem; }
    .stack-card { padding: 26px 18px; }
    .case-card { padding: 24px 18px; }
    .price-card { padding: 32px 22px; }
    .price-card .plan-price { font-size: 2.2rem; }
    .footer-bottom { font-size: 0.82rem; }
    .scroll-top-btn, .ai-toggle { width: 46px; height: 46px; bottom: 18px; }
    .scroll-top-btn { left: 16px; }
    .ai-toggle { right: 16px; }
    .mobile-widget-bar { bottom: 78px; padding: 6px; gap: 4px; }
    .mobile-widget-bar button { width: 40px; height: 40px; font-size: 1rem; }
    .side-panel { width: 94vw; max-width: none; }
    .side-panel.right { width: 94vw; max-width: none; }
    .time-widget .big-time { font-size: 2.2rem; }
    .focus-widget .timer-display { font-size: 2rem; }
    .side-panel-scroll { padding: 18px 16px 24px; }
    .footer-newsletter { padding: 20px 18px; }
    .footer-socials a { width: 38px; height: 38px; }
}

@media (max-width: 375px) {
    body { font-size: 14px; }
    .container { padding: 0 14px; }
    section { padding: 48px 0; }
    #three-container { height: 260px; }
    .price-card .plan-price { font-size: 2rem; }
    .mobile-widget-bar button { width: 38px; height: 38px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .grain, .marquee-track { animation: none; }
    .bio-bar-fill::after { animation: none; }
}

@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

@media (min-width: 1600px) {
    .container { max-width: 1400px; }
    body { font-size: 21px; }
}

@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
    }
    .scroll-top-btn { left: max(32px, env(safe-area-inset-left)); }
    .ai-toggle { right: max(32px, env(safe-area-inset-right)); }
    footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .side-panel-scroll { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
/* WordPress primary menu integration. */
.nav-controls.xewex-menu {
    list-style: none;
    margin: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(160, 170, 180, 0.04);
    border: 1px solid rgba(160, 170, 180, 0.05);
    border-radius: 9999px;
}
.nav-controls.xewex-menu li { list-style: none; margin: 0; padding: 0; }
.nav-controls.xewex-menu a {
    display: block;
    padding: 10px 18px;
    border-radius: 9999px;
    color: rgba(160, 170, 180, 0.62);
    font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s, background .3s;
}
.nav-controls.xewex-menu a:hover,
.nav-controls.xewex-menu .current-menu-item > a {
    color: #e8ecf0;
    background: rgba(232, 236, 240, 0.08);
}
@media (max-width: 900px) {
    .nav-controls.xewex-menu {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99;
        width: 100%;
        height: 100vh;
        padding: 100px 22px 36px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        overflow-y: auto;
        background: rgba(15, 17, 22, 0.985);
        border: 0;
        border-radius: 0;
    }
    .nav-controls.xewex-menu.open { display: flex; }
    .nav-controls.xewex-menu li,
    .nav-controls.xewex-menu a { width: 100%; }
    .nav-controls.xewex-menu a {
        padding: 16px 18px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(160, 170, 180, 0.06);
        border-radius: 14px;
        font-size: .95rem;
    }
}