* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    background: #050505;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    overflow-x: hidden;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.22) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 100px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.34);
    background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

::selection {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
::-moz-selection {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

p, span, h1, h2, h3, code, pre, input, textarea,
.about__text, .support__text, .news-card__desc, .news-card__name, .msg__text, .code__line {
    -webkit-user-select: text !important;
    user-select: text !important;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050505;
}

.bg::before,
.bg::after {
    display: none !important;
}

.bg__canvas {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.35);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    border-radius: 0 0 40px 40px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar { background: rgba(8, 8, 8, 0.9); }
}

.navbar__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200%;
    border-radius: 0 0 40px 40px;
    pointer-events: none;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: linear-gradient(to bottom, #050505 0%, rgba(5,5,5,0.6) 12%, transparent 30%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0% 50%, transparent 50%);
    mask-image: linear-gradient(to bottom, #000 0% 50%, transparent 50%);
}

@keyframes navbarIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    opacity: 0;
    animation: navbarIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.navbar__logo {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar__name {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.navbar__menu { display: flex; align-items: center; gap: 6px; }

.navbar__support {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__support:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-1px);
}

.navbar__support::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    pointer-events: none;
}

.navbar__support::after {
    content: "";
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
    box-shadow: 0 0 8px #ffffff, 0 0 2px #ffffff;
    pointer-events: none;
    animation: liquidWave 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.navbar__support:hover::after {
    animation-play-state: paused;
    left: 8px !important;
    right: 8px !important;
    box-shadow: 0 0 12px #ffffff, 0 0 4px #ffffff;
}

@keyframes liquidWave {
    0% {
        left: 8px;
        right: calc(100% - 8px);
    }
    25% {
        left: 8px;
        right: 8px;
    }
    50% {
        left: calc(100% - 8px);
        right: 8px;
    }
    75% {
        left: 8px;
        right: 8px;
    }
    100% {
        left: 8px;
        right: calc(100% - 8px);
    }
}

.dd { position: relative; }

.dd::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    height: 15px;
}

.dd__btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.7);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 12px;
    border-radius: 100px;
    cursor: pointer;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dd__btn:hover,
.dd.is-open .dd__btn {
    color: #ffffff;
    transform: scale(1.08);
}

.dd__chev { width: 10px; height: 10px; display: block; }
.dd__chev svg { width: 100%; height: 100%; display: block; }

.dd.is-open .dd__chev { animation: chevOpen 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.dd.is-closed .dd__chev { animation: chevClose 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes chevOpen {
    0%   { transform: rotate(0); }
    18%  { transform: rotate(-3deg); }
    62%  { transform: rotate(186deg); }
    82%  { transform: rotate(177deg); }
    100% { transform: rotate(180deg); }
}

@keyframes chevClose {
    0%   { transform: rotate(180deg); }
    18%  { transform: rotate(183deg); }
    62%  { transform: rotate(-5deg); }
    82%  { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}

.dd__panel {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    min-width: 320px;
    padding: 8px;
    border-radius: 24px;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 18px 50px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dd.is-open .dd__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dd__tabs {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 3px;
    margin-bottom: 6px;
}

.dd__pill {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.dd__tab-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    background: transparent;
    border: 0;
    padding: 6px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color 0.3s ease;
}

.dd__tab-btn.is-active {
    color: #ffffff;
}

.dd__slider {
    width: 100%;
    overflow: hidden;
}

.dd__track {
    display: flex;
    width: 200%;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dd__page {
    width: 50%;
    flex-shrink: 0;
}

.dd__link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
}

.dd__link__name {
    display: block;
    color: rgba(255,255,255,0.7);
    font-weight: 800;
    font-size: 0.95rem;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dd__link__desc {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.dd__link:hover .dd__link__name {
    color: #ffffff;
    transform: scale(1.05);
}
.dd__link:hover .dd__link__desc {
    color: rgba(255,255,255,0.7);
}

.dd__sub {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top;
    transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease,
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dd__item--expand:hover .dd__sub {
    max-height: 110px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dd__link--sub { margin-top: 2px; padding-left: 12px; }

.scroll-wrap.vs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.hero {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(110px, 20vh, 220px) 24px clamp(50px, 9vh, 110px);
    text-align: center;
}

.headline {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 3.4vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
    max-width: none;
}

.line { display: block; white-space: nowrap; }

.line--glow { color: #ffffff; }

.line--glow .w {
    animation: wordIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards, glowWave 6s ease-in-out infinite;
    animation-delay: var(--d, 0s), calc(1.8s + var(--d, 0s) * 4);
}

@keyframes glowWave {
    0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
    6%       { text-shadow: 0 0 22px rgba(255,255,255,0.5), 0 0 6px rgba(255,255,255,0.3); }
    14%      { text-shadow: 0 0 0 rgba(255,255,255,0); }
}

.w {
    display: inline-block;
    margin-right: 0.26em;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(0.35em);
    animation: wordIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
    will-change: opacity, filter, transform;
}

@keyframes wordIn {
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.morph-zone {
    position: relative;
    display: inline-block;
    width: var(--mw, 4ch);
    vertical-align: baseline;
    text-align: left;
}

.morph-strut { visibility: hidden; }

.morph-layer {
    position: absolute;
    left: 0; top: 0;
    white-space: nowrap;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    font-size: clamp(1.35rem, 3.4vw, 2.9rem);
}

.ch {
    display: inline;
    opacity: 0;
    will-change: opacity, filter;
    background-image: linear-gradient(110deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.88) 44%, #ffffff 50%, rgba(255,255,255,0.88) 56%, rgba(255,255,255,0.88) 100%);
    background-size: 260% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.morph-layer.is-shine .ch {
    animation: shimmer 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 0.04s);
}

@keyframes shimmer {
    0%   { background-position: 130% 0; }
    100% { background-position: -30% 0; }
}

.morph-dot {
    position: absolute;
    top: 0; left: 0;
    color: #fff;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-underline {
    position: absolute;
    left: 0;
    bottom: 0.02em;
    height: 2px;
    width: var(--uw, 0px);
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-measure {
    position: absolute;
    visibility: hidden;
    white-space: nowrap;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.35rem, 3.4vw, 2.9rem);
    letter-spacing: 0;
    pointer-events: none;
}

.news {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(24px, 4.8vh, 56px) clamp(20px, 5vw, 60px) clamp(72px, 12.5vh, 144px);
}

.news__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.news__title {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    color: #ffffff;
}

.news__all {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.news__all:hover { color: #ffffff; }
.news__all .arr {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.news__all:hover .arr { transform: translateX(4px); }

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 36px);
    width: 100%;
}

.news-card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    -webkit-user-drag: none;
    user-drag: none;
}

.news-card__panel {
    position: relative;
    border-radius: 44px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.news-card:hover .news-card__panel {
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 24px 70px -28px rgba(0,0,0,0.85);
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(0.6) brightness(0.85);
    transform: scale(1.001);
    transition: filter 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card__img {
    filter: grayscale(0) contrast(1.05) brightness(1.05);
    transform: scale(1.07);
}

.news-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #ffffff;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 100px;
    background: rgba(0,0,0,0.35);
}

.news-card__meta {
    margin-top: 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}

.news-card__name {
    margin-top: 8px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    letter-spacing: -0.01em;
    color: #ffffff;
}

.news-card__desc {
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 34ch;
}

.demo {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(24px, 4.8vh, 56px) clamp(20px, 5vw, 60px) clamp(72px, 12.5vh, 144px);
}

.demo__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.demo__title {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    color: #ffffff;
}

.win {
    max-width: 1100px;
    width: 100%;
    margin: 0;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b0b0b;
    box-shadow: 0 30px 90px -30px rgba(0,0,0,0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.win__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #161616;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.win__dot { width: 12px; height: 12px; border-radius: 50%; }
.win__dot--r { background: #ff5f57; }
.win__dot--y { background: #febc2e; }
.win__dot--g { background: #28c840; }

.win__name {
    margin-left: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

.win__model { margin-left: auto; }
.win__model::after { min-width: 170px; }
.win__model__btn {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.win__model .dd__panel {
    left: auto;
    right: -16px;
    top: calc(100% + 15px);
    min-width: 170px;
    z-index: 30;
}

.win__menu__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.win__menu__item:hover { color: #ffffff; transform: scale(1.05); }

.win__chat {
    height: 480px;
    overflow-y: auto;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.win__chat::-webkit-scrollbar { width: 8px; }
.win__chat::-webkit-scrollbar-track { background: transparent; }
.win__chat::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.msg {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
    animation: msgIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.msg--user {
    align-self: flex-end;
    background: #1d1d1f;
    color: rgba(255,255,255,0.85);
    border-bottom-right-radius: 6px;
}

.msg--ai {
    align-self: stretch;
    max-width: 100%;
    background: none;
    padding: 0;
}

.msg__text {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
}

.msg__text--out { margin-top: 12px; }

.think {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 100px;
    background: #151515;
    border: 1px solid rgba(255,255,255,0.07);
    animation: msgIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.think__label {
    font-size: 0.85rem;
    font-weight: 700;
    background-image: linear-gradient(110deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.45) 40%, #ffffff 50%, rgba(255,255,255,0.45) 60%, rgba(255,255,255,0.45) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: thinkWave 2.8s ease-in-out infinite;
}

@keyframes thinkWave {
    0%   { background-position: 130% 0; }
    45%  { background-position: -30% 0; }
    100% { background-position: -30% 0; }
}

.think__timer {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    font-variant-numeric: tabular-nums;
    min-width: 5ch;
    text-align: right;
}

.think.is-done .think__label {
    animation: none;
    background-image: none;
    color: rgba(255,255,255,0.6);
}

.win__input {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 14px 14px;
    padding: 14px 12px 14px 22px;
    border-radius: 100px;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
}

.win__field {
    flex: 1;
    min-height: 22px;
    background: transparent;
    border: 0;
    outline: 0;
    color: rgba(255,255,255,0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding-right: 44px;
}

.win__field::placeholder { color: rgba(255,255,255,0.32); }

.win__send {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 40px;
    height: 40px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0b0b0b;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.win__send svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
}

.win__send.is-pressed { transform: translateY(-50%) scale(0.82); }

.code {
    margin-top: 12px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.code.is-on { opacity: 1; transform: none; }

.code__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    background: #1a1a1a;
}

.code__lang {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}

.code__copy {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.4);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.code__copy:hover { color: #ffffff; transform: scale(1.1); }
.code__copy svg { width: 14px; height: 14px; }
.code__copy.is-ok { color: #28c840; }

.code__body {
    margin: 0;
    background: #0a0a0a;
    padding: 14px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    overflow-x: auto;
}

.code__line {
    white-space: pre;
    animation: lineIn 0.35s ease both;
}

@keyframes lineIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

.tok-kw { color: #ff7b72; font-weight: 600; }
.tok-fn { color: #d2a8ff; }
.tok-str { color: #a5d6ff; }
.tok-num { color: #79c0ff; }
.tok-bool { color: #ffab70; font-weight: 600; }
.tok-comment { color: #8b949e; font-style: italic;}

.code__cursor {
    display: inline-block;
    width: 6px;
    height: 1.1em;
    vertical-align: text-bottom;
    background: #ffffff;
    margin-left: 2px;
    border-radius: 1px;
    animation: codeBlink 0.6s infinite;
}
@keyframes codeBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.glass-frame {
    position: relative;
    padding: clamp(36px, 5vw, 60px) clamp(30px, 5vw, 64px);
    isolation: isolate;
}

.glass-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1.2px solid rgba(255, 255, 255, 0.22);
    border-left: 1.2px solid rgba(255, 255, 255, 0.22);
    border-right: none !important;
    border-bottom: none !important;
    border-top-left-radius: 54px;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(28px) brightness(0.9);
    -webkit-backdrop-filter: blur(28px) brightness(0.9);
    background: radial-gradient(
        ellipse 50% 65% at 0% 0%,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(18, 18, 18, 0.55) 30%,
        rgba(8, 8, 8, 0.40) 60%,
        transparent 85%
    );
    box-shadow:
        inset 1.2px 1.2px 0 0 rgba(255, 255, 255, 0.35),
        inset 4px 4px 18px 0 rgba(0, 0, 0, 0.6);
    -webkit-mask-image: radial-gradient(
        ellipse 46% 65% at 0% 0%,
        #000 0%,
        #000 16%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 46% 65% at 0% 0%,
        #000 0%,
        #000 16%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    );
    transition: border-color 0.4s ease;
}

.glass-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-bottom: 1.2px solid rgba(255, 255, 255, 0.22);
    border-right: 1.2px solid rgba(255, 255, 255, 0.22);
    border-top: none !important;
    border-left: none !important;
    border-bottom-right-radius: 54px;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(28px) brightness(0.9);
    -webkit-backdrop-filter: blur(28px) brightness(0.9);
    background: radial-gradient(
        ellipse 50% 65% at 100% 100%,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(18, 18, 18, 0.55) 30%,
        rgba(8, 8, 8, 0.40) 60%,
        transparent 85%
    );
    box-shadow:
        inset -1.2px -1.2px 0 0 rgba(255, 255, 255, 0.35),
        inset -4px -4px 18px 0 rgba(0, 0, 0, 0.6);
    -webkit-mask-image: radial-gradient(
        ellipse 46% 65% at 100% 100%,
        #000 0%,
        #000 16%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 46% 65% at 100% 100%,
        #000 0%,
        #000 16%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 100%
    );
    transition: border-color 0.4s ease;
}

.glass-frame:hover::before,
.glass-frame:hover::after {
    border-color: rgba(255, 255, 255, 0.38);
}

.about {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) clamp(72px, 12.5vh, 144px);
}

.about__inner { max-width: 1050px; }

.about__title {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.about__text {
    font-weight: 800;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    line-height: 1.65;
    letter-spacing: -0.01em;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #ffffff 18%,
        rgba(255, 255, 255, 0.72) 45%,
        rgba(255, 255, 255, 0.45) 70%,
        rgba(255, 255, 255, 0.25) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.about__link {
    display: inline-block;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: text-decoration-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__link:hover {
    text-decoration-color: #ffffff;
    transform: scale(1.05);
}

.about__text::selection,
.support__text::selection {
    background: rgba(255, 255, 255, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.support {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) clamp(72px, 12.5vh, 144px);
}

.support__inner {
    max-width: 1050px;
}

.support__title {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: clamp(18px, 2.5vw, 28px);
}

.support__text {
    font-weight: 800;
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    line-height: 1.65;
    letter-spacing: -0.01em;
    margin-bottom: clamp(28px, 4vw, 44px);
    max-width: 860px;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #ffffff 18%,
        rgba(255, 255, 255, 0.72) 45%,
        rgba(255, 255, 255, 0.45) 70%,
        rgba(255, 255, 255, 0.25) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.support__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.support__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    color: #ffffff;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 25px -5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    transition: 
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.support__btn:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.55),
        0 14px 35px -5px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 255, 255, 0.08);
}

.support__btn:active {
    transform: translateY(0) scale(0.98);
}

.support__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support__pill {
    position: relative;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: flex-start;
    height: 48px;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 25px -5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    padding: 12px 18px;
    transition: 
        width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.support__pill--ton {
    width: 106px;
}

.support__pill--usdt {
    width: 178px;
}

.support__pill:hover {
    width: 415px !important;
    height: 64px !important;
    border-radius: 20px !important;
    padding: 10px 18px !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 100%
    ) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.55),
        0 16px 36px -4px rgba(0, 0, 0, 0.75),
        0 0 20px rgba(255, 255, 255, 0.08) !important;
}

.support__pill-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.support__pill-name {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

.support__copy-badge {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6) !important;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    pointer-events: none;
    transition: 
        opacity 0.35s ease 0.12s,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
        filter 0.2s ease;
}

.support__pill:hover .support__copy-badge {
    opacity: 1;
    transform: translateX(0);
}

.support__copy-badge.is-animating {
    filter: blur(5px);
    opacity: 0;
    transform: scale(0.92);
}

.support__pill-body {
    width: 100% !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: translateY(-4px) !important;
    pointer-events: none !important;
    transition: 
        opacity 0.3s ease 0.05s,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
        margin-top 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.support__pill:hover .support__pill-body {
    opacity: 1 !important;
    margin-top: 4px !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.support__pill-val {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.71rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    user-select: all !important;
}

@media (max-width: 640px) {
    .support__btn,
    .support__pill--ton,
    .support__pill--usdt {
        width: 100%;
    }
    .support__pill:hover {
        width: 100% !important;
        height: auto !important;
        padding-bottom: 16px !important;
    }
    .support__pill-val {
        white-space: normal !important;
        word-break: break-all !important;
    }
}

.footer {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-top: clamp(40px, 7.2vh, 80px);
}

.footer__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px clamp(150px, 24vh, 260px);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.footer__logo__img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.footer__logo__name {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.footer__copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 36ch;
}

.footer__cols {
    display: flex;
    gap: clamp(48px, 6vw, 96px);
    margin-right: clamp(0px, 4vw, 80px);
}

.footer__col { display: flex; flex-direction: column; }

.footer__col__title {
    color: #ffffff;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 26px;
}

.footer__link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__link:hover {
    color: #ffffff;
    transform: scale(1.06);
}

.footer__giant {
    position: absolute;
    left: 50%;
    bottom: clamp(24px, 5vh, 60px);
    transform: translateX(-50%);
    font-size: clamp(140px, 26vw, 380px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    color: rgba(255,255,255,0.14);
    -webkit-mask-image: linear-gradient(to top, #000 0% 26%, transparent 55%);
    mask-image: linear-gradient(to top, #000 0% 26%, transparent 55%);
}

.footer__glow {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -10%;
    height: 82%;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(42% 60% at 0% 100%, rgba(255,255,255,0.28), transparent 70%),
        radial-gradient(42% 60% at 100% 100%, rgba(255,255,255,0.28), transparent 70%),
        radial-gradient(70% 50% at 50% 100%, rgba(255,255,255,0.08), transparent 80%);
    filter: blur(28px);
}

.footer__line {
    position: relative;
    z-index: 2;
    height: 2px;
    width: min(1160px, 92%);
    margin: 0 auto;
    margin-bottom: clamp(24px, 4vh, 48px) !important;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9) 50%, transparent);
}

.footer.is-lit .footer__giant,
.footer.is-lit .footer__glow {
    opacity: 1;
}

.reveal {
    opacity: 0;
    filter: blur(28px);
    transform: translateY(32px) scale(0.96);
    will-change: opacity, filter, transform;
    transition: 
        opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.25s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

html.cursor-on,
html.cursor-on * {
    cursor: none !important;
}

html.cursor-on p,
html.cursor-on h1,
html.cursor-on h2,
html.cursor-on h3,
html.cursor-on span,
html.cursor-on code,
html.cursor-on pre,
html.cursor-on input,
html.cursor-on textarea,
html.cursor-on .code__line,
html.cursor-on .msg__text,
html.cursor-on .about__text,
html.cursor-on .support__text,
html.cursor-on .news-card__desc,
html.cursor-on .news-card__name {
    cursor: text !important;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.2s ease;
}
.cursor.is-ready { opacity: 1; }

.cursor.is-text {
    opacity: 0 !important;
}

.cursor__dot,
.cursor__ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    will-change: transform;
}

.cursor__dot {
    width: 6px;
    height: 6px;
    transition: transform 0.18s ease, opacity 0.25s ease;
}

.trail {
    position: fixed;
    z-index: 9998;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    mix-blend-mode: difference;
    animation: trailFade 0.7s ease-out forwards;
}

@keyframes trailFade {
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

.cursor__ring {
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1.5px solid #ffffff;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.32s ease;
}

.cursor.is-hover .cursor__ring { width: 62px; height: 62px; }
.cursor.is-hover .cursor__dot {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0.5;
}
.cursor.is-down .cursor__ring { width: 26px; height: 26px; }

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

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

@media (max-width: 640px) {
    .line { white-space: normal; }
    .news-card { width: 100%; }
    .news-card__desc { max-width: none; }
    .navbar__name { display: none; }
    .dd__btn { padding: 8px 10px; font-size: 0.8rem; }
    .dd__panel { min-width: 260px; }
    .dd::after { min-width: 260px; }
    .win { max-width: 100%; }
    .win__chat { height: 420px; }
    .msg--user { max-width: 90%; }
    .footer__inner { flex-direction: column; gap: 56px; padding-bottom: 180px; }
    .footer__cols { margin-right: 0; }
}

@media (hover: none), (pointer: coarse) {
    .cursor { display: none !important; }
    html.cursor-on,
    html.cursor-on * {
        cursor: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .w { animation: none; opacity: 1; filter: none; transform: none; }
    .line--glow .w { animation: none !important; opacity: 1; filter: none; transform: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .navbar { animation: none; opacity: 1; }
    .dd.is-open .dd__chev,
    .dd.is-closed .dd__chev { animation: none; }
    .morph-layer.is-shine .ch { animation: none !important; }
    .think__label { animation: none !important; }
    .msg, .think, .code, .code__line {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}