:root {
    --text: #111827;
    --muted: #475569;
    --soft: #64748b;
    --line: #d6dce6;
    --blue: #0078d4;
    --blue-2: #0b5cab;
    --blue-3: #2e8cff;
    --bg: #ffffff;
    --panel: #f8fafc;
    --dark: #1f1f1f;
    --sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 74px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 236px;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    font-size: 16px;
}

.site-nav a,
.hero-links a,
.release-panel a,
.page-footer a {
    color: var(--text);
    text-decoration: none;
}

.site-nav a:hover,
.hero-links a:hover,
.release-panel a:hover,
.page-footer a:hover {
    color: var(--blue);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 176px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.search-box span {
    width: 14px;
    height: 14px;
    border: 2px solid #111827;
    border-radius: 50%;
    position: relative;
}

.search-box span::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    right: -5px;
    bottom: -3px;
    background: #111827;
    transform: rotate(45deg);
}

.search-box input {
    width: 72px;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 15px;
}

.search-box kbd {
    padding: 3px 5px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: #64748b;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.download-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 114px;
    height: 42px;
    border-radius: 4px;
    color: #fff;
    background: var(--blue);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.download-top:hover {
    background: var(--blue-2);
}

.notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfdff;
    color: var(--blue);
    font-size: 14px;
}

.notice a {
    color: var(--blue);
}

.notice button {
    border: 0;
    background: transparent;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.binary-field {
    background:
        radial-gradient(circle at 50% 8%, rgba(46, 140, 255, 0.13), transparent 30%),
        repeating-linear-gradient(90deg, rgba(0, 120, 212, 0.11) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(0deg, rgba(0, 120, 212, 0.07) 0 1px, transparent 1px 20px),
        #fff;
    position: relative;
    overflow: hidden;
}

.binary-field::before {
    content: '0 0 1 1 0 1 0 1 1 0 0 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1';
    position: absolute;
    inset: 28px -34% auto;
    height: 620px;
    color: rgba(0, 120, 212, 0.14);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 10px;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    word-break: break-all;
    animation: binaryDrift 26s linear infinite;
}

.binary-field::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(112deg, transparent 18%, rgba(0, 120, 212, 0.12) 44%, rgba(255, 255, 255, 0.58) 50%, rgba(0, 120, 212, 0.1) 56%, transparent 78%),
        radial-gradient(circle at 72% 20%, rgba(0, 120, 212, 0.16), transparent 26%);
    transform: translateX(-65%);
    pointer-events: none;
    animation: heroSweep 8s ease-in-out infinite;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 24px 92px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    animation: fadeUp 0.68s ease-out both;
}

.hero h1 {
    max-width: 980px;
    margin: 0 auto 16px;
    font-size: 76px;
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: 0;
    animation: fadeUp 0.74s 0.08s ease-out both;
}

.hero-subtitle {
    margin: 0 auto 42px;
    color: #111827;
    font-size: 30px;
    line-height: 1.28;
    font-weight: 500;
    animation: fadeUp 0.74s 0.16s ease-out both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    animation: fadeUp 0.74s 0.24s ease-out both;
}

.download-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 342px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 9px;
    color: #fff;
    background: var(--dark);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.download-primary:hover {
    background: #000;
}

.download-primary.full {
    width: 100%;
    min-width: 0;
    background: var(--blue);
}

.download-primary.full:hover {
    background: var(--blue-2);
}

.windows-mark {
    width: 23px;
    height: 23px;
    display: inline-block;
    background:
        linear-gradient(90deg, #fff 0 47%, transparent 47% 53%, #fff 53%),
        linear-gradient(0deg, transparent 0 47%, #1f1f1f 47% 53%, transparent 53%);
}

.hero-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
    color: var(--muted);
    font-size: 13px;
    animation: fadeUp 0.74s 0.3s ease-out both;
}

.hero-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms {
    margin: 0 auto 44px;
    max-width: 590px;
    color: #111827;
    font-size: 12px;
    animation: fadeUp 0.74s 0.34s ease-out both;
}

.product-stage {
    position: relative;
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent),
        linear-gradient(135deg, #5eb3ff 0%, #0d7ee8 46%, #1267df 100%);
    box-shadow: 0 28px 74px rgba(0, 105, 210, 0.35);
    animation: stageFloat 6.4s ease-in-out infinite;
}

.product-stage::before {
    content: '';
    position: absolute;
    inset: -45% -20%;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.38) 48%, transparent 64%);
    transform: translateX(-62%) rotate(6deg);
    animation: stageSweep 5.2s ease-in-out infinite;
    pointer-events: none;
}

.app-window {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.28);
    animation: appReveal 0.86s 0.32s cubic-bezier(.2, .8, .2, 1) both;
}

.window-chrome {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.window-chrome span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e5e7eb;
}

.window-chrome strong {
    margin-left: 10px;
    color: #475569;
    font-family: var(--mono);
    font-size: 12px;
}

.app-shell {
    display: grid;
    grid-template-columns: 42px 168px minmax(0, 1fr) 220px;
    min-height: 470px;
    text-align: left;
}

.activity-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 22px;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.activity-rail i {
    width: 16px;
    height: 16px;
    border: 2px solid #64748b;
    border-radius: 4px;
    animation: railPulse 3.4s ease-in-out infinite;
}

.activity-rail i:nth-child(2) {
    animation-delay: 0.25s;
}

.activity-rail i:nth-child(3) {
    animation-delay: 0.5s;
}

.activity-rail i:nth-child(4) {
    animation-delay: 0.75s;
}

.activity-rail i:nth-child(5) {
    animation-delay: 1s;
}

.project-panel,
.sessions-panel {
    padding: 20px 16px;
    border-right: 1px solid #e2e8f0;
    background: #fff;
}

.project-panel h2,
.sessions-panel h2 {
    margin: 0 0 18px;
    color: #334155;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.project {
    width: 100%;
    display: block;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    color: #334155;
    background: transparent;
    text-align: left;
    font: inherit;
}

.project.active {
    color: #fff;
    background: var(--blue);
    font-weight: 700;
}

.state-card {
    margin-top: 28px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.state-card span {
    display: block;
    color: #2563eb;
    font-size: 12px;
}

.state-card strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.research-panel {
    min-width: 0;
    padding: 22px 18px;
    background:
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px),
        linear-gradient(#eef2f7 1px, transparent 1px),
        #fff;
    background-size: 28px 28px;
}

.command-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.command-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-110%);
    animation: commandScan 3.2s ease-in-out infinite;
    pointer-events: none;
}

.command-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.command-card strong {
    color: var(--blue);
    white-space: nowrap;
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.pipeline article {
    min-height: 126px;
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    animation: cardLift 5.8s ease-in-out infinite;
}

.pipeline article:nth-child(2) {
    animation-delay: 0.35s;
}

.pipeline article:nth-child(3) {
    animation-delay: 0.7s;
}

.pipeline small {
    color: var(--blue);
    font-weight: 800;
}

.pipeline b {
    display: block;
    margin: 8px 0 12px;
    font-size: 24px;
}

.pipeline em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.paper-console {
    margin-top: 18px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
}

.console-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-family: var(--mono);
    font-size: 12px;
}

.console-head strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.console-head strong::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.5);
    animation: statusPulse 1.5s ease-out infinite;
}

.paper-console pre {
    margin: 0;
    padding: 18px 16px;
    overflow: auto;
    color: #111827;
    font-family: var(--mono);
    font-size: 13px;
}

.paper-console code::after {
    content: '_';
    margin-left: 4px;
    color: var(--blue);
    animation: cursorBlink 1s steps(2, start) infinite;
}

.sessions-panel {
    border-right: 0;
}

.session {
    padding: 13px 0 13px 14px;
    border-left: 3px solid transparent;
}

.session.active {
    border-left-color: var(--blue);
}

.session.active span::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--blue);
    animation: cursorBlink 1s steps(2, start) infinite;
}

.session b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.session span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.feature-band,
.agents-section,
.workflow-section,
.release-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 86px 24px;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 52px;
    align-items: start;
}

.band-copy h2,
.section-title h2,
.release-copy h2 {
    margin: 0;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: 0;
}

.band-copy p,
.release-copy p:last-child {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.72;
}

.feature-cards {
    display: grid;
    gap: 18px;
}

.feature-cards article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.feature-cards span,
.section-title p,
.release-copy > p:first-child {
    display: block;
    margin: 0 0 12px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

.feature-cards h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.feature-cards p {
    margin: 0;
    color: var(--muted);
}

.agents-section {
    border-top: 1px solid var(--line);
}

.section-title {
    max-width: 780px;
    margin-bottom: 34px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.agent-grid article {
    min-height: 112px;
    padding: 18px;
    border: 1px solid #cfe4ff;
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(0, 120, 212, 0.1), transparent),
        #fff;
}

.agent-grid b {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.agent-grid span {
    color: var(--muted);
    font-size: 14px;
}

.workflow-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    max-width: none;
}

.workflow-section .section-title,
.workflow-shell {
    max-width: 1192px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-shell {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.workflow-row {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.workflow-row span {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 800;
}

.workflow-row strong {
    display: block;
    margin: 18px 0 10px;
    font-size: 22px;
}

.workflow-row p {
    margin: 0;
    color: var(--muted);
}

.release-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 62px;
    align-items: start;
}

.release-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
}

.release-panel img {
    width: 64px;
    height: 64px;
}

.release-panel h3 {
    margin: 14px 0 18px;
    font-size: 24px;
}

.release-panel dl {
    margin: 22px 0 0;
}

.release-panel dl div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.release-panel dt {
    margin-bottom: 4px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.release-panel dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.release-panel dd a {
    color: var(--blue);
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@keyframes binaryDrift {
    0% {
        transform: translate3d(-3%, -18px, 0);
    }

    50% {
        transform: translate3d(5%, 24px, 0);
    }

    100% {
        transform: translate3d(-3%, -18px, 0);
    }
}

@keyframes heroSweep {
    0%,
    34% {
        transform: translateX(-65%);
        opacity: 0;
    }

    52% {
        opacity: 1;
    }

    78%,
    100% {
        transform: translateX(65%);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stageFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes stageSweep {
    0%,
    30% {
        transform: translateX(-62%) rotate(6deg);
        opacity: 0;
    }

    48% {
        opacity: 0.9;
    }

    74%,
    100% {
        transform: translateX(62%) rotate(6deg);
        opacity: 0;
    }
}

@keyframes appReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes railPulse {
    0%,
    100% {
        border-color: #64748b;
        background: transparent;
    }

    45% {
        border-color: var(--blue);
        background: rgba(0, 120, 212, 0.12);
    }
}

@keyframes commandScan {
    0%,
    45% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(110%);
    }
}

@keyframes cardLift {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: none;
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    }
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }

    100% {
        box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
    }
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 1100px) {
    .site-nav {
        display: none;
    }

    .brand {
        flex: 1;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .app-shell {
        grid-template-columns: 42px 158px 1fr;
    }

    .sessions-panel {
        display: none;
    }

    .feature-band,
    .release-section {
        grid-template-columns: 1fr;
    }

    .agent-grid,
    .workflow-shell {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .topbar {
        min-height: 62px;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        font-size: 0;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .search-box {
        display: none;
    }

    .download-top {
        min-width: 98px;
        height: 38px;
        font-size: 15px;
    }

    .notice {
        padding: 8px 16px;
        text-align: center;
    }

    .hero-inner {
        padding: 54px 18px 72px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .band-copy h2,
    .section-title h2,
    .release-copy h2 {
        font-size: 34px;
    }

    .download-primary {
        min-width: 0;
        width: 100%;
        font-size: 18px;
    }

    .product-stage {
        padding: 16px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .activity-rail,
    .project-panel,
    .sessions-panel {
        display: none;
    }

    .pipeline,
    .agent-grid,
    .workflow-shell {
        grid-template-columns: 1fr;
    }

    .feature-band,
    .agents-section,
    .workflow-section,
    .release-section {
        padding: 62px 18px;
    }

    .page-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
