/* ============================================================
   8iAVATAR — xAI AESTHETIC · ENHANCED
   Monochrome. Minimal. High contrast. Big type. No decoration.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.005em;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; 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; }

.mono { font-family: 'JetBrains Mono', monospace; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #404040; }
* { scrollbar-width: thin; scrollbar-color: #2a2a2a #0a0a0a; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed; inset: 0;
    background: #0a0a0a;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { width: min(88vw, 440px); text-align: left; }
.preloader-mark {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 48px;
    color: #fff;
    display: flex; align-items: baseline; gap: 2px;
}
.preloader-mark .dim { color: #404040; }
.preloader-bar {
    height: 1px; background: #1a1a1a;
    position: relative; overflow: hidden;
    margin-bottom: 20px;
}
.preloader-bar-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: #ffffff; width: 0%;
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.preloader-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: #4b5563;
}
.preloader-counter { color: #fff; font-weight: 600; }
.preloader-counter span { color: #4b5563; margin-left: 2px; }
.preloader-status { color: #6b7280; }
.preloader-status::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #fff;
    margin-left: 8px;
    vertical-align: middle;
    animation: blink 0.8s steps(2) infinite;
}

/* ============================================================
   NOISE OVERLAY
   ============================================================ */
.noise-overlay {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9996;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: noiseShift 8s steps(6) infinite;
}
@keyframes noiseShift {
    0% { transform: translate(0,0); }
    20% { transform: translate(-4%, 3%); }
    40% { transform: translate(3%, -2%); }
    60% { transform: translate(-2%, -3%); }
    80% { transform: translate(4%, 2%); }
    100% { transform: translate(0,0); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
    display: none;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 99997;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
}
.cursor-dot {
    width: 5px; height: 5px;
    background: #ffffff;
    border-radius: 50%;
    margin-left: -2.5px; margin-top: -2.5px;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.2s;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    margin-left: -18px; margin-top: -18px;
    transform: translate3d(0, 0, 0);
    transition: width 0.28s cubic-bezier(0.16,1,0.3,1),
                height 0.28s cubic-bezier(0.16,1,0.3,1),
                margin 0.28s cubic-bezier(0.16,1,0.3,1),
                background 0.2s ease,
                border-color 0.2s ease,
                opacity 0.2s ease;
}
.cursor-ring.hover {
    width: 64px; height: 64px;
    margin-left: -32px; margin-top: -32px;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.7);
}
.cursor-ring.click {
    width: 22px; height: 22px;
    margin-left: -11px; margin-top: -11px;
    background: #ffffff;
    border-color: #ffffff;
}
.cursor-ring.hidden, .cursor-dot.hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor,
    body.custom-cursor a,
    body.custom-cursor button,
    body.custom-cursor input,
    body.custom-cursor textarea,
    body.custom-cursor select,
    body.custom-cursor label,
    body.custom-cursor [role="button"] { cursor: none; }
    body.custom-cursor .cursor-dot,
    body.custom-cursor .cursor-ring { display: block; }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px;
    background: #ffffff;
    z-index: 10000; width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255,255,255,0.35);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, .kicker, .btn, .nav-channel {
    font-weight: 700;
    letter-spacing: -0.03em;
    word-wrap: break-word;
}
h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}
h2 {
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.035em;
}
h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
}
p, li {
    font-size: 18px;
    line-height: 1.6;
    color: #d1d5db;
    letter-spacing: -0.005em;
}
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: #9ca3af; }

.kicker {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 2rem;
    padding: 0;
}
.kicker::before { content: '[ '; color: #4b5563; }
.kicker::after { content: ' ]'; color: #4b5563; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 28px;
    border-radius: 0;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none;
    min-height: 52px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.btn:hover { background: #ffffff; color: #0a0a0a; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: #ffffff; color: #0a0a0a; }
.btn-primary:hover { background: #d1d5db; border-color: #d1d5db; }
.btn-ghost { border-color: #2a2a2a; color: #d1d5db; }
.btn-ghost:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 32px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: nowrap; gap: 16px;
    transition: padding 0.3s, background 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.navbar.scrolled { padding: 14px 32px; background: rgba(10, 10, 10, 0.95); }
.navbar.hide { transform: translateY(-100%); }

.logo {
    display: inline-flex; align-items: center;
    flex-shrink: 0; text-decoration: none;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.15s;
}
.logo:hover { opacity: 0.75; }
.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: baseline;
    position: relative;
}
.logo-text .num8 { font-weight: 900; font-size: 1.6rem; }
.logo-text .letterI { font-weight: 900; font-size: 1.6rem; font-style: italic; margin-left: -2px; }
.logo-text .avatar {
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
    margin-left: 1px;
    color: #9ca3af;
}
.logo:hover .logo-text .num8,
.logo:hover .logo-text .letterI { animation: glitchShift 0.3s ease; }
@keyframes glitchShift {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
}

.nav-controls { display: flex; align-items: center; gap: 8px; }
.nav-channel {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #d1d5db;
    padding: 11px 18px;
    border: 1px solid #1a1a1a;
    transition: all 0.15s;
    white-space: nowrap;
    background: transparent;
}
.nav-channel svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-channel:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.nav-channel.max { border-color: #ffffff; color: #ffffff; }
.nav-channel.max:hover { background: #ffffff; color: #0a0a0a; }
.nav-cmdk {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    color: #6b7280;
    padding: 11px 14px;
    border: 1px solid #1a1a1a;
    transition: all 0.15s;
    cursor: pointer;
    background: transparent;
}
.nav-cmdk:hover { border-color: #ffffff; color: #ffffff; }
.nav-cmdk kbd {
    font-family: inherit;
    font-size: 0.68rem;
    padding: 2px 6px;
    border: 1px solid #2a2a2a;
    color: #9ca3af;
}
@media (max-width: 900px) { .nav-cmdk { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh; min-height: 100svh;
    padding: 220px 0 120px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #1a1a1a;
}
.hero-canvas {
    position: absolute; inset: 0;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { margin-bottom: 2.5rem; max-width: 1200px; }
.hero h1 .dim { color: #404040; }
.hero h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-30deg);
    filter: blur(8px);
    transform-origin: 50% 100%;
    animation: wordReveal 1.1s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes wordReveal {
    to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}
.hero .lead {
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    max-width: 800px;
    color: #9ca3af;
    margin-bottom: 3rem;
    line-height: 1.55;
}
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-status {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 2rem;
}
.hero-status .dot {
    width: 8px; height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-meta {
    position: absolute; right: 32px; bottom: 60px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #6b7280;
    text-transform: uppercase;
    line-height: 2;
    z-index: 3;
}
.hero-meta strong { color: #ffffff; font-weight: 600; }
.hero-meta .live-time { color: #ffffff; }

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    left: 50%; bottom: 32px;
    transform: translateX(-50%);
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: #4b5563;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s;
}
.scroll-hint-line {
    width: 1px; height: 44px;
    background: linear-gradient(180deg, #4b5563, transparent);
    position: relative;
    overflow: hidden;
}
.scroll-hint-line::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 1px; height: 12px;
    background: #ffffff;
    animation: scrollLine 2s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(440%); }
}
.hero.scrolled .scroll-hint { opacity: 0; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
    padding: 40px 0;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
}
.trust-strip::before,
.trust-strip::after {
    content: '';
    position: absolute; top: 0; bottom: 0;
    width: 140px; z-index: 2; pointer-events: none;
}
.trust-strip::before { left: 0; background: linear-gradient(90deg, #0a0a0a, transparent); }
.trust-strip::after { right: 0; background: linear-gradient(270deg, #0a0a0a, transparent); }
.trust-label {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 28px;
}
.trust-track {
    display: inline-flex; gap: 64px;
    animation: trustScroll 60s linear infinite;
    will-change: transform;
    padding-left: 40px;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
.trust-item {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #9ca3af;
    white-space: nowrap;
    transition: color 0.2s;
}
.trust-item:hover { color: #ffffff; }
.trust-item .trust-icon {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #1a1a1a;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.trust-item:hover .trust-icon { border-color: #ffffff; }
.trust-item .trust-icon svg {
    width: 16px; height: 16px;
    stroke: #9ca3af;
    stroke-width: 1.6; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.2s;
}
.trust-item:hover .trust-icon svg { stroke: #ffffff; }
@keyframes trustScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 140px 0; position: relative; border-bottom: 1px solid #1a1a1a; }
.section-head { max-width: 900px; margin-bottom: 5rem; }
.section-head h2 { margin-bottom: 1.5rem; }
.section-head p {
    font-size: 1.15rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 720px;
}

/* ============================================================
   PATENT
   ============================================================ */
.patent-block {
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
    padding: 80px 64px;
}
.patent-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
    margin-bottom: 72px;
}
.patent-header h2 { margin-bottom: 1.5rem; max-width: 800px; }
.patent-header p {
    font-size: 1.15rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 720px;
}
.patent-number {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 16px 24px;
    border: 1px solid #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.patent-number::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    animation: patentShine 4s ease-in-out infinite;
}
@keyframes patentShine {
    0%, 60% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.patent-number svg {
    width: 18px; height: 18px;
    stroke: currentColor; stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.patent-number b { font-weight: 700; }

.patent-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
    margin-bottom: 72px;
}
.patent-adv {
    padding: 48px 40px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.25s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}
.patent-adv:hover { background: #111111; }
.patent-adv::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.patent-adv:hover::before { transform: scaleX(1); }
.patent-adv .adv-num {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 24px;
    color: #ffffff;
}
.patent-adv .adv-num small {
    font-size: 0.55em;
    color: #6b7280;
    font-weight: 500;
    margin-left: 4px;
}
.patent-adv h3 { font-size: 1.25rem; margin-bottom: 12px; }
.patent-adv p { font-size: 0.95rem; color: #9ca3af; line-height: 1.55; }

.patent-vs { border: 1px solid #1a1a1a; }
.patent-vs-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 22px 32px;
    border-bottom: 1px solid #1a1a1a;
}
.patent-vs-grid { display: grid; grid-template-columns: 1fr 1fr; }
.patent-vs-col { padding: 40px 36px; }
.patent-vs-col:first-child { border-right: 1px solid #1a1a1a; }
.patent-vs-col h4 {
    font-size: 0.95rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-weight: 600;
}
.patent-vs-col.metagraff h4 { color: #ffffff; }
.patent-vs-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.patent-vs-col ul li {
    display: flex; align-items: flex-start; gap: 14px;
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.55;
    transition: color 0.2s;
}
.patent-vs-col ul li svg {
    width: 18px; height: 18px;
    stroke: currentColor; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0; margin-top: 4px;
}
.patent-vs-col.classic ul li { color: #4b5563; }
.patent-vs-col.metagraff ul li svg { stroke: #ffffff; }
.patent-vs-col.metagraff ul li:hover { color: #ffffff; }

/* ============================================================
   SAFETY GRID
   ============================================================ */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.safety-card {
    padding: 48px 40px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}
.safety-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.045), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.safety-card:hover { background: #111111; }
.safety-card:hover::after { opacity: 1; }
.safety-card .safety-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 20px;
}
.safety-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.safety-card p { font-size: 0.95rem; color: #9ca3af; line-height: 1.55; }
.safety-card .safety-mark {
    position: absolute; top: 32px; right: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.safety-card:hover .safety-mark { transform: scale(1.15); }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.int-card {
    padding: 40px 32px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.25s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.int-card:hover { background: #111111; }
.int-card .int-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 24px;
    display: block;
}
.int-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.int-card p { font-size: 0.9rem; color: #6b7280; line-height: 1.5; }

/* ============================================================
   BENTO
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.bento-item {
    padding: 56px 44px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}
.bento-item::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.bento-item:hover { background: #111111; }
.bento-item:hover::before { opacity: 1; }
.bento-item .bento-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 40px;
}
.bento-item h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin-bottom: 14px; letter-spacing: -0.025em; }
.bento-item p { font-size: 1rem; color: #9ca3af; line-height: 1.55; }
.bento-item .bento-num {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 16px;
    color: #ffffff;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.bento-item:hover .bento-num { transform: scale(1.04); }
.bento-item .bento-num small {
    font-size: 0.5em;
    color: #6b7280;
    font-weight: 500;
    margin-left: 4px;
}
.bento-3 { grid-column: span 3; }
.bento-2 { grid-column: span 2; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-preview { border: 1px solid #1a1a1a; padding: 48px 40px; }
.dash-status {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 40px;
}
.dash-status .dot {
    width: 6px; height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.metric-item {
    padding: 36px 28px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.25s;
}
.metric-item:hover { background: #111111; }
.metric-item .m-value {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 14px;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.metric-item .m-label { font-size: 0.88rem; color: #6b7280; line-height: 1.5; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.process-step {
    padding: 48px 40px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.25s;
    position: relative;
}
.process-step:hover { background: #111111; }
.process-step .step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #4b5563;
    margin-bottom: 32px;
    display: block;
    transition: color 0.25s;
}
.process-step:hover .step-num { color: #ffffff; }
.process-step h3 { font-size: 1.3rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.process-step p { font-size: 0.95rem; color: #9ca3af; line-height: 1.55; margin-bottom: 20px; }
.process-step .step-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    display: block;
}

/* ============================================================
   CASES
   ============================================================ */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.case-card {
    padding: 56px 48px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.25s;
    position: relative;
    overflow: hidden;
}
.case-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.case-card:hover { background: #111111; }
.case-card:hover::before { transform: scaleX(1); }
.case-card .case-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 28px;
    display: block;
}
.case-card h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 18px; letter-spacing: -0.025em; }
.case-card p { font-size: 1.05rem; color: #9ca3af; line-height: 1.55; margin-bottom: 32px; }
.case-card .case-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid #1a1a1a;
}
.case-card .cm-value {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.case-card .cm-label { font-size: 0.85rem; color: #6b7280; line-height: 1.4; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 140px 0; }
.contact-wrapper {
    border: 1px solid #1a1a1a;
    padding: 80px 64px;
    background: #0a0a0a;
}
.contact-header { text-align: center; margin-bottom: 72px; }
.contact-header h2 { margin-bottom: 22px; }
.contact-header p {
    font-size: 1.15rem;
    color: #9ca3af;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.quick-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
    margin-bottom: 72px;
}
.channel-card {
    padding: 48px 40px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.channel-card:hover { background: #ffffff; color: #0a0a0a; }
.channel-card:hover .ch-label,
.channel-card:hover .ch-value,
.channel-card:hover .ch-sub { color: #0a0a0a; }
.channel-card:hover .channel-icon { border-color: #0a0a0a; }
.channel-card:hover .channel-icon svg { stroke: #0a0a0a; }
.channel-card:hover .ch-badge { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; }
.channel-card:hover .ch-copy { opacity: 1; color: #0a0a0a; }

.channel-icon {
    width: 56px; height: 56px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s;
}
.channel-icon svg {
    width: 26px; height: 26px;
    stroke: #ffffff; stroke-width: 1.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.15s;
}
.ch-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    transition: color 0.15s;
}
.ch-value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    transition: color 0.15s;
    line-height: 1.2;
}
.ch-sub { font-size: 0.9rem; color: #6b7280; transition: color 0.15s; }
.ch-badge {
    position: absolute; top: 20px; right: 20px;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #ffffff;
    color: #0a0a0a;
    transition: all 0.15s;
}
.ch-copy {
    position: absolute;
    bottom: 16px; right: 20px;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}
.ch-copy svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }

.contact-form-centered {
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid #1a1a1a;
    padding: 64px 56px;
}
.contact-form-centered h3 { font-size: 1.6rem; margin-bottom: 12px; letter-spacing: -0.03em; text-align: left; }
.contact-form-centered .form-sub { font-size: 1rem; color: #9ca3af; margin-bottom: 48px; line-height: 1.6; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.form-field { position: relative; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}
.form-field label .req { color: #ffffff; margin-left: 4px; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    color-scheme: dark;
    letter-spacing: -0.005em;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #4b5563; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: #ffffff; background: #0d0d0d; }
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 48px;
}
.form-field select option { background: #0a0a0a; color: #ffffff; }

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.55;
    cursor: pointer;
}
.form-agreement input { width: 20px; height: 20px; margin-top: 2px; accent-color: #ffffff; cursor: pointer; flex-shrink: 0; }
.form-agreement a { color: #ffffff; border-bottom: 1px solid #ffffff; }

.form-submit-btn { width: 100%; justify-content: center; min-height: 60px; font-size: 0.9rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid #1a1a1a; padding: 40px 0; cursor: pointer; }
.faq-item:first-child { border-top: 1px solid #1a1a1a; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.faq-q h3 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); color: #ffffff; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; transition: color 0.15s; }
.faq-item:hover .faq-q h3 { color: #9ca3af; }
.faq-q .icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff;
    transition: all 0.2s;
}
.faq-q .icon svg {
    width: 14px; height: 14px;
    stroke: currentColor; stroke-width: 2.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s;
}
.faq-item.open .faq-q .icon { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.faq-item.open .faq-q .icon svg { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding 0.45s cubic-bezier(0.16,1,0.3,1);
    color: #9ca3af;
    padding-top: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 1000px;
}
.faq-item.open .faq-a { max-height: 600px; padding-top: 24px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { text-align: center; padding: 140px 0; position: relative; overflow: hidden; }
.cta-final::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 900px; height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}
.cta-final h2 { margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto; }
.cta-final p { font-size: 1.2rem; color: #9ca3af; margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-final .cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 100px 0 0; border-top: 1px solid #1a1a1a; background: #0a0a0a; }
.footer-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 80px; }
.footer-brand { max-width: 560px; }
.footer-brand .logo { margin-bottom: 28px; padding: 0; }
.footer-brand p { color: #9ca3af; font-size: 1rem; line-height: 1.65; margin-bottom: 36px; max-width: 500px; }
.footer-contacts { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; border-top: 1px solid #1a1a1a; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: padding 0.25s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.footer-contact-item:hover { padding-left: 8px; }
.footer-contact-item .fc-icon {
    width: 40px; height: 40px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.footer-contact-item:hover .fc-icon { background: #ffffff; border-color: #ffffff; }
.footer-contact-item:hover .fc-icon svg { stroke: #0a0a0a; }
.footer-contact-item .fc-icon svg {
    width: 18px; height: 18px;
    stroke: #ffffff; stroke-width: 1.7;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.15s;
}
.footer-contact-item .fc-text { display: flex; flex-direction: column; gap: 4px; }
.footer-contact-item .fc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
}
.footer-contact-item .fc-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-socials a {
    width: 44px; height: 44px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}
.footer-socials a:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; transform: translateY(-2px); }
.footer-socials a svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 1.6;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.footer-info-right { display: flex; flex-direction: column; gap: 48px; }
.footer-info-block h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 24px;
}
.footer-info-block ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-info-block ul li {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a1a1a;
}
.footer-info-block ul li:last-child { border-bottom: none; padding-bottom: 0; }
.footer-info-block ul li svg {
    width: 16px; height: 16px;
    stroke: #6b7280; stroke-width: 1.8;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 5px;
}
.footer-info-block ul li b { color: #ffffff; font-weight: 600; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #4b5563;
}
.footer-bottom .copyright { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom .copyright b { color: #9ca3af; font-weight: 600; }
.footer-bottom .patent-mark {
    color: #9ca3af;
    padding: 4px 12px;
    border: 1px solid #1a1a1a;
    font-size: 0.75rem;
}
.footer-bottom .legal-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: #4b5563; transition: color 0.15s; }
.footer-bottom .legal-links a:hover { color: #ffffff; }
.footer-bottom .made-with { display: flex; align-items: center; gap: 10px; color: #4b5563; }
.footer-bottom .made-with .dot {
    width: 6px; height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top-btn {
    position: fixed; bottom: 32px; left: 32px;
    width: 52px; height: 52px;
    border: 1px solid #1a1a1a;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    z-index: 900;
    opacity: 0; pointer-events: none;
    transform: translateY(12px);
}
.scroll-top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: #ffffff; border-color: #ffffff; }
.scroll-top-btn:hover svg { stroke: #0a0a0a; }
.scroll-top-btn svg {
    width: 20px; height: 20px;
    stroke: #ffffff; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.15s;
}

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
    position: fixed; bottom: 32px; right: 32px;
    z-index: 3000;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
    pointer-events: auto;
    max-width: 420px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast .toast-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.toast .toast-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.toast.toast-success { border-left: 3px solid #ffffff; }
.toast.toast-error { border-left: 3px solid #6b7280; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s 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.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============================================================
   SECTION NAV (right side dots)
   ============================================================ */
.section-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.4s;
}
.section-nav.show { opacity: 1; }
.section-nav-dot {
    width: 10px; height: 10px;
    border: 1px solid #4b5563;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.section-nav-dot:hover { border-color: #ffffff; transform: scale(1.3); }
.section-nav-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
.section-nav-dot .tip {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 5px 10px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.section-nav-dot:hover .tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 900px) { .section-nav { display: none; } }

/* ============================================================
   COMMAND PALETTE
   ============================================================ */
.cmdk-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.cmdk-overlay.open { opacity: 1; visibility: visible; }
.cmdk {
    width: min(92vw, 560px);
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    transform: translateY(-12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
}
.cmdk-overlay.open .cmdk { transform: translateY(0) scale(1); }
.cmdk-input-wrap {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #1a1a1a;
}
.cmdk-input-wrap svg { width: 18px; height: 18px; stroke: #6b7280; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cmdk-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.cmdk-input::placeholder { color: #4b5563; }
.cmdk-kbd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid #2a2a2a;
    color: #6b7280;
}
.cmdk-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}
.cmdk-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #d1d5db;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-left: 2px solid transparent;
}
.cmdk-item:hover,
.cmdk-item.active {
    background: #111111;
    color: #ffffff;
    border-left-color: #ffffff;
}
.cmdk-item svg {
    width: 16px; height: 16px;
    stroke: #6b7280; stroke-width: 1.8;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.cmdk-item.active svg { stroke: #ffffff; }
.cmdk-item .cmdk-item-hint {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #4b5563;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cmdk-empty {
    padding: 32px 20px;
    text-align: center;
    color: #4b5563;
    font-size: 0.9rem;
}
.cmdk-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #4b5563;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cmdk-footer kbd {
    font-family: inherit;
    padding: 2px 6px;
    border: 1px solid #2a2a2a;
    color: #9ca3af;
    margin-right: 4px;
}

/* ============================================================
   KEYBOARD HINT BAR
   ============================================================ */
.kbd-hint {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #6b7280;
    z-index: 850;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}
.kbd-hint.show { opacity: 1; transform: translateY(0); }
.kbd-hint kbd {
    font-family: inherit;
    padding: 3px 7px;
    border: 1px solid #2a2a2a;
    color: #d1d5db;
}
@media (max-width: 900px) { .kbd-hint { display: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 26px; }
    .patent-block { padding: 60px 44px; }
    .patent-header { grid-template-columns: 1fr; gap: 32px; }
    .patent-advantages { grid-template-columns: 1fr; }
    .patent-vs-grid { grid-template-columns: 1fr; }
    .patent-vs-col:first-child { border-right: none; border-bottom: 1px solid #1a1a1a; }
    .safety-grid { grid-template-columns: 1fr 1fr; }
    .integration-grid { grid-template-columns: repeat(3, 1fr); }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrapper { padding: 60px 44px; }
    .contact-form-centered { padding: 48px 40px; }
    .footer-simple { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 900px) {
    .navbar { padding: 16px 22px; flex-wrap: wrap; gap: 12px; }
    .navbar.scrolled { padding: 12px 22px; }
    .nav-channel { font-size: 0.75rem; padding: 10px 14px; }
    .nav-channel span { display: none; }
    .nav-channel.max span { display: inline; }
    section { padding: 90px 0; }
    .section-head { margin-bottom: 3rem; }
    .hero { padding: 160px 0 90px; }
    .hero-meta { display: none; }
    .scroll-hint { display: none; }
    .patent-block { padding: 44px 28px; }
    .safety-grid { grid-template-columns: 1fr; }
    .integration-grid { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: 1fr; }
    .bento-3, .bento-2 { grid-column: span 1; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .contact-wrapper { padding: 44px 28px; }
    .contact-form-centered { padding: 40px 28px; }
    .quick-channels { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .navbar { padding: 14px 20px; }
    .logo-text { font-size: 1.35rem; }
    .logo-text .num8, .logo-text .letterI, .logo-text .avatar { font-size: 1.35rem; }
    .nav-controls { gap: 6px; }
    .nav-channel { font-size: 0.7rem; padding: 8px 12px; }
    .hero { padding: 130px 0 70px; }
    .hero .cta-group { flex-direction: column; width: 100%; }
    .hero .cta-group .btn { width: 100%; }
    section { padding: 72px 0; }
    .patent-block { padding: 36px 22px; }
    .patent-vs-col { padding: 32px 24px; }
    .patent-adv { padding: 36px 28px; }
    .bento-item { padding: 40px 28px; }
    .dashboard-preview { padding: 32px 22px; }
    .contact-wrapper { padding: 32px 20px; }
    .contact-form-centered { padding: 32px 22px; }
    .footer-simple { gap: 40px; margin-bottom: 60px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 0; }
    .footer-bottom .legal-links { gap: 20px; }
    .scroll-top-btn { width: 46px; height: 46px; bottom: 20px; left: 20px; }
    .toast-container { bottom: 90px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 118px 0 60px; }
    section { padding: 60px 0; }
    .integration-grid { grid-template-columns: 1fr; }
    .case-card { padding: 40px 24px; }
    .case-card .case-metrics { grid-template-columns: 1fr; gap: 24px; }
    .metric-item { padding: 28px 20px; }
    .channel-card { padding: 32px 24px; }
    .patent-header-content h2 { font-size: 1.6rem; }
    .patent-number { font-size: 0.8rem; padding: 12px 18px; }
    .preloader-mark { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .trust-track { animation: none; }
    .noise-overlay { animation: none; }
    .hero h1 .word { opacity: 1; transform: none; filter: none; animation: none; }
}

@media (min-width: 1600px) {
    .container { max-width: 1440px; }
    body { font-size: 19px; }
    p, li { font-size: 19px; }
}

@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)); }
    footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}