/* =====================================================================
   BuildPro — homepage (2026): aurora gradients, glass surfaces, bento
   grid, scroll-driven reveals. All motion is progressive: content is
   visible without it, and prefers-reduced-motion turns it off.
   ===================================================================== */

@property --x-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.home {
    --x-navy: #001529;
    --x-deep: #000b18;
    --x-blue: #2563eb;
    --x-sky: #60a5fa;
    --x-amber: #ffb703;
    --x-amber-2: #ff8a00;
    --x-glass: rgba(255, 255, 255, 0.06);
    --x-glass-bd: rgba(255, 255, 255, 0.12);
    --x-ease: cubic-bezier(0.22, 1, 0.36, 1);
    background: #f5f7fb;
    overflow-x: clip;
}
.home main { overflow-x: clip; }

/* ---------- Header: transparent over the hero, glass once scrolled ---------- */
.home .site-header {
    position: fixed; left: 0; right: 0; top: 0;
    background: transparent; border-bottom-color: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.home .site-header.is-scrolled {
    background: rgba(0, 16, 34, 0.62);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
}
.home .site-nav__links a { color: #cbd5e1; border-radius: 999px; }
.home .site-nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Scroll progress (scroll-driven where supported) */
.x-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.x-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--x-amber), var(--x-amber-2), var(--x-sky)); box-shadow: 0 0 12px rgba(255, 183, 3, 0.6); }

/* ---------- Shared pieces ---------- */
.x-section { position: relative; padding: 120px 0; }
.x-dark { color: #fff; background: var(--x-deep); overflow: hidden; }
.x-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #b7791f;
}
.x-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--x-amber), transparent); }
.x-eyebrow--light { color: var(--x-amber); }
.x-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.x-head--left { margin-left: 0; text-align: left; }
.x-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; color: #0b1220; }
.x-head p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: #475569; }
.x-head--light h2 { color: #fff; }
.x-head--light p { color: #b6c3d6; }
.x-grad {
    background: linear-gradient(100deg, #ffd166 0%, var(--x-amber) 35%, #ff9f1c 60%, #7cc4ff 100%);
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: x-shine 8s var(--x-ease) infinite alternate;
}
.x-grad-dark {
    background: linear-gradient(100deg, #1d4ed8 0%, #2563eb 40%, #d97706 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes x-shine { to { background-position: 100% 0; } }

.x-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #1d4ed8;
    background: linear-gradient(145deg, #eff6ff, #dbeafe); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(37, 99, 235, 0.14);
}
.x-icon .icon { width: 23px; height: 23px; }
.x-icon--glass { color: var(--x-amber); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.x-icon--dark { color: var(--x-amber); background: var(--x-navy); box-shadow: 0 8px 20px rgba(0, 21, 41, 0.3); }

.x-note { display: flex; gap: 10px; margin-top: 22px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; color: #7c4a03;
    background: rgba(255, 183, 3, 0.1); border: 1px solid rgba(255, 183, 3, 0.35); border-radius: 14px; }
.x-note .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.x-note--light { color: #fde68a; background: rgba(255, 183, 3, 0.08); border-color: rgba(255, 183, 3, 0.25); }
.x-fine { display: flex; gap: 8px; margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: #64748b; }
.x-fine .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }

/* Glass surfaces */
.x-glass {
    background: rgba(8, 24, 48, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.x-glass-dark {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.3);
}
.x-glass-light {
    background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 24px;
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* Buttons */
.x-btn-glow { position: relative; isolation: isolate; }
.x-btn-glow::after {
    content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; filter: blur(14px); opacity: 0.55;
    background: linear-gradient(90deg, var(--x-amber), var(--x-amber-2)); transition: opacity 0.3s;
}
.x-btn-glow:hover::after { opacity: 0.85; }
.x-btn-glass {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
    font-size: 15.5px; font-weight: 600; color: #fff; border-radius: 12px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--x-ease);
}
.x-btn-glass:hover { color: #fff; background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.32); }
.x-btn-glass .icon { width: 18px; height: 18px; }
.x-btn-glass--sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
[data-magnetic] { transition: transform 0.25s var(--x-ease); will-change: transform; }

/* Aurora background */
.x-aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; filter: blur(70px); opacity: 0.85; }
.x-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: x-drift 18s ease-in-out infinite alternate; }
.x-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -6vw; top: -8vw; background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 65%); }
.x-aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -4vw; top: 4vw; background: radial-gradient(circle, rgba(255, 183, 3, 0.32), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.x-aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 34vw; top: 22vw; background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
.x-aurora--soft { opacity: 0.5; }
@keyframes x-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vw, 3vw, 0) scale(1.12); }
    100% { transform: translate3d(-4vw, 5vw, 0) scale(0.95); }
}
.x-hero__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(148, 184, 235, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 184, 235, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.x-mesh { position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
    background: radial-gradient(600px 400px at 10% 10%, rgba(37, 99, 235, 0.10), transparent 60%),
                radial-gradient(500px 360px at 90% 30%, rgba(255, 183, 3, 0.12), transparent 60%),
                radial-gradient(700px 400px at 50% 110%, rgba(96, 165, 250, 0.12), transparent 60%); }
.x-mesh--warm { background: radial-gradient(700px 420px at 85% 0%, rgba(255, 183, 3, 0.14), transparent 60%),
                            radial-gradient(600px 400px at 0% 100%, rgba(37, 99, 235, 0.10), transparent 60%); }

/* ---------- Hero ---------- */
.x-hero {
    position: relative; overflow: hidden; color: #fff; padding: 150px 0 80px;
    background: radial-gradient(1200px 700px at 70% -10%, #0b2a55 0%, transparent 60%), linear-gradient(180deg, #001a33 0%, var(--x-deep) 70%);
}
.x-hero::after { /* soft film grain */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.x-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 40px; }
.x-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; margin-bottom: 28px;
    font-size: 13px; color: #dbe7f7; border-radius: 999px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: x-up 0.9s var(--x-ease) both;
}
.x-chip:hover { color: #fff; border-color: rgba(255, 183, 3, 0.5); }
.x-chip b { margin-right: 6px; padding: 2px 8px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--x-navy); background: var(--x-amber); border-radius: 999px; }
.x-chip .icon { width: 14px; height: 14px; }
.x-chip__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.x-chip__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; animation: x-ping 2s ease-out infinite; }
@keyframes x-ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.x-hero__title { font-size: clamp(44px, 6.6vw, 92px); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; }
.x-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.x-line > span { display: inline-block; animation: x-rise 1.1s var(--x-ease) both; }
.x-line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes x-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes x-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.x-hero__motto { margin-top: 22px; font-size: 13.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--x-amber); animation: x-up 1s 0.3s var(--x-ease) both; }
.x-hero__lead { max-width: 600px; margin-top: 18px; font-size: 19px; line-height: 1.65; color: #b9c7da; animation: x-up 1s 0.4s var(--x-ease) both; }
.x-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: x-up 1s 0.5s var(--x-ease) both; }
.x-hero__actions--center { justify-content: center; }
.x-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; list-style: none; font-size: 13.5px; color: #93a4bd; animation: x-up 1s 0.6s var(--x-ease) both; }
.x-hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.x-hero__trust .icon { width: 15px; height: 15px; padding: 2px; color: #04210f; background: #34d399; border-radius: 50%; stroke-width: 3; }

/* Orbiting logo */
.x-orbit { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; animation: x-up 1.2s 0.2s var(--x-ease) both; }
.x-orbit__logo {
    position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 183, 3, 0.25), 0 40px 80px rgba(0, 0, 0, 0.5); animation: x-bob 7s ease-in-out infinite;
}
.x-orbit__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 65%); filter: blur(30px); animation: x-pulse 5s ease-in-out infinite; }
.x-orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(148, 184, 235, 0.35); }
.x-orbit__ring--1 { inset: 4%; animation: x-spin 40s linear infinite; }
.x-orbit__ring--2 { inset: -6%; border-style: solid; border-color: rgba(255, 183, 3, 0.18); animation: x-spin 60s linear infinite reverse; }
.x-orbit__ring--1::after, .x-orbit__ring--2::after {
    content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--x-amber); box-shadow: 0 0 16px var(--x-amber);
}
.x-orbit__ring--2::after { background: var(--x-sky); box-shadow: 0 0 16px var(--x-sky); left: auto; right: -5px; }
.x-float {
    position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; white-space: nowrap;
    font-size: 13px; color: #e2e8f0; border-radius: 14px;
    background: rgba(8, 24, 48, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    animation: x-bob 6s ease-in-out infinite;
}
.x-float .icon { width: 16px; height: 16px; color: var(--x-amber); }
.x-float b { color: #34d399; font-weight: 700; }
.x-float--a { top: 10%; left: -6%; }
.x-float--b { top: 44%; right: -10%; animation-delay: -2s; }
.x-float--c { bottom: 6%; left: 4%; animation-delay: -4s; }
@keyframes x-spin { to { transform: rotate(360deg); } }
@keyframes x-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes x-pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* Product stage with 3D tilt that flattens as you scroll */
.x-stage { position: relative; z-index: 2; margin-top: 90px; perspective: 1800px; }
.x-device {
    --tilt: 0; position: relative; margin: 0;
    transform: rotateX(calc(var(--tilt) * 18deg)) scale(calc(1 - var(--tilt) * 0.06)); transform-origin: 50% 0;
    transition: transform 0.1s linear;
}
.x-device__screen { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 120px rgba(37, 99, 235, 0.25); }
.x-callout { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; color: #e2e8f0; animation: x-bob 7s ease-in-out infinite; }
.x-callout small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #93a4bd; }
.x-callout b { display: block; font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.x-callout em { display: block; font-style: normal; font-size: 12px; color: #93a4bd; }
.x-callout__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--x-navy); background: var(--x-amber); }
.x-callout__icon--ok { background: #34d399; color: #04210f; }
.x-callout__icon .icon { width: 20px; height: 20px; }
.x-callout--l { left: -34px; bottom: 16%; }
.x-callout--r { right: -30px; top: 22%; animation-delay: -3s; }
.x-caption { margin-top: 26px; text-align: center; font-size: 13px; color: #7d8ca3; }

/* ---------- Marquee ---------- */
.x-marquee { position: relative; overflow: hidden; padding: 22px 0; background: var(--x-navy); border-block: 1px solid rgba(255, 255, 255, 0.06);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.x-marquee__track { display: flex; width: max-content; animation: x-marquee 50s linear infinite; }
.x-marquee:hover .x-marquee__track { animation-play-state: paused; }
.x-marquee ul { display: flex; list-style: none; }
.x-marquee li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: #cbd5e1; }
.x-marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--x-amber); }
@keyframes x-marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.x-stats { padding: 80px 0; background: #fff; }
.x-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.x-stat { position: relative; padding: 28px 26px; border-radius: 22px; background: linear-gradient(160deg, #f8fafc, #eef2f8); border: 1px solid #e2e8f0; overflow: hidden; }
.x-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--x-amber), var(--x-blue)); }
.x-stat strong { display: block; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--x-navy); font-variant-numeric: tabular-nums; }
.x-stat__label { display: block; margin-top: 12px; font-size: 15px; font-weight: 700; color: #0f172a; }
.x-stat__hint { display: block; margin-top: 4px; font-size: 13.5px; color: #64748b; }

/* ---------- Bento ---------- */
.x-features { background: #f5f7fb; overflow: hidden; }
.x-bento { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.x-card {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; overflow: hidden; isolation: isolate;
    background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 26px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.4s var(--x-ease), box-shadow 0.4s var(--x-ease), border-color 0.3s;
}
.x-card:hover { transform: translateY(-6px); border-color: rgba(37, 99, 235, 0.25); box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12); }
.x-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #0b1220; }
.x-card p { font-size: 15px; line-height: 1.6; color: #475569; }
.x-card--hero { grid-column: span 2; grid-row: span 2; }
.x-card--hero .x-card__art { margin-top: auto; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.x-card--tall { grid-row: span 2; }
.x-card--wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 28px; }
.x-card--wide .x-card__text { display: grid; gap: 12px; flex: 1; }
.x-card--dark { color: #fff; background: linear-gradient(165deg, #0b2a55 0%, var(--x-navy) 60%); border-color: rgba(255, 255, 255, 0.08); }
.x-card--dark h3 { color: #fff; }
.x-card--dark p { color: #b6c3d6; }
.x-card--dark .x-card__art { margin-top: auto; }
.x-card--amber { background: linear-gradient(120deg, #fff7e0 0%, #ffe8a8 100%); border-color: #fcd97a; }
.x-card--amber p { color: #6b4a04; }
.x-card__prompt { flex: none; display: grid; gap: 10px; padding: 18px 20px; min-width: 300px; border-radius: 18px; background: var(--x-navy); color: #e2e8f0; font-size: 14px; box-shadow: 0 20px 40px rgba(0, 21, 41, 0.25); }
.x-card__prompt b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: #34d399; }
.x-card__prompt .icon { width: 15px; height: 15px; }
/* Cursor spotlight (position set by home.js) */
.x-spot::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.12), transparent 45%);
}
.x-card--dark.x-spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 183, 3, 0.16), transparent 45%); }
.x-spot:hover::before { opacity: 1; }
.x-float-soft { animation: x-bob 8s ease-in-out infinite; }

/* ---------- Discipline tabs ---------- */
.x-show { background: #fff; }
.x-tabs__list {
    position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 44px; padding: 6px; overflow-x: auto;
    background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; scrollbar-width: none;
}
.x-tabs__list button {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
    font-size: 14.5px; font-weight: 700; color: #475569; background: none; border: 0; border-radius: 999px; white-space: nowrap; cursor: pointer;
    transition: color 0.3s;
}
.x-tabs__list button .icon { width: 17px; height: 17px; }
.x-tabs__list button[aria-selected="true"] { color: #fff; }
.x-tabs__list button[aria-selected="true"] .icon { color: var(--x-amber); }
.x-tabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--x-navy);
    box-shadow: 0 8px 20px rgba(0, 21, 41, 0.3); transition: transform 0.45s var(--x-ease), width 0.45s var(--x-ease); }
.x-tabs:not(.is-ready) .x-tabs__ink { display: none; }
.x-tabs:not(.is-ready) button[aria-selected="true"] { background: var(--x-navy); }
.x-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
.x-tabs:not(.is-ready) .x-panel + .x-panel { margin-top: 80px; }
.x-panel.is-entering { animation: x-up 0.6s var(--x-ease) both; }
.x-panel h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: #0b1220; }
.x-panel__copy > p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: #475569; }
.x-ticks { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.x-ticks li { position: relative; padding-left: 32px; font-size: 15.5px; color: #1e293b; }
.x-ticks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 7px;
    background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
    border: 1px solid #a7f3d0;
}
.x-sheet { position: relative; padding: 26px 26px 0; border-radius: 22px; background: #fbfcfe; border: 1px solid #e2e8f0; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1); overflow: hidden; }
.x-sheet::before { content: ""; position: absolute; inset: 12px; border: 1px solid #e2e8f0; border-radius: 14px; pointer-events: none; }
.x-sheet > svg { position: relative; display: block; max-height: 420px; margin: 0 auto; }
.x-sheet__strip { position: relative; display: flex; justify-content: space-between; gap: 12px; margin: 18px -26px 0; padding: 12px 26px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #475569; background: #f1f5f9; border-top: 1px solid #e2e8f0; }
.x-sheet--blue { background: #0e1d33; border-color: #0e1d33; }
.x-sheet--blue::before { border-color: rgba(127, 176, 228, 0.18); }
.x-sheet--blue .x-sheet__strip { color: #9fc3ee; background: #0b182b; border-top-color: rgba(127, 176, 228, 0.18); }
.x-panel .drawing-sheet { box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12); border-radius: 18px; }

/* ---------- BIM twin ---------- */
.x-twin { padding: 130px 0; background: radial-gradient(900px 500px at 50% 0%, #0b2a55, transparent 70%), var(--x-deep); }
.x-twin .container { position: relative; z-index: 1; }
.x-twin__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 26px; }
.x-twin__panel { margin: 0; padding: 20px; }
.x-twin__panel figcaption { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #93a4bd; }
.x-beam { display: grid; justify-items: center; gap: 10px; }
.x-beam__line { width: 2px; height: 70px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--x-amber), transparent); background-size: 100% 200%; animation: x-flow 2s linear infinite; }
.x-beam__chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--x-navy); background: var(--x-amber); border-radius: 999px; box-shadow: 0 0 30px rgba(255, 183, 3, 0.45); white-space: nowrap; }
.x-beam__chip .icon { width: 16px; height: 16px; animation: x-spin 3s linear infinite; }
@keyframes x-flow { from { background-position: 0 -100%; } to { background-position: 0 100%; } }
.x-chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; list-style: none; counter-reset: c; }
.x-chain li {
    position: relative; padding: 10px 16px 10px 14px; font-size: 13.5px; color: #cbd5e1; border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    animation: x-light 7s calc(var(--i) * 1s) infinite;
}
@keyframes x-light {
    0%, 12% { color: #0b1220; background: var(--x-amber); border-color: var(--x-amber); box-shadow: 0 0 24px rgba(255, 183, 3, 0.5); }
    20%, 100% { color: #cbd5e1; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
}

/* ---------- Quantities & BQ ---------- */
.x-qbq { background: #f5f7fb; overflow: hidden; }
.x-qbq__grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 22px; align-items: start; }
.x-qty, .x-bq { padding: 26px; }
.x-qty__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.x-qty__head strong { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--x-navy); }
.x-qty__head span { font-size: 12.5px; color: #64748b; }
.x-qty__list { display: grid; gap: 2px; }
.x-qty__list div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; transition: background-color 0.2s; }
.x-qty__list div:hover { background: rgba(37, 99, 235, 0.06); }
.x-qty__list dt { color: #475569; }
.x-qty__list dd { font-weight: 800; color: #0b1220; font-variant-numeric: tabular-nums; }
.x-qty__list small { font-weight: 500; color: #64748b; }
.x-trace { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--x-navy); color: #cbd5e1; font-size: 13.5px; }
.x-trace__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 800; color: var(--x-amber); }
.x-trace__title .icon { width: 16px; height: 16px; }
.x-trace ul { display: grid; gap: 4px; padding-left: 18px; }
.x-bq .table-scroll { border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; }
.x-bq .bq-table tfoot td { background: var(--x-navy); }

/* ---------- AI terminal ---------- */
.x-ai { padding: 130px 0; background: radial-gradient(800px 500px at 90% 50%, #0b2a55, transparent 70%), var(--x-deep); }
.x-ai__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.x-ai .x-head { margin-bottom: 0; }
.x-terminal { border-radius: 22px; overflow: hidden; background: rgba(2, 10, 22, 0.75); border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 183, 3, 0.08), 0 0 80px rgba(37, 99, 235, 0.2); }
.x-terminal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.x-terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.x-terminal__bar i:nth-child(2) { background: #fbbf24; }
.x-terminal__bar i:nth-child(3) { background: #34d399; }
.x-terminal__bar span { margin-left: 10px; font-size: 12.5px; color: #93a4bd; }
.x-terminal__body { display: grid; gap: 18px; padding: 24px; }
.x-term-user { display: grid; gap: 8px; }
.x-term-user span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--x-amber); }
.x-term-user em { font-style: normal; font-size: 17px; color: #fff; }
.x-term-code { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65; color: #a5d6ff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; overflow-x: auto; }
.x-term-code b { font-weight: 500; color: #ffd166; }
.x-term-checks { display: grid; gap: 8px; list-style: none; }
.x-term-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #d1fae5; }
.x-term-checks .icon { width: 18px; height: 18px; padding: 3px; color: #04210f; background: #34d399; border-radius: 50%; stroke-width: 3; }
.x-term-actions { display: flex; gap: 10px; }
/* Play sequence once home.js arms it and the terminal scrolls into view */
.x-terminal.is-armed .x-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--x-amber); vertical-align: bottom; max-width: 100%; }
.x-terminal.is-armed .x-term-code, .x-terminal.is-armed .x-term-checks li, .x-terminal.is-armed .x-term-actions { opacity: 0; transform: translateY(10px); }
.x-terminal.is-in .x-type { animation: x-type 2.2s steps(48) forwards, x-caret 0.8s step-end 6 forwards; }
.x-terminal.is-in .x-term-code { animation: x-up 0.6s 2.4s var(--x-ease) forwards; }
.x-terminal.is-in .x-term-checks li { animation: x-up 0.5s var(--x-ease) forwards; }
.x-terminal.is-in .x-term-checks li:nth-child(1) { animation-delay: 3.1s; }
.x-terminal.is-in .x-term-checks li:nth-child(2) { animation-delay: 3.4s; }
.x-terminal.is-in .x-term-checks li:nth-child(3) { animation-delay: 3.7s; }
.x-terminal.is-in .x-term-actions { animation: x-up 0.5s 4.1s var(--x-ease) forwards; }
@keyframes x-type { to { width: 100%; } }
@keyframes x-caret { 50% { border-color: transparent; } to { border-color: transparent; } }

/* ---------- Workflow ---------- */
.x-flow { background: #fff; }
.x-steps-wrap { position: relative; }
.x-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; list-style: none; }
.x-steps__rail { position: absolute; left: 4%; right: 4%; top: 28px; height: 3px; border-radius: 3px; background: #e2e8f0; }
.x-steps__rail span { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--p, 1));
    background: linear-gradient(90deg, var(--x-amber), var(--x-blue)); box-shadow: 0 0 12px rgba(255, 183, 3, 0.5); }
.x-step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.x-step__node {
    position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 8px; border-radius: 18px;
    color: #fff; background: linear-gradient(150deg, #0b2a55, var(--x-navy)); box-shadow: 0 12px 26px rgba(0, 21, 41, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.35s var(--x-ease);
}
.x-step:hover .x-step__node { transform: translateY(-4px) rotate(-4deg); }
.x-step__node .icon { width: 24px; height: 24px; color: var(--x-amber); }
.x-step__num { font-family: var(--font-mono); font-size: 11px; color: #94a3b8; }
.x-step strong { font-size: 14.5px; font-weight: 800; color: #0b1220; }
.x-step > span:last-child { font-size: 12.5px; line-height: 1.45; color: #64748b; }

/* ---------- Disciplines hub ---------- */
.x-who { background: #f5f7fb; }
.x-who__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; }
.x-who .x-head { margin-bottom: 32px; }
.x-who__list { display: grid; gap: 10px; list-style: none; }
.x-who__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; transition: transform 0.3s var(--x-ease), box-shadow 0.3s; }
.x-who__list li:hover { transform: translateX(6px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08); }
.x-who__list li > span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; color: #1d4ed8; background: #eff6ff; }
.x-who__list .icon { width: 19px; height: 19px; }
.x-who__list strong { display: block; font-size: 15.5px; color: #0b1220; }
.x-who__list em { display: block; font-style: normal; font-size: 14px; color: #64748b; }
.x-hub { position: relative; width: min(520px, 100%); aspect-ratio: 1; justify-self: center; }
.x-hub__ring { position: absolute; border-radius: 50%; border: 1.5px dashed #cbd5e1; }
.x-hub__ring--1 { inset: 6%; animation: x-spin 60s linear infinite; }
.x-hub__ring--2 { inset: 26%; border-style: solid; border-color: rgba(37, 99, 235, 0.2); }
.x-hub__core { position: absolute; inset: 32%; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 10px rgba(255, 183, 3, 0.12), 0 30px 60px rgba(15, 23, 42, 0.15); animation: x-pulse-ring 4s ease-in-out infinite; }
.x-hub__core img { width: 62%; height: auto; border-radius: 50%; }
.x-hub__core span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--x-navy); }
@keyframes x-pulse-ring { 50% { box-shadow: 0 0 0 22px rgba(255, 183, 3, 0.06), 0 30px 60px rgba(15, 23, 42, 0.15); } }
.x-hub__node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(min(520px, 100vw) * -0.44)); }
.x-hub__node > span {
    position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; white-space: nowrap; transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
    font-size: 13px; font-weight: 700; color: #0b1220; background: rgba(255, 255, 255, 0.85); border: 1px solid #e2e8f0; border-radius: 999px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}
.x-hub__node .icon { width: 16px; height: 16px; color: #1d4ed8; }

/* ---------- Security ---------- */
.x-trust { background: #fff; overflow: hidden; }
.x-trust__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.x-trust__item { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 12px; align-content: start; padding: 28px;
    transition: transform 0.4s var(--x-ease), box-shadow 0.4s; }
.x-trust__item:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1); }
.x-trust__item h3 { font-size: 18px; font-weight: 800; color: #0b1220; }
.x-trust__item p { font-size: 14.5px; line-height: 1.6; color: #475569; }

/* ---------- Pricing: rotating gradient border ---------- */
.x-price { padding: 60px 0 120px; background: #fff; }
.x-price__card {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; gap: 40px; padding: 48px 52px;
    color: #fff; border-radius: 30px; border: 2px solid transparent;
    background: linear-gradient(140deg, #0b2a55, var(--x-navy) 60%) padding-box,
                conic-gradient(from var(--x-angle), var(--x-amber), var(--x-blue), #7cc4ff, var(--x-amber-2), var(--x-amber)) border-box;
    box-shadow: 0 40px 80px rgba(0, 21, 41, 0.3);
    animation: x-border 6s linear infinite;
}
@keyframes x-border { to { --x-angle: 360deg; } }
.x-price__card h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; }
.x-price__copy > p { max-width: 560px; margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: #b6c3d6; }
.x-price__list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; list-style: none; font-size: 14.5px; color: #e2e8f0; }
.x-price__list li { display: inline-flex; align-items: center; gap: 8px; }
.x-price__list .icon { width: 16px; height: 16px; padding: 2px; color: #04210f; background: #34d399; border-radius: 50%; stroke-width: 3; }
.x-price__cta { display: grid; justify-items: end; gap: 18px; }
.x-price__amount { font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--x-amber); text-align: right; }
.x-price__amount small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: #93a4bd; }

/* ---------- FAQ ---------- */
.x-faq { background: #f5f7fb; }
.x-faq__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.x-faq__list { display: grid; gap: 12px; }
.x-faq__item { border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; transition: box-shadow 0.3s, border-color 0.3s; }
.x-faq__item[open] { border-color: rgba(255, 183, 3, 0.55); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); }
.x-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 16.5px; font-weight: 700; color: #0b1220; cursor: pointer; list-style: none; }
.x-faq__item summary::-webkit-details-marker { display: none; }
.x-faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f1f5f9; transition: background-color 0.3s, transform 0.4s var(--x-ease); }
.x-faq__icon::before, .x-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--x-navy); transition: transform 0.4s var(--x-ease); }
.x-faq__icon::after { transform: rotate(90deg); }
.x-faq__item[open] .x-faq__icon { background: var(--x-amber); transform: rotate(180deg); }
.x-faq__item[open] .x-faq__icon::after { transform: rotate(0deg); }
.x-faq__answer { padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: #475569; }
.x-faq__item[open] .x-faq__answer { animation: x-up 0.45s var(--x-ease); }

/* ---------- Final CTA ---------- */
.x-cta { position: relative; overflow: hidden; padding: 140px 0; color: #fff; text-align: center; background: var(--x-deep); }
.x-cta__inner { position: relative; z-index: 1; max-width: 820px; }
.x-cta__logo { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 183, 3, 0.3), 0 20px 50px rgba(0, 0, 0, 0.5); animation: x-bob 6s ease-in-out infinite; }
.x-cta h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.05em; }
.x-cta p { max-width: 620px; margin: 22px auto 0; font-size: 18px; line-height: 1.6; color: #b6c3d6; }
.x-cta .x-hero__actions { animation: none; }

/* ---------- Scroll-driven reveals (native, no JS) ---------- */
@supports (animation-timeline: view()) {
    [data-reveal] { animation: x-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .x-draw svg .pl-wall, .x-draw svg .cv-contour, .x-draw svg .st-grid, .x-draw svg .cv-drain {
        stroke-dasharray: 2400; animation: x-stroke linear both; animation-timeline: view(); animation-range: entry 10% cover 45%;
    }
    .x-progress span { animation: x-grow linear both; animation-timeline: scroll(root); }
    .x-device { animation: x-untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; transition: none; }
    .x-steps__rail span { animation: x-grow linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
}
@keyframes x-reveal { from { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes x-stroke { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes x-untilt { from { transform: rotateX(18deg) scale(0.94); } to { transform: none; } }
@keyframes x-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .x-callout--l { left: 8px; } .x-callout--r { right: 8px; }
    .x-float--b { right: -2%; }
    .x-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
    .x-steps__rail { display: none; }
}
@media (max-width: 980px) {
    .x-section { padding: 88px 0; }
    .x-hero { padding: 120px 0 60px; }
    .x-hero__inner, .x-ai__inner, .x-who__inner, .x-faq__inner, .x-panel { grid-template-columns: 1fr; }
    .x-orbit { width: min(320px, 80%); }
    .x-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .x-card--hero, .x-card--wide { grid-column: span 2; }
    .x-card--tall { grid-row: span 1; }
    .x-card--wide { flex-direction: column; align-items: stretch; }
    .x-card__prompt { min-width: 0; }
    .x-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .x-qbq__grid, .x-trust__grid { grid-template-columns: 1fr; }
    .x-twin__grid { grid-template-columns: 1fr; }
    .x-beam__line { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--x-amber), transparent); }
    .x-beam { grid-auto-flow: column; align-items: center; }
    .x-price__card { grid-template-columns: 1fr; padding: 36px 28px; }
    .x-price__cta { justify-items: start; }
    .x-price__amount { text-align: left; }
    .x-stage { margin-top: 60px; }
}
@media (max-width: 640px) {
    .x-callout, .x-float { display: none; }
    .x-bento { grid-template-columns: 1fr; }
    .x-card--hero, .x-card--wide { grid-column: auto; }
    .x-stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .x-stat { padding: 20px 18px; }
    .x-stat strong { font-size: 42px; }
    .x-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .x-hub__node > span { padding: 7px 10px; font-size: 11.5px; }
    .x-hub__node > span .icon { display: none; }
    .x-device { --tilt: 0 !important; }
    .x-hero__actions > * { flex: 1 1 100%; }
}

/* ---------- Reduced motion: everything static and visible ---------- */
@media (prefers-reduced-motion: reduce) {
    .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
    .x-device { --tilt: 0 !important; }
    .x-terminal .x-type { width: auto !important; border: 0 !important; }
    .x-terminal * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Polish pass ---------- */
.x-hero__title { font-size: clamp(42px, 5.4vw, 78px); }
.x-head h2, .x-panel h3, .x-cta h2, .x-price__card h2 { text-wrap: balance; }
.x-head--left h2 { font-size: clamp(30px, 3.4vw, 46px); }
.home .site-header.is-scrolled { background: rgba(0, 21, 41, 0.9); }
.x-callout--r { top: -34px; right: 56px; }
.x-card__text { display: grid; gap: 12px; }
.x-card--hero .x-card__art { display: grid; place-items: center; max-height: 330px; overflow: hidden; }
.x-card--hero .x-card__art svg { max-height: 300px; width: auto; max-width: 100%; }
.x-card--tall .x-card__art { display: grid; place-items: end center; }
.x-card--tall .x-card__art svg { max-height: 240px; width: auto; max-width: 100%; }
@media (max-width: 640px) {
    .x-hub__node { transform: rotate(var(--a)) translateY(-33vw); }
    .x-hub__ring--1 { inset: 12%; }
}

/* =====================================================================
   Morphing shapes: soft blobs that continuously change shape.
   ===================================================================== */
.x-morph {
    position: absolute; z-index: 0; pointer-events: none; opacity: 0.55; filter: blur(40px);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: x-morph 16s ease-in-out infinite, x-morph-drift 24s ease-in-out infinite alternate;
}
.x-morph--a { width: 420px; height: 420px; left: -120px; top: -60px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(96, 165, 250, 0.25)); }
.x-morph--b { width: 360px; height: 360px; right: -90px; top: 40px; background: linear-gradient(135deg, rgba(255, 183, 3, 0.45), rgba(249, 115, 22, 0.25)); animation-delay: -5s, -8s; }
.x-morph--c { width: 300px; height: 300px; left: 42%; bottom: -140px; background: linear-gradient(135deg, rgba(20, 184, 166, 0.35), rgba(99, 102, 241, 0.25)); animation-delay: -9s, -3s; }
.x-morph--d { width: 520px; height: 520px; right: -180px; top: 30%; background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(255, 183, 3, 0.18)); animation-delay: -3s, -12s; }
.x-morph--e { width: 460px; height: 460px; left: -160px; bottom: -80px; background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(37, 99, 235, 0.18)); animation-delay: -7s, -6s; }
.x-morph--glow { width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; opacity: 0.35; background: conic-gradient(from 0deg, rgba(255, 183, 3, 0.6), rgba(37, 99, 235, 0.6), rgba(20, 184, 166, 0.5), rgba(255, 183, 3, 0.6)); }
@keyframes x-morph {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    25% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }
    50% { border-radius: 30% 70% 38% 62% / 62% 30% 70% 38%; }
    75% { border-radius: 55% 45% 30% 70% / 40% 62% 38% 60%; }
}
@keyframes x-morph-drift { from { transform: translate(0, 0) rotate(0deg) scale(1); } to { transform: translate(40px, 30px) rotate(40deg) scale(1.12); } }
.x-features > .container, .x-qbq > .container, .x-cta__inner { position: relative; z-index: 1; }
.x-orbit__glow { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; animation: x-pulse 5s ease-in-out infinite, x-morph 14s ease-in-out infinite; }

/* =====================================================================
   Stats: glass panel over morphing blobs, rotating gradient border.
   ===================================================================== */
.x-stats { position: relative; overflow: hidden; padding: 110px 0; background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%); }
.x-stats .container { position: relative; z-index: 1; }
.x-stats__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.x-stats__head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: #0b1220; text-wrap: balance; }
.x-stats__panel {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 28px;
    border: 1.5px solid transparent;
    background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.6)) padding-box,
                conic-gradient(from var(--x-angle), rgba(255, 183, 3, 0.9), rgba(37, 99, 235, 0.8), rgba(20, 184, 166, 0.7), rgba(255, 183, 3, 0.9)) border-box;
    backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: x-border 8s linear infinite;
}
.x-stats__panel .x-stat {
    position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 30px 28px 28px;
    background: transparent; border: 0; border-radius: 0;
}
.x-stats__panel .x-stat::before {
    content: ""; position: absolute; inset: 0; width: auto; z-index: -1; opacity: 0; transition: opacity 0.35s;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 183, 3, 0.14), transparent 55%);
}
.x-stats__panel .x-stat:hover::before { opacity: 1; }
.x-stats__panel .x-stat + .x-stat { border-left: 1px solid rgba(148, 163, 184, 0.25); }
.x-stats__panel .x-stat:first-child { border-radius: 26px 0 0 26px; }
.x-stats__panel .x-stat:last-child { border-radius: 0 26px 26px 0; }
.x-stat__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-height: 48px; }
.x-stat__icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff;
    background: linear-gradient(145deg, #1d4ed8, var(--x-navy)); box-shadow: 0 10px 22px rgba(29, 78, 216, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.4s var(--x-ease), border-radius 0.6s var(--x-ease);
}
.x-stat__icon .icon { width: 22px; height: 22px; color: var(--x-amber); }
.x-stat:hover .x-stat__icon { transform: rotate(-8deg) scale(1.06); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
.x-stats__panel .x-stat strong {
    font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.05em;
    background: linear-gradient(160deg, #0b1220 30%, #1d4ed8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.x-stats__panel .x-stat__label { margin-top: 10px; font-size: 16px; font-weight: 800; color: #0b1220; }
.x-stats__panel .x-stat__hint { font-size: 13.5px; line-height: 1.5; color: #64748b; }

/* Mini visuals */
.x-stat__viz { display: inline-flex; align-items: flex-end; gap: 4px; }
.x-viz-layers { position: relative; width: 58px; height: 44px; }
.x-viz-layers i { position: absolute; left: 6px; width: 46px; height: 18px; border-radius: 6px; transform: skewX(-18deg);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(96, 165, 250, 0.85)); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    animation: x-layer 3.6s ease-in-out infinite; }
.x-viz-layers i:nth-child(1) { bottom: 0; }
.x-viz-layers i:nth-child(2) { bottom: 12px; background: linear-gradient(90deg, rgba(255, 183, 3, 0.9), rgba(249, 115, 22, 0.85)); animation-delay: -1.2s; }
.x-viz-layers i:nth-child(3) { bottom: 24px; background: linear-gradient(90deg, rgba(20, 184, 166, 0.85), rgba(45, 212, 191, 0.85)); animation-delay: -2.4s; }
@keyframes x-layer { 0%, 100% { transform: skewX(-18deg) translateY(0); } 50% { transform: skewX(-18deg) translateY(-4px); } }
.x-viz-dots { display: grid; grid-template-columns: repeat(4, 10px); gap: 5px; }
.x-viz-dots i { width: 10px; height: 10px; border-radius: 3px; background: #cbd5e1; animation: x-dot 4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.25s); }
@keyframes x-dot { 0%, 100% { background: #cbd5e1; transform: scale(1); } 30% { background: #ffb703; transform: scale(1.15); box-shadow: 0 0 10px rgba(255, 183, 3, 0.6); } 60% { background: #2563eb; transform: scale(1); } }
.x-viz-steps { height: 40px; }
.x-viz-steps i { width: 5px; border-radius: 3px; height: calc(12px + var(--i) * 3.2px); background: linear-gradient(180deg, #ffb703, #2563eb);
    transform-origin: bottom; animation: x-bar 3s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
@keyframes x-bar { 0%, 100% { transform: scaleY(0.45); opacity: 0.55; } 50% { transform: scaleY(1); opacity: 1; } }
.x-stat__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.x-stat__chips i { padding: 3px 8px; font-style: normal; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #1e3a8a;
    background: #eff6ff; border: 1px solid #dbeafe; border-radius: 7px; animation: x-chip 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.5s); }
@keyframes x-chip { 0%, 80%, 100% { color: #1e3a8a; background: #eff6ff; border-color: #dbeafe; } 10%, 20% { color: #7c2d12; background: #fff4d6; border-color: #fcd34d; } }

/* Facts strip */
.x-stats__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; list-style: none; }
.x-stats__facts li {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: #1e293b;
    background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 999px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.x-stats__facts .icon { width: 16px; height: 16px; color: #1d4ed8; }

@media (max-width: 980px) {
    .x-stats__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .x-stats__panel .x-stat:nth-child(3) { border-left: 0; }
    .x-stats__panel .x-stat:nth-child(n+3) { border-top: 1px solid rgba(148, 163, 184, 0.25); }
    .x-stats__panel .x-stat:first-child, .x-stats__panel .x-stat:last-child { border-radius: 0; }
    .x-morph { opacity: 0.4; }
}
@media (max-width: 560px) {
    .x-stats { padding: 80px 0; }
    .x-stats__panel { grid-template-columns: 1fr; }
    .x-stats__panel .x-stat + .x-stat { border-left: 0; border-top: 1px solid rgba(148, 163, 184, 0.25); }
    .x-stats__panel .x-stat strong { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .x-morph, .x-stats__panel, .x-stat__viz i, .x-stat__chips i { animation: none !important; }
}
/* Stats border: a masked ring, so the conic colours don't tint the glass */
.x-stats__panel { border: 0; background: rgba(255, 255, 255, 0.68); animation: none; }
.x-stats__panel::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 1.5px; border-radius: inherit;
    background: conic-gradient(from var(--x-angle), rgba(255, 183, 3, 0.95), rgba(37, 99, 235, 0.85), rgba(20, 184, 166, 0.75), rgba(255, 183, 3, 0.95));
    -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 exclude, linear-gradient(#000 0 0);
    animation: x-border 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .x-stats__panel::after { animation: none; } }
