/* ================================
   Quantive - Design Tokens
   ================================ */
:root {
    /* Surfaces */
    --bg: #050506;
    --bg-2: #0a0a0c;
    --surface: #101013;
    --surface-2: #16161a;
    --surface-3: #1d1d22;
    --card: linear-gradient(180deg, #121216 0%, #0b0b0d 100%);

    /* Lines */
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;

    /* Brand */
    --orange: #ff6c34;
    --amber: #ff9b34;
    --orange-soft: rgba(255, 108, 52, 0.12);
    --glow: rgba(255, 108, 52, 0.35);
    --grad: linear-gradient(135deg, #ff6c34 0%, #ff9b34 100%);
    --grad-text: linear-gradient(90deg, #ff6c34 0%, #ff9b34 55%, #ffc48a 100%);

    --success: #30d158;
    --danger: #ff453a;

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 5vw, 40px);
    --section-y: clamp(96px, 13vw, 168px);
    --nav-h: 56px;

    /* Radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 30px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

    /* Legacy aliases (inline styles on older pages) */
    --color-primary: var(--orange);
    --color-text: var(--text);
    --color-text-secondary: var(--text-2);
    --color-text-muted: var(--text-3);
    --color-bg: var(--bg);
    --color-border: var(--line);
}

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

html {
    color-scheme: dark;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.011em;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--orange);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ================================
   Layout & Typography
   ================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    position: relative;
    padding: var(--section-y) 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.75rem, 7.6vw, 6.25rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.048em;
}

h2 {
    font-size: clamp(2.25rem, 5.4vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.042em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.022em;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.5;
    letter-spacing: -0.014em;
    color: var(--text-2);
}

.section-head,
.section-header {
    max-width: 860px;
    margin: 0 auto clamp(56px, 7vw, 96px);
    text-align: center;
}

.section-head .lead,
.section-header p {
    max-width: 640px;
    margin: 24px auto 0;
}

.section-head--left {
    margin: 0;
    text-align: left;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.5s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -12px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 40px -12px rgba(255, 108, 52, 0.6);
}

.btn-ghost,
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    cursor: default;
    opacity: 0.8;
}

.btn.is-success {
    background: var(--success);
    box-shadow: none;
}

.btn.is-error {
    background: var(--danger);
    box-shadow: none;
}

/* ================================
   Navigation
   ================================ */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled,
body.menu-open .nav {
    background: rgba(8, 8, 10, 0.72);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 26px;
    height: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.nav-links a {
    font-size: 13.5px;
    color: var(--text-2);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.menu-btn {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 -10px 0 auto;
}

.menu-btn span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }

body.menu-open .menu-btn span:first-child {
    top: 19.5px;
    transform: rotate(45deg);
}

body.menu-open .menu-btn span:last-child {
    top: 19.5px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: rgba(5, 5, 6, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu a:not(.btn) {
    padding: 12px 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.035em;
    border-bottom: 1px solid var(--line);
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.mobile-menu .btn {
    margin-top: 32px;
}

body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
}

body.menu-open .mobile-menu a {
    opacity: 1;
    transform: none;
}

.mobile-menu a:nth-child(2) { transition-delay: 0.03s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.06s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.09s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.12s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.15s; }

/* ================================
   Reveal on scroll
   ================================ */
.js [data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.js [data-animate].is-in {
    opacity: 1;
    transform: none;
}

/* ================================
   Shared bits
   ================================ */
.live-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    animation: live 2s ease-out infinite;
}

@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(255, 108, 52, 0.55); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(255, 108, 52, 0); }
}

/* Cursor spotlight cards */
.spot {
    position: relative;
    isolation: isolate;
}

.spot::before,
.spot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spot::before {
    z-index: -1;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 108, 52, 0.09), transparent 45%);
}

.spot::after {
    padding: 1px;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 150, 90, 0.55), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.spot:hover::before,
.spot:hover::after {
    opacity: 1;
}

.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    color: var(--text);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ================================
   Hero
   ================================ */
.hero {
    --p: 0;
    position: relative;
    padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 9vw, 128px);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -38%;
    left: 50%;
    width: min(1500px, 160vw);
    aspect-ratio: 1.5;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side, rgba(255, 108, 52, 0.30), rgba(255, 120, 52, 0.08) 45%, transparent 72%);
    opacity: calc(1 - var(--p) * 0.5);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
}

.hero-copy {
    max-width: 980px;
    margin: 0 auto;
    transform: translateY(calc(var(--p) * -48px));
    opacity: calc(1 - var(--p) * 0.85);
}

.hero h1 {
    margin-bottom: 28px;
}

.hero-sub {
    max-width: 680px;
    margin: 0 auto 40px;
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.5;
    letter-spacing: -0.016em;
    color: var(--text-2);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Live console */
.console-stage {
    margin-top: clamp(64px, 9vw, 112px);
    perspective: 1800px;
}

.console {
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow:
        inset 0 0 0 1px var(--line-2),
        0 50px 120px -30px rgba(0, 0, 0, 0.9),
        0 0 140px -40px rgba(255, 108, 52, 0.45);
    transform-origin: 50% 0%;
    transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(0.92 + var(--p) * 0.08));
    will-change: transform;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

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

.console-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a2a2f;
}

.console-title {
    margin-right: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.console-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

.console-body {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
}

.console-feed {
    position: relative;
    height: 400px;
    padding: 24px;
    overflow: hidden;
    border-right: 1px solid var(--line);
}

.console-feed::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 96px;
    background: linear-gradient(transparent, #0b0b0d);
    pointer-events: none;
}

.console-label {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
}

.feed {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color 1.2s ease, box-shadow 1.2s ease;
}

.feed-item.is-new {
    animation: feed-in 0.8s var(--ease) both;
}

.feed-item.is-new:first-child {
    background: rgba(255, 108, 52, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.22);
}

@keyframes feed-in {
    from {
        opacity: 0;
        max-height: 0;
        padding-block: 0;
        margin-bottom: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        max-height: 80px;
        transform: none;
    }
}

.feed-agent {
    padding: 4px 7px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-soft);
}

.feed-agent--pqm {
    color: var(--amber);
    background: rgba(255, 155, 52, 0.12);
}

.feed-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-text b {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feed-text span {
    font-size: 12px;
    color: var(--text-3);
}

.feed-time {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}

.console-side {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.kpi:first-child { padding-top: 0; }
.kpi:last-child { border-bottom: 0; padding-bottom: 0; }

.kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
}

.kpi-value {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.kpi-value small {
    margin-left: 3px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
}

.spark {
    width: 100%;
    height: 64px;
    margin-top: 12px;
    overflow: visible;
}

.spark-base {
    fill: none;
    stroke: var(--line-2);
    stroke-dasharray: 3 5;
    vector-effect: non-scaling-stroke;
}

.spark-area {
    fill: url(#sparkFill);
}

.spark-line {
    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 6px rgba(255, 108, 52, 0.6));
}

.console-stage.is-in .spark-line,
html:not(.js) .spark-line {
    animation: draw 2.4s var(--ease) 0.5s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* ================================
   Statement (scroll-lit words)
   ================================ */
.statement {
    position: relative;
    height: 280vh;
}

.statement-sticky {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
}

.statement-text {
    max-width: 1080px;
    font-size: clamp(2rem, 4.8vw, 4.25rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.statement-text .w {
    opacity: var(--o, 0.14);
}

.statement-accent .w {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ================================
   Agents
   ================================ */
.agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.agent-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}

.agent-visual {
    position: relative;
    aspect-ratio: 2 / 1;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 108, 52, 0.10), transparent 70%);
}

.agent-visual canvas {
    width: 100%;
    height: 100%;
}

.floor-tag {
    position: absolute;
    left: 0;
    top: 0;
    padding: 5px 10px;
    border-radius: 980px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
    background: rgba(16, 16, 19, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.4), 0 0 24px -4px rgba(255, 108, 52, 0.5);
    white-space: nowrap;
    transform: translate(var(--tx, 0px), calc(var(--ty, 50px) - 50%));
    will-change: transform;
}

.floor-tag b {
    font-weight: 600;
    color: var(--orange);
}

/* PQM network */
.pqm-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pqm-links path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.pqm-pulses path {
    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 7 93;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 5px rgba(255, 108, 52, 0.9));
    animation: pulse-travel 3.6s linear infinite;
    animation-delay: calc(var(--i) * -0.9s);
}

@keyframes pulse-travel {
    to { stroke-dashoffset: 0; }
}

.pqm-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #1d1d22, #0c0c0e 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.35), 0 0 0 10px rgba(255, 108, 52, 0.05), 0 0 50px -6px rgba(255, 108, 52, 0.55);
    transform: translate(-50%, -50%);
    animation: hub-breathe 3.6s ease-in-out infinite;
}

.pqm-hub img {
    width: 32px;
    height: 32px;
}

@keyframes hub-breathe {
    50% { box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.5), 0 0 0 16px rgba(255, 108, 52, 0.03), 0 0 70px -4px rgba(255, 108, 52, 0.7); }
}

.pqm-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 7px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    background: rgba(18, 18, 22, 0.94);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transform: translate(-50%, -50%);
    animation: node-ping 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 1.2s + 1.6s);
}

.pqm-node--supply {
    color: var(--text);
    animation: none;
}

@keyframes node-ping {
    0%, 30%, 100% { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
    12% { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.7), 0 0 24px -4px rgba(255, 108, 52, 0.6); }
}

.agent-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(28px, 4vw, 44px);
}

.agent-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
}

.agent-tag b {
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--grad);
}

.agent-body h3 {
    margin: 18px 0 14px;
    font-size: clamp(1.625rem, 2.5vw, 2.125rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.agent-body p {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2);
}

.agent-body .check-list {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ================================
   Agent loop
   ================================ */
.loop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.loop-visual-wrap {
    position: sticky;
    top: calc(50vh - min(220px, 20vw));
}

.loop-visual {
    position: relative;
    width: min(440px, 40vw);
    aspect-ratio: 1;
    margin: 0 auto;
}

.loop-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ring-track {
    fill: none;
    stroke: var(--line-2);
    stroke-width: 1.5;
}

.ring-progress {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    filter: drop-shadow(0 0 8px rgba(255, 108, 52, 0.65));
}

.ring-orbit {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: spin 9s linear infinite;
}

.ring-orbit circle {
    fill: var(--amber);
    filter: drop-shadow(0 0 6px rgba(255, 155, 52, 0.9));
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loop-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 8px 15px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    background: #0d0d10;
    box-shadow: inset 0 0 0 1px var(--line-2);
    transform: translate(-50%, -50%);
    transition: color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease, transform 0.6s var(--ease);
}

.loop-node.is-done {
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.45);
}

.loop-node.is-active {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 0 32px -2px rgba(255, 108, 52, 0.7);
    transform: translate(-50%, -50%) scale(1.08);
}

.loop-core {
    position: absolute;
    inset: 24%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 50%;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #18181d, #0a0a0c 72%);
    box-shadow: inset 0 0 0 1px var(--line), 0 0 90px -20px rgba(255, 108, 52, 0.35);
}

.loop-core img {
    width: 44px;
    height: 44px;
}

.loop-readout {
    position: relative;
    width: 72%;
    height: 40px;
}

.loop-readout span {
    position: absolute;
    inset: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.loop-readout span.is-active {
    opacity: 1;
    transform: none;
}

.loop-steps {
    list-style: none;
}

.loop-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64vh;
    transition: opacity 0.6s var(--ease);
}

.js .loop-step {
    opacity: 0.22;
}

.js .loop-step.is-active {
    opacity: 1;
}

.loop-num {
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--orange);
}

.loop-step h3 {
    margin-bottom: 10px;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    letter-spacing: -0.045em;
}

.loop-kicker {
    margin-bottom: 14px;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-weight: 500;
    letter-spacing: -0.016em;
    color: var(--text);
}

.loop-step p:last-child {
    max-width: 460px;
    color: var(--text-2);
}

/* ================================
   Platform (horizontal scroll)
   ================================ */
.hscroll {
    position: relative;
}

.hscroll-sticky {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-y) 0;
    overflow: hidden;
}

.hscroll.is-pinned .hscroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: calc(var(--nav-h) + 24px) 0 32px;
}

.hscroll-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(32px, 5vh, 56px);
}

.hscroll-head h2 {
    font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}

.hscroll-lead {
    max-width: 380px;
}

.hscroll-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hscroll-viewport::-webkit-scrollbar {
    display: none;
}

.hscroll.is-pinned .hscroll-viewport {
    overflow: visible;
}

.hscroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    will-change: transform;
}

.tile {
    display: flex;
    flex-direction: column;
    flex: none;
    width: clamp(290px, 29vw, 390px);
    padding: 24px 24px 30px;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    scroll-snap-align: center;
}

.tile h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.tile p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
}

.tile-visual {
    position: relative;
    height: clamp(150px, 24vh, 210px);
    margin-bottom: 26px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px var(--line);
}

.tile-visual--stack {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.tile-visual--stack span {
    padding: 7px 12px;
    border-radius: 980px;
    font-size: 13px;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--line-2);
    animation: chip-float 6s ease-in-out infinite;
}

.tile-visual--stack span:nth-child(3n+1) { animation-delay: -1s; }
.tile-visual--stack span:nth-child(3n+2) { animation-delay: -3s; }
.tile-visual--stack span:nth-child(2),
.tile-visual--stack span:nth-child(5) {
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.45);
}

@keyframes chip-float {
    50% { transform: translateY(-4px); }
}

.tile-visual--formats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
}

.tile-visual--formats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--line);
}

.tile-visual--formats svg {
    width: 26px;
    height: 26px;
    color: var(--orange);
}

.tile-visual--rules {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--line);
}

.rule span {
    color: var(--text-2);
}

.rule b {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
}

.toggle {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 980px;
    background: var(--surface-3);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.4s var(--ease);
}

.toggle.is-on {
    background: var(--grad);
}

.toggle.is-on::after {
    transform: translateX(14px);
}

.tile-visual--bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 28px 20px 20px;
}

.tile-visual--bars i {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, rgba(255, 155, 52, 0.95), rgba(255, 108, 52, 0.2));
    transform-origin: bottom;
    animation: bar-live 2.8s ease-in-out infinite alternate;
}

.tile-visual--bars i:nth-child(odd) { animation-delay: -1.2s; }
.tile-visual--bars i:nth-child(3n) { animation-delay: -2.1s; }

@keyframes bar-live {
    from { transform: scaleY(0.82); }
    to { transform: scaleY(1); }
}

.tile-visual--trust {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.tile-visual--trust code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--line);
}

.ok {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tile-visual--uptime {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 22px;
}

.uptime-value {
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.uptime-value small {
    font-size: 28px;
}

.uptime-bars {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 3px;
    height: 34px;
}

.uptime-bars i {
    border-radius: 2px;
    background: rgba(255, 108, 52, 0.85);
}

.uptime-bars i:nth-child(19) {
    background: rgba(255, 108, 52, 0.3);
}

.hscroll-progress {
    display: none;
    width: calc(min(var(--container), 100%) - 2 * var(--gutter));
    height: 2px;
    margin: clamp(28px, 5vh, 48px) auto 0;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}

.hscroll.is-pinned .hscroll-progress {
    display: block;
}

.hscroll-progress span {
    display: block;
    height: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
}

/* ================================
   Numbers
   ================================ */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--line);
}

.number {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
    background: var(--bg);
}

.number-value {
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.number--accent .number-value {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.number-label {
    font-size: 15px;
    color: var(--text-2);
}

/* ================================
   Stories
   ================================ */
.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(28px, 3.5vw, 44px);
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.6s var(--ease);
}

.story:hover {
    transform: translateY(-4px);
}

.story--feature {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px clamp(40px, 6vw, 96px);
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(255, 108, 52, 0.2), transparent 60%),
        var(--card);
}

.story-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.story-main .story-link {
    padding-top: 20px;
}

.story-kicker {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
}

.story h3 {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.story--feature h3 {
    max-width: 520px;
    font-size: clamp(2rem, 3.8vw, 3.125rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.story p {
    max-width: 520px;
    color: var(--text-2);
}

.story-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.story-metrics--compact {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 20px;
}

.story-metrics b {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-metrics--compact b {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.story-metrics--stack {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.story-metrics--stack div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.story-metrics--stack div:first-child {
    padding-top: 0;
}

.story-metrics--stack div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.story-metrics--stack b {
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);
}

.story-metrics--stack span {
    margin-top: 0;
    font-size: 14px;
    text-align: right;
}

.story-metrics span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-2);
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--orange);
}

.story-metrics + .story-link {
    margin-top: 12px;
}

.story-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.5s var(--ease);
}

.story:hover .story-link svg {
    transform: translateX(4px);
}

/* ================================
   CTA & Forms
   ================================ */
.cta {
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    bottom: -45%;
    left: 50%;
    width: min(1400px, 140vw);
    aspect-ratio: 2;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 108, 52, 0.26), transparent 72%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.cta-copy .lead {
    max-width: 440px;
    margin-top: 24px;
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-xl);
    background: rgba(17, 17, 21, 0.72);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.cta-form .btn {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label,
.modal-form label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

:is(.cta-form, .modal-form) :is(input:not([type="hidden"]):not([type="file"]), select, textarea) {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.3s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

:is(.cta-form, .modal-form) textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 16px;
    resize: vertical;
}

:is(.cta-form, .modal-form) select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' 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 14px center;
    background-size: 16px;
}

:is(.cta-form, .modal-form) select:invalid:not([multiple]) {
    color: var(--text-3);
}

:is(.cta-form, .modal-form) option {
    color: var(--text);
    background: var(--surface);
}

:is(.cta-form, .modal-form) ::placeholder {
    color: var(--text-3);
}

:is(.cta-form, .modal-form) :is(input, select, textarea):focus {
    outline: none;
    border-color: var(--orange);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 108, 52, 0.18);
}

/* ================================
   Footer
   ================================ */
.footer {
    padding: 72px 0 32px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand p {
    max-width: 260px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-3);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-2);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text);
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-3);
}

.footer-address::before {
    content: "\00b7";
    margin: 0 8px;
}

.footer-social {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-3);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-social:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ================================
   Subpages: header & content
   ================================ */
.page-header {
    position: relative;
    padding: calc(var(--nav-h) + clamp(72px, 10vw, 136px)) 0 clamp(56px, 7vw, 88px);
    overflow-x: clip;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -60%;
    left: 50%;
    width: min(1300px, 150vw);
    aspect-ratio: 1.6;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 108, 52, 0.22), transparent 72%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
}

.page-header h1 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 6.4vw, 4.75rem);
}

.page-header p {
    max-width: 640px;
    margin: 0 auto;
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.5;
    color: var(--text-2);
}

.page-content {
    padding: clamp(24px, 4vw, 48px) 0 var(--section-y);
}

.content-grid {
    max-width: 760px;
    margin: 0 auto;
}

.content-main h2 {
    margin: 72px 0 18px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.035em;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    margin: 40px 0 12px;
    font-size: 1.25rem;
}

.content-main h4 {
    margin: 28px 0 8px;
    font-size: 1rem;
}

.content-main p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--text-2);
}

.content-main strong {
    font-weight: 600;
    color: var(--text);
}

.content-main a:not(.btn) {
    color: var(--orange);
}

.content-main a:not(.btn):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-list {
    list-style: none;
    margin: 24px 0;
}

.content-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 24px;
    line-height: 1.65;
    color: var(--text-2);
}

.content-list li::before {
    content: '';
    position: absolute;
    top: 0.62em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px rgba(255, 108, 52, 0.7);
}

.legal-content ul {
    margin: 12px 0 24px 22px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.65;
    color: var(--text-2);
}

.legal-content li::marker {
    color: var(--orange);
}

.legal-updated {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-3) !important;
}

.cta-box {
    position: relative;
    margin-top: 72px;
    padding: clamp(32px, 5vw, 48px);
    overflow: hidden;
    border-radius: var(--r-xl);
    text-align: center;
    background:
        radial-gradient(ellipse 80% 90% at 50% 120%, rgba(255, 108, 52, 0.28), transparent 70%),
        var(--card);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.cta-box h3 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.035em;
}

.cta-box p {
    margin-bottom: 24px;
    color: var(--text-2);
}

/* Careers */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.benefit-card {
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}

.content-main .benefit-card h3 {
    margin: 0 0 8px;
    font-size: 1.0625rem;
}

.content-main .benefit-card p {
    margin: 0;
    font-size: 15px;
}

.jobs-list {
    margin: 32px 0;
}

.job-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.3s ease;
}

.job-card:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.45);
}

.content-main .job-info h3 {
    margin: 0 0 4px;
    font-size: 1.0625rem;
}

.job-meta {
    font-size: 13px;
    color: var(--text-3);
}

.job-details {
    flex-basis: 100%;
}

.job-details summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
}

.job-details .content-list {
    margin: 12px 0;
}

.job-details p:last-child {
    margin-bottom: 0;
}

/* ================================
   Team
   ================================ */
.team-hero .container {
    max-width: 1080px;
}

.team-hero-img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: var(--r-xl);
    box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(255, 108, 52, 0.4);
}

.team-section {
    padding: clamp(80px, 10vw, 136px) 0 0;
}

.team-section .section-header {
    margin-bottom: 48px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.team-grid .team-card {
    width: calc((100% - 40px) / 3);
}

.team-grid-leadership {
    max-width: 660px;
}

.team-grid-leadership .team-card {
    width: calc((100% - 20px) / 2);
}

.team-card {
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.6s var(--ease), box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.4), 0 30px 60px -30px rgba(255, 108, 52, 0.35);
}

.team-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-2);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s var(--ease);
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-card-body {
    padding: 20px 24px 24px;
    text-align: center;
}

.team-card-body h3 {
    margin-bottom: 4px;
    font-size: 1.0625rem;
}

.team-role {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--orange);
}

.team-linkedin {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: color 0.2s ease, background 0.2s ease;
}

.team-linkedin:hover {
    color: #fff;
    background: var(--orange);
}

.team-linkedin svg {
    width: 15px;
    height: 15px;
}

.team-cta {
    padding: 0 0 var(--section-y);
}

.team-cta .cta-box {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Blog
   ================================ */
.blog {
    padding: clamp(24px, 4vw, 48px) 0 var(--section-y);
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.6s var(--ease), box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.4), 0 30px 60px -30px rgba(255, 108, 52, 0.35);
}

.blog-card-media {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.blog-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
}

.blog-media-1 { background: radial-gradient(circle at 20% 0%, #ffb14d 0%, transparent 55%), linear-gradient(135deg, #ff6c34 0%, #b43c10 100%); }
.blog-media-2 { background: radial-gradient(circle at 85% 110%, rgba(255, 108, 52, 0.55) 0%, transparent 60%), linear-gradient(135deg, #1f1f24 0%, #0c0c0e 100%); }
.blog-media-3 { background: radial-gradient(circle at 80% 10%, #ffd08a 0%, transparent 50%), linear-gradient(135deg, #ff9b34 0%, #ff6c34 100%); }
.blog-media-4 { background: radial-gradient(circle at 20% 100%, rgba(255, 155, 52, 0.45) 0%, transparent 60%), linear-gradient(135deg, #18181c 0%, #2a2a31 100%); }
.blog-media-5 { background: linear-gradient(135deg, #e55a25 0%, #ff9b34 100%); }
.blog-media-6 { background: linear-gradient(135deg, #222227 0%, #0b0b0d 100%); }

.blog-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 5px 11px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.blog-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
}

.blog-card-category {
    font-weight: 600;
    color: var(--orange);
}

.blog-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-3);
}

.blog-card h3 {
    font-size: 1.1875rem;
    line-height: 1.32;
}

.blog-card p {
    font-size: 15px;
    color: var(--text-2);
}

/* ================================
   Article
   ================================ */
.article-header {
    position: relative;
    padding: calc(var(--nav-h) + clamp(64px, 8vw, 112px)) 0 clamp(32px, 4vw, 48px);
    overflow-x: clip;
}

.article-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -70%;
    left: 50%;
    width: min(1300px, 150vw);
    aspect-ratio: 1.6;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 108, 52, 0.18), transparent 72%);
    pointer-events: none;
}

.article-header .container {
    position: relative;
    max-width: calc(760px + 2 * var(--gutter));
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s ease, gap 0.4s var(--ease);
}

.article-back:hover {
    gap: 10px;
    color: var(--orange);
}

.article-back svg {
    width: 16px;
    height: 16px;
}

.article-meta {
    margin-bottom: 20px;
}

.article-header h1 {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.article-lead {
    font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
    line-height: 1.55;
    color: var(--text-2);
}

.article-body {
    padding: clamp(24px, 4vw, 48px) 0 var(--section-y);
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 {
    margin: 64px 0 18px;
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
    letter-spacing: -0.035em;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.75;
    color: var(--text-2);
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px 22px;
    color: var(--text-2);
}

.article-content li {
    margin-bottom: 10px;
    padding-left: 4px;
    line-height: 1.65;
}

.article-content li::marker {
    color: var(--orange);
}

.article-content strong,
.article-content li strong {
    font-weight: 600;
    color: var(--text);
}

.article-stats {
    padding: 0 0 20px;
}

.article-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.article-content .article-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    margin: 40px 0;
}

.article-stat {
    padding: 22px 16px;
    border-radius: var(--r-lg);
    text-align: center;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}

.article-stat-value {
    display: block;
    margin-bottom: 6px;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.045em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-stat-label {
    font-size: 13px;
    color: var(--text-2);
}

.article-quote {
    margin: 48px 0;
    padding: 4px 0 4px 28px;
    border-left: 2px solid var(--orange);
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.025em;
    color: var(--text);
}

.article-cta {
    margin-top: 64px;
    padding: clamp(32px, 5vw, 48px);
    border-radius: var(--r-xl);
    text-align: center;
    background:
        radial-gradient(ellipse 80% 90% at 50% 120%, rgba(255, 108, 52, 0.28), transparent 70%),
        var(--card);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.article-cta h3 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.035em;
}

.article-content .article-cta p {
    margin-bottom: 24px;
}

/* Article infographics */
.article-infographic {
    margin: 40px 0 44px;
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--r-xl);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
}

.article-infographic-label {
    display: block;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

.infographic-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
}

.infographic-compare-col {
    padding: 20px;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.infographic-compare-col.is-highlight {
    background: linear-gradient(160deg, rgba(255, 108, 52, 0.12) 0%, var(--surface) 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.4);
}

.infographic-compare-title {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
}

.infographic-compare-col.is-muted .infographic-compare-title {
    color: var(--text-3);
}

.infographic-compare-list {
    list-style: none;
    margin: 0 !important;
    padding: 0;
}

.infographic-compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-2);
}

.infographic-compare-list li:last-child {
    margin-bottom: 0 !important;
}

.infographic-compare-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.infographic-compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-3);
}

.infographic-loop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.infographic-loop-step {
    padding: 20px 12px 16px;
    border-radius: var(--r-md);
    text-align: center;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.infographic-loop-num {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--grad);
}

.infographic-loop-step h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.infographic-loop-step p {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.45;
}

.infographic-loop-arrow {
    display: none;
}

.infographic-loop-caption {
    margin: 16px 0 0 !important;
    font-size: 13px;
    text-align: center;
    color: var(--text-3) !important;
}

.infographic-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.infographic-match-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 20px 16px;
    border-radius: var(--r-md);
    text-align: center;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.infographic-match-panel.is-core {
    min-height: 170px;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 0 50px -10px rgba(255, 108, 52, 0.6);
}

.infographic-match-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.infographic-match-panel.is-core .infographic-match-kicker {
    color: rgba(255, 255, 255, 0.8);
}

.infographic-match-panel h4 {
    margin: 0 0 12px;
    font-size: 16px;
}

.infographic-match-panel.is-core h4 {
    margin-bottom: 8px;
    color: #fff;
}

.infographic-match-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.infographic-match-tags span {
    padding: 4px 9px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.06);
}

.infographic-match-panel.is-core p {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.infographic-match-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange);
}

.infographic-match-connector svg {
    width: 28px;
    height: 28px;
}

.infographic-fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.infographic-fit-card {
    padding: 18px;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.infographic-fit-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.infographic-fit-card p {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.45;
}

.infographic-fit-bar {
    height: 4px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.08);
}

.infographic-fit-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--grad);
}

/* ================================
   Case study pages
   ================================ */
.cs-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(64px, 8vw, 112px)) 0 clamp(56px, 7vw, 88px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: min(1000px, 120vw);
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(255, 108, 52, 0.2), transparent 72%);
    pointer-events: none;
}

.cs-hero .container {
    position: relative;
}

.cs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-3);
}

.cs-breadcrumb a {
    font-weight: 500;
    color: var(--orange);
}

.cs-breadcrumb-sep {
    color: var(--text-3);
}

.cs-category-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 5px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-soft);
}

.cs-hero img {
    box-shadow: 0 0 0 1px var(--line-2);
}

.cs-hero h1 {
    max-width: 880px;
    margin-bottom: 40px;
    font-size: clamp(2.125rem, 5vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.cs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
}

.cs-meta-value {
    font-size: 15px;
    font-weight: 600;
}

.cs-meta-divider {
    width: 1px;
    height: 36px;
    background: var(--line-2);
}

.cs-stats-banner {
    padding: clamp(40px, 6vw, 72px) 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.cs-stat-number {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(2.5rem, 5.4vw, 4.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cs-stat-desc {
    display: block;
    font-size: 14px;
    color: var(--text-2);
}

.cs-body {
    padding: var(--section-y) 0;
}

.cs-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: start;
    gap: clamp(48px, 6vw, 88px);
}

.cs-main {
    min-width: 0;
}

.cs-section {
    margin-bottom: 72px;
}

.cs-section:last-child {
    margin-bottom: 0;
}

.cs-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

.cs-section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
}

.cs-section h2 {
    margin-bottom: 18px;
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    letter-spacing: -0.035em;
}

.cs-section p {
    margin-bottom: 16px;
    line-height: 1.75;
    color: var(--text-2);
}

.cs-section p:last-child {
    margin-bottom: 0;
}

.cs-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.cs-step {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 20px;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.3s ease;
}

.cs-step:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.45);
}

.cs-step-num {
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 7px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-soft);
}

.cs-step-content h4 {
    margin-bottom: 6px;
    font-size: 1.0625rem;
}

.cs-step-content p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
}

.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.cs-result-card {
    padding: 24px 18px;
    border-radius: var(--r-lg);
    text-align: center;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}

.cs-result-number {
    display: block;
    margin-bottom: 8px;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cs-result-label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-2);
}

.cs-quote {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 28px;
    border-left: 2px solid var(--orange);
}

.cs-quote-mark {
    display: none;
}

.cs-section .cs-quote-text {
    margin-bottom: 16px;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.025em;
    color: var(--text);
}

.cs-quote-attr {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
}

.cs-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-sidebar-card {
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}

.cs-sidebar-card h4 {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cs-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cs-detail-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-detail-list .detail-label {
    font-size: 13px;
    font-weight: 600;
}

.cs-detail-list .detail-value {
    font-size: 14px;
    color: var(--text-2);
}

.cs-products-used {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-product-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--line);
}

.cs-product-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px rgba(255, 108, 52, 0.8);
}

.cs-cta-card {
    padding: 28px 24px;
    border-radius: var(--r-lg);
    text-align: center;
    background:
        radial-gradient(ellipse 100% 100% at 50% 130%, rgba(255, 108, 52, 0.45), transparent 70%),
        var(--card);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 52, 0.35);
}

.cs-cta-card h4 {
    margin-bottom: 10px;
    font-size: 1.0625rem;
}

.cs-cta-card p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}

.cs-cta-card .btn {
    width: 100%;
    color: #fff;
    background: var(--grad);
}

.cs-timeline-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.cs-timeline-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: var(--orange-soft);
}

.cs-timeline-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--orange);
}

.cs-timeline-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
}

.cs-timeline-text strong {
    font-weight: 600;
    color: var(--text);
}

.cs-back-bar {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--orange);
    transition: gap 0.4s var(--ease);
}

.cs-back-link:hover {
    gap: 12px;
}

.cs-back-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ================================
   Modal
   ================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    padding: 32px;
    overflow-y: auto;
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.5s var(--ease);
}

.modal.active .modal-content {
    transform: none;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-content h2 {
    margin-bottom: 8px;
    padding-right: 40px;
    font-size: 1.625rem;
    letter-spacing: -0.035em;
}

.modal-subtitle {
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-2);
}

.modal-form {
    margin-top: 24px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-form input[type="file"] {
    padding: 8px;
    border: 1px dashed var(--line-2);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-2);
}

.modal-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.modal-form button[type="submit"] {
    margin-top: 8px;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
    .agent-body .check-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .agent-grid,
    .stories-grid,
    .cta-inner,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .agent-body .check-list {
        grid-template-columns: 1fr 1fr;
    }

    .story--feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Loop: compact sticky ring above the steps */
    .loop-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .loop-visual-wrap {
        top: var(--nav-h);
        z-index: 2;
        padding: 16px 0 28px;
        background: linear-gradient(var(--bg) 82%, transparent);
    }

    .loop-visual {
        width: min(260px, 66vw);
    }

    .loop-node {
        padding: 6px 11px;
        font-size: 11.5px;
    }

    .loop-core img {
        width: 34px;
        height: 34px;
    }

    .loop-readout {
        display: none;
    }

    .loop-step {
        min-height: 58vh;
    }

    .hscroll-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tile {
        width: min(82vw, 380px);
    }

    .cs-layout {
        grid-template-columns: 1fr;
    }

    .cs-sidebar {
        position: static;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid .team-card {
        width: calc((100% - 20px) / 2);
    }

    .infographic-compare,
    .infographic-match {
        grid-template-columns: 1fr;
    }

    .infographic-match-connector {
        transform: rotate(90deg);
    }

    .infographic-match-panel,
    .infographic-match-panel.is-core {
        min-height: 0;
    }

    .infographic-loop {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .console-body {
        grid-template-columns: 1fr;
    }

    .console-side {
        flex-direction: row;
        order: -1;
        padding: 16px 18px;
        border-bottom: 1px solid var(--line);
    }

    .kpi,
    .kpi:first-child,
    .kpi:last-child {
        flex: 1;
        padding: 0 12px;
        border-bottom: 0;
        border-left: 1px solid var(--line);
    }

    .kpi:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .kpi-value {
        font-size: 22px;
    }

    .kpi-value small {
        font-size: 12px;
    }

    .spark {
        display: none;
    }

    .console-feed {
        height: 330px;
        padding: 18px;
        border-right: 0;
    }

    .feed-item {
        gap: 10px;
        padding: 10px 12px;
    }

    .feed-text b {
        font-size: 13px;
    }

    .feed-time {
        display: none;
    }

    .cs-stats-grid,
    .cs-results-grid,
    .article-content .article-stats-grid {
        grid-template-columns: 1fr;
    }

    .article-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-meta-divider {
        display: none;
    }

    .cs-step {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hero-cta .btn {
        width: 100%;
    }

    .agent-body .check-list,
    .cta-form,
    .footer-cols,
    .blog-grid,
    .benefits-grid,
    .infographic-fit-grid,
    .infographic-loop {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }

    .story-metrics--stack b {
        font-size: 2.25rem;
    }

    .story-metrics--stack span {
        font-size: 13px;
    }

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

    .team-grid,
    .team-grid-leadership {
        max-width: 360px;
    }

    .team-grid .team-card,
    .team-grid-leadership .team-card {
        width: 100%;
    }

    .job-card .btn {
        width: 100%;
    }

    .modal-content {
        padding: 24px;
    }
}

/* ================================
   Reduced motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js [data-animate] {
        opacity: 1;
        transform: none;
    }

    .hero-copy,
    .console {
        opacity: 1;
        transform: none;
    }

    .statement {
        height: auto;
    }

    .statement-sticky {
        position: relative;
        height: auto;
        padding: var(--section-y) 0;
    }

    .statement-text .w {
        opacity: 1;
    }

    .spark-line {
        stroke-dashoffset: 0;
    }
}
