.aind-home {
    --ah-bg-deep: #07111f;
    --ah-bg-base: #0b1626;
    --ah-bg-elevated: #101d30;
    --ah-card: rgba(255, 255, 255, .045);
    --ah-card-hover: rgba(255, 255, 255, .075);
    --ah-border: rgba(255, 255, 255, .1);
    --ah-border-hover: rgba(255, 255, 255, .19);
    --ah-text: #f3f7ff;
    --ah-text-2: #a9b5c9;
    --ah-text-3: #75849c;
    --ah-navy: #19226d;
    --ah-blue: #2474c7;
    --ah-blue-light: #69a8df;
    --ah-green: #50b848;
    --ah-teal: #33b2c1;
    --ah-orange: #f37021;
    --ah-pink: #d95a9c;
    --ah-radius-sm: 8px;
    --ah-radius: 12px;
    --ah-radius-lg: 20px;
    --ah-radius-xl: 28px;
    --ah-ease: cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
    color: var(--ah-text);
    background: var(--ah-bg-deep);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body[data-theme="light"] .aind-home {
    --ah-bg-deep: #f8f9fc;
    --ah-bg-base: #f1f3f8;
    --ah-bg-elevated: #e8eaf2;
    --ah-card: rgba(6, 20, 44, .04);
    --ah-card-hover: rgba(6, 20, 44, .07);
    --ah-border: rgba(6, 20, 44, .1);
    --ah-border-hover: rgba(6, 20, 44, .2);
    --ah-text: #0c1424;
    --ah-text-2: #46546b;
    --ah-text-3: #78859a;
}

.landing-nav,
.footer { font-family: "Inter", system-ui, sans-serif !important; }

body[data-theme="light"] .landing-nav {
    background: rgba(248, 249, 252, .9);
    border-color: rgba(6, 20, 44, .08);
}

body:not([data-theme="light"]) .landing-nav {
    background: rgba(7, 17, 31, .9);
    border-color: rgba(255, 255, 255, .08);
}

.landing-nav { backdrop-filter: blur(20px) saturate(140%); }
.landing-nav .icon-30 { background: linear-gradient(135deg, #f37021, #19226d 38%, #2474c7 72%, #50b848) !important; }
.landing-nav .btn-primary { background: linear-gradient(135deg, #19226d, #034ea2); box-shadow: 0 8px 22px rgba(3, 78, 162, .2); }

.ah-container { width: min(calc(100% - 48px), 1200px); margin-inline: auto; }
.ah-section { padding: 112px 0; }

.ah-hero {
    position: relative;
    min-height: calc(100vh - 62px);
    padding: 132px 0 94px;
    display: flex;
    /* Hai con xếp dọc: lưới chữ+linh vật, rồi khối video bên dưới. */
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
}

.ah-hero__decor,
.ah-grid { position: absolute; inset: 0; pointer-events: none; }
.ah-hero__decor { z-index: -1; overflow: hidden; }
.ah-grid {
    opacity: .56;
    background-image: linear-gradient(var(--ah-border) 1px, transparent 1px), linear-gradient(90deg, var(--ah-border) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, black 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, black 10%, transparent 75%);
}

.ah-blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .12; animation: ah-float 14s ease-in-out infinite; }
.ah-blob--orange { width: 520px; height: 520px; left: -16%; top: -12%; background: var(--ah-orange); }
.ah-blob--blue { width: 560px; height: 560px; right: -17%; top: 16%; background: var(--ah-blue); animation-delay: -5s; }
.ah-blob--green { width: 420px; height: 420px; left: 34%; bottom: -20%; background: var(--ah-green); animation-delay: -9s; }
body[data-theme="light"] .ah-blob { opacity: .1; }

@keyframes ah-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    40% { transform: translate3d(28px, -22px, 0) scale(1.05); }
    70% { transform: translate3d(-18px, 20px, 0) scale(.97); }
}

.ah-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    /* Cột linh vật co theo min() nên khung chữ giữ được bề ngang đọc thoải mái. */
    grid-template-columns: minmax(0, 1fr) min(38%, 420px);
    /* Ba vùng thay vì ba cột: nút tách khỏi khối chữ để tablet trở xuống chèn được
       linh vật vào GIỮA chữ và nút mà không phải đổi thứ tự DOM. */
    grid-template-areas:
        "copy   mascot"
        "cta    mascot";
    align-items: center;
    column-gap: clamp(24px, 4vw, 64px);
    /* Khoảng cách chữ→nút đã do margin-bottom của .ah-hero__description lo. */
    row-gap: 0;
}
.ah-hero__inner > .ah-hero__copy { grid-area: copy; }
.ah-hero__inner > .ah-actions { grid-area: cta; }
.ah-hero__inner > .ah-hero__mascot { grid-area: mascot; }
.ah-hero__copy { max-width: 680px; text-align: left; }

/* Linh vật = biểu tượng trang, không phải ảnh sản phẩm: để trần trên nền, chỉ thêm
   quầng sáng phía sau cho tách khỏi lưới nền. */
.ah-hero__mascot {
    position: relative;
    display: flex;
    justify-content: center;
}
.ah-hero__mascot::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4% -6%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(91, 155, 213, .3), transparent 68%);
    filter: blur(44px);
}
.ah-hero__mascot img {
    width: 100%;
    max-width: 420px;
    height: auto;
    /* Bóng đổ bám theo viền alpha của PNG, không phải khung hình chữ nhật. */
    filter: drop-shadow(0 26px 46px rgba(2, 8, 20, .42));
    animation: ah-mascot-float 7s ease-in-out infinite;
}

@keyframes ah-mascot-float {
    50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .ah-hero__mascot img { animation: none; }
}
.ah-eyebrow,
.ah-section-tag,
.ah-orchestrator__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    color: var(--ah-blue-light);
    background: rgba(91, 155, 213, .09);
    border: 1px solid rgba(91, 155, 213, .24);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.ah-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ah-green); box-shadow: 0 0 10px rgba(80, 184, 72, .8); animation: ah-pulse 2s ease-in-out infinite; }
@keyframes ah-pulse { 50% { opacity: .55; transform: scale(1.4); } }

.ah-hero__title {
    max-width: 900px;
    margin: 26px 0 16px;
    color: var(--ah-text);
    font-size: clamp(42px, 4.8vw, 68px);
    font-weight: 900;
    letter-spacing: -.052em;
    line-height: 1.01;
}

.ah-hero__title .text-orange,
.ah-section-heading h2 span {
    color: transparent !important;
    background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 45%, #50b848 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ah-hero__lead { margin: 0 0 18px; color: var(--ah-text); font-size: clamp(19px, 2.2vw, 27px); font-weight: 500; line-height: 1.35; }
.ah-hero__description { max-width: 700px; margin: 0 0 34px; color: var(--ah-text-2); font-size: 16px; line-height: 1.75; }
.ah-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ah-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: var(--ah-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s var(--ah-ease), border-color .2s, background .2s, box-shadow .2s;
}
.ah-button:hover { transform: translateY(-2px); }
.ah-button--primary { color: #fff; border: 1px solid transparent; background: linear-gradient(135deg, #19226d, #034ea2); box-shadow: 0 12px 32px rgba(3, 78, 162, .26); }
.ah-button--primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(3, 78, 162, .36); }
.ah-button--secondary { color: var(--ah-text); border: 1px solid var(--ah-border); background: var(--ah-card); }
.ah-button--secondary:hover { color: var(--ah-text); border-color: var(--ah-border-hover); background: var(--ah-card-hover); }
.ah-button:focus-visible,
.ah-service-card:focus-visible { outline: 3px solid rgba(91, 155, 213, .45); outline-offset: 4px; }

.ah-capabilities { margin-top: clamp(32px, 4vw, 52px); display: flex; align-items: center; justify-content: center; gap: 13px; flex-wrap: wrap; color: var(--ah-text-3); font: 600 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.ah-capabilities i { width: 3px; height: 3px; border-radius: 50%; background: var(--ah-orange); }

.ah-product {
    max-width: 980px;
    margin: 62px auto 0;
    overflow: hidden;
    background: #111a2b;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--ah-radius-lg);
    color: #ecf3ff;
    box-shadow: 0 40px 90px rgba(2, 8, 20, .35), 0 0 0 1px rgba(91, 155, 213, .08);
    text-align: left;
}
/* Hero video: tự phát (tắt tiếng) + thanh điều khiển mặc định của trình duyệt. */
.ah-product--video {
    position: relative;
    padding: 0;
    line-height: 0;
    /* Nền PHẢI trong suốt: hai vòng sáng dưới đây dùng z-index âm nên nền của
       chính phần tử này sẽ che mất chúng. Màu nền khung chuyển xuống thẻ video. */
    background: transparent;
    border-color: transparent;
    /* Bỏ overflow: hidden thừa hưởng từ .ah-product, nếu không vòng sáng bị cắt cụt. */
    overflow: visible;
    isolation: isolate;
}

/* Góc quay của conic-gradient. Khai bằng @property để animate được; trình duyệt
   không hỗ trợ thì gradient vẫn vẽ đúng, chỉ là đứng yên. */
@property --ah-glow-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* ::before = quầng sáng toả rộng phía sau; ::after = viền gradient mảnh ôm sát khung. */
.ah-product--video::before,
.ah-product--video::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--ah-glow-angle),
        var(--ah-orange), var(--ah-pink) 18%, var(--ah-blue) 38%,
        var(--ah-teal) 56%, var(--ah-green) 74%, var(--ah-orange));
    animation: ah-glow-spin 18s linear infinite;
}
.ah-product--video::before { inset: -16px; filter: blur(26px); opacity: .2; }
.ah-product--video::after { inset: -2px; filter: blur(2px); opacity: .5; }

@keyframes ah-glow-spin {
    to { --ah-glow-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .ah-product--video::before,
    .ah-product--video::after { animation: none; }
}
/* Chiều cao CỐ ĐỊNH (không theo tỷ lệ video) để layout hero không nhảy lúc metadata
   tải xong; phần thừa của khung hình bị cắt bằng object-fit: cover. */
.ah-hero-video {
    display: block;
    position: relative;
    width: 100%;
    height: var(--ah-hero-video-h, 520px);
    object-fit: cover;
    /* Nền mờ đục + bo góc nằm ở ĐÂY (không phải ở figure) để phủ kín vòng ::after,
       chỉ chừa lại đúng 2px viền gradient. */
    background: #0a111e;
    border-radius: inherit;
}

.ah-product__bar { height: 46px; display: flex; align-items: center; padding: 0 17px; background: rgba(255, 255, 255, .025); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ah-window-dots { display: flex; gap: 7px; }
.ah-window-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ah-window-dots span:nth-child(1) { background: #ff5f57; }
.ah-window-dots span:nth-child(2) { background: #febc2e; }
.ah-window-dots span:nth-child(3) { background: #28c840; }
.ah-product__title { flex: 1; text-align: center; color: #8997ad; font: 500 11px/1 "JetBrains Mono", monospace; }
.ah-product__title span { color: #5c6980; }
.ah-live { display: flex; align-items: center; gap: 6px; color: #7c8ba2; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ah-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--ah-green); box-shadow: 0 0 8px rgba(80, 184, 72, .8); }
.ah-product__body { min-height: 430px; display: grid; grid-template-columns: 180px 1fr; }
.ah-product__sidebar { display: flex; flex-direction: column; padding: 22px 16px; background: rgba(0, 0, 0, .13); border-right: 1px solid rgba(255, 255, 255, .07); }
.ah-product__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; color: #e7effb; font-size: 12px; }
.ah-product__brand > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #f37021, #034ea2 65%, #50b848); font-weight: 800; }
.ah-product__sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.ah-product__sidebar nav span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #718097; font-size: 11px; font-weight: 600; }
.ah-product__sidebar nav span b { font: 500 9px/1 "JetBrains Mono", monospace; }
.ah-product__sidebar nav .is-active { color: #dce9fb; background: rgba(91, 155, 213, .12); }
.ah-product__sidebar nav .is-active b { color: #6eb0e7; }
.ah-product__pulse { margin-top: auto; padding: 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.ah-product__pulse > span { display: block; margin-bottom: 7px; color: #596980; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.ah-product__pulse strong { display: flex; align-items: center; gap: 6px; color: #8a9aaf; font-size: 9px; font-weight: 600; }
.ah-product__pulse i { width: 5px; height: 5px; border-radius: 50%; background: var(--ah-green); }

.ah-product__workspace { min-width: 0; padding: 26px; }
.ah-product__workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ah-mono-label { color: #6d7d94; font: 600 9px/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.ah-product__workspace-head h2 { margin: 7px 0 0; color: #f2f6fd; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.ah-progress-pill { padding: 6px 9px; border-radius: 999px; color: #85ca88; background: rgba(80, 184, 72, .08); border: 1px solid rgba(80, 184, 72, .18); font: 600 9px/1 "JetBrains Mono", monospace; white-space: nowrap; }
.ah-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(170px, .7fr); gap: 14px; }
.ah-plan-card,
.ah-mini-metric { background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; }
.ah-plan-card { padding: 15px; }
.ah-card-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #64758c; font: 600 9px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.ah-card-kicker span { width: 5px; height: 5px; border-radius: 50%; background: var(--ah-orange); }
.ah-plan-step { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; min-height: 54px; padding: 8px; border-top: 1px solid rgba(255, 255, 255, .055); }
.ah-plan-step > i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #6c7b91; background: rgba(255, 255, 255, .04); font: normal 600 9px/1 "JetBrains Mono", monospace; }
.ah-plan-step div { min-width: 0; }
.ah-plan-step strong,
.ah-plan-step span { display: block; }
.ah-plan-step strong { color: #bdc9da; font-size: 10px; }
.ah-plan-step span { margin-top: 2px; overflow: hidden; color: #67768d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ah-plan-step > b { color: #526077; font: 600 8px/1 "JetBrains Mono", monospace; }
.ah-plan-step.is-complete > i { color: #86cd8a; background: rgba(80, 184, 72, .1); }
.ah-plan-step.is-complete > b { color: #6cc572; }
.ah-plan-step.is-active { margin-inline: -4px; padding-inline: 12px; border: 1px solid rgba(91, 155, 213, .18); border-radius: 8px; background: rgba(91, 155, 213, .07); }
.ah-plan-step.is-active > i { color: #80b9e8; background: rgba(91, 155, 213, .12); }
.ah-plan-step.is-active > b { padding: 4px 6px; border-radius: 5px; color: #8bbce6; background: rgba(91, 155, 213, .1); }
.ah-metric-stack { display: grid; gap: 14px; }
.ah-mini-metric { min-height: 0; padding: 16px; overflow: hidden; }
.ah-mini-metric > span { display: block; color: #6f7f96; font-size: 9px; }
.ah-mini-metric strong { display: block; margin-top: 7px; color: #eaf1fb; font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.ah-mini-metric--blue div { height: 4px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.ah-mini-metric--blue div i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #034ea2, #69a8df); }
.ah-mini-metric--green svg { width: 100%; height: 46px; margin-top: 9px; }
.ah-mini-metric--green path { fill: none; stroke: #50b848; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ah-mini-metric--green path.fill { fill: rgba(80, 184, 72, .08); stroke: none; }
.ah-command-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 14px; padding: 10px 12px; border-radius: 8px; color: #66758b; background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .055); font: 500 9px/1.4 "JetBrains Mono", monospace; }
.ah-command-prompt { color: #8391a6; }
.ah-command-name { color: #6facdf; }
.ah-command-line > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-command-line i { width: 6px; height: 11px; flex: 0 0 auto; background: #6facdf; animation: ah-blink 1.2s step-end infinite; }
@keyframes ah-blink { 50% { opacity: 0; } }

.ah-stats { border-block: 1px solid var(--ah-border); background: rgba(91, 155, 213, .018); }
.ah-stats__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ah-stat { min-width: 0; padding: 31px 20px; text-align: center; border-right: 1px solid var(--ah-border); }
.ah-stat:last-child { border-right: 0; }
.ah-stat strong { display: block; color: transparent; background: linear-gradient(135deg, #5b9bd5, #50b848); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 31px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.ah-stat span { display: block; margin-top: 8px; color: var(--ah-text-3); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.ah-section-heading { margin: 0 auto 58px; text-align: center; }
.ah-section-heading h2 { margin: 14px 0 13px; color: var(--ah-text); font-size: clamp(31px, 4vw, 46px); font-weight: 850; letter-spacing: -.04em; line-height: 1.1; }
.ah-section-heading p { max-width: 580px; margin-inline: auto; color: var(--ah-text-2); font-size: 16px; line-height: 1.7; }
.ah-section-tag { color: var(--ah-text-3); background: var(--ah-card); border-color: var(--ah-border); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.ah-services { background: linear-gradient(180deg, var(--ah-bg-deep), var(--ah-bg-base)); }
.ah-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.ah-service-card {
    --service-accent: var(--ah-blue);
    --service-soft: rgba(36, 116, 199, .1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: var(--ah-text);
    background: var(--ah-card);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius-lg);
    text-decoration: none;
    transition: transform .3s var(--ah-ease), background .3s, border-color .3s, box-shadow .3s;
}
.ah-service-card:hover { color: var(--ah-text); transform: translateY(-5px); background: var(--ah-card-hover); border-color: color-mix(in srgb, var(--service-accent) 45%, var(--ah-border)); box-shadow: 0 20px 45px rgba(6, 20, 44, .1); }
.ah-service-card--orange { --service-accent: var(--ah-orange); --service-soft: rgba(243, 112, 33, .1); }
.ah-service-card--pink { --service-accent: var(--ah-pink); --service-soft: rgba(217, 90, 156, .1); }
.ah-service-card--blue { --service-accent: var(--ah-blue); --service-soft: rgba(36, 116, 199, .1); }
.ah-service-card--teal { --service-accent: var(--ah-teal); --service-soft: rgba(51, 178, 193, .1); }
.ah-service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.ah-service-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--service-accent); background: var(--service-soft); border: 1px solid color-mix(in srgb, var(--service-accent) 26%, transparent); border-radius: 13px; }
.ah-service-index { color: var(--ah-text-3); font: 600 10px/1 "JetBrains Mono", monospace; }
.ah-service-card h3 { margin: 0; color: var(--ah-text); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ah-service-card > p { margin: 5px 0 19px; color: var(--service-accent); font-size: 12px; font-weight: 700; }
.ah-service-card ul { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.ah-service-card li { position: relative; padding-left: 18px; color: var(--ah-text-2); font-size: 12px; line-height: 1.5; }
.ah-service-card li::before { content: ""; position: absolute; left: 0; top: .52em; width: 6px; height: 6px; border: 1px solid var(--service-accent); border-radius: 50%; }
.ah-card-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--ah-border); color: var(--ah-text-3); font: 600 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.ah-card-link i { color: var(--service-accent); font-style: normal; font-size: 16px; transition: transform .2s; }
.ah-service-card:hover .ah-card-link i { transform: translateX(4px); }

.ah-workflow { background: var(--ah-bg-base); }
.ah-orchestrator { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 38px; padding: 34px; overflow: hidden; background: linear-gradient(135deg, rgba(243, 112, 33, .07), rgba(3, 78, 162, .065)); border: 1px solid rgba(91, 155, 213, .2); border-radius: var(--ah-radius-lg); }
.ah-orchestrator::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--ah-orange), var(--ah-blue), var(--ah-green)); }
.ah-orchestrator__badge { padding: 5px 10px; color: var(--ah-orange); background: rgba(243, 112, 33, .08); border-color: rgba(243, 112, 33, .2); font-size: 9px; text-transform: uppercase; }
.ah-orchestrator__copy h3 { margin: 15px 0 9px; color: var(--ah-text); font-size: clamp(25px, 3vw, 34px); font-weight: 850; letter-spacing: -.04em; }
.ah-orchestrator__copy > p { margin: 0; color: var(--ah-text-2); font-size: 14px; line-height: 1.7; }
.ah-mode-list { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ah-mode-list span { display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: var(--ah-text-2); background: var(--ah-card); border: 1px solid var(--ah-border); border-radius: 8px; font-size: 9px; font-weight: 700; }
.ah-mode-list i { width: 5px; height: 5px; border-radius: 50%; background: var(--ah-green); }
.ah-flow { min-width: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 22px; border-radius: var(--ah-radius); background: rgba(0, 0, 0, .07); border: 1px solid var(--ah-border); list-style: none; }
body[data-theme="light"] .ah-flow { background: rgba(255, 255, 255, .45); }
.ah-flow__node { --node: var(--ah-blue); flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 12px 9px; border-radius: 10px; background: color-mix(in srgb, var(--node) 8%, transparent); border: 1px solid color-mix(in srgb, var(--node) 20%, transparent); }
.ah-flow__node > span { flex: 0 0 auto; color: var(--node); font: 700 9px/1 "JetBrains Mono", monospace; }
.ah-flow__node div { min-width: 0; }
.ah-flow__node strong,
.ah-flow__node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-flow__node strong { color: var(--ah-text); font-size: 10px; }
.ah-flow__node small { margin-top: 2px; color: var(--ah-text-3); font-size: 8px; }
.ah-flow__node--orange { --node: var(--ah-orange); }
.ah-flow__node--blue { --node: var(--ah-blue); }
.ah-flow__node--teal { --node: var(--ah-teal); }
.ah-flow__node--green { --node: var(--ah-green); }
.ah-flow__connector { flex: 0 0 auto; padding: 0 5px; color: var(--ah-text-3); font-size: 12px; }
.ah-capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.ah-capability-card { min-height: 92px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 19px; background: var(--ah-card); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); }
.ah-capability-card > span { color: var(--ah-text-3); font: 600 9px/1 "JetBrains Mono", monospace; }
.ah-capability-card svg { color: var(--ah-green); }
.ah-capability-card strong { color: var(--ah-text-2); font-size: 12px; font-weight: 650; line-height: 1.45; }

.ah-proof { background: linear-gradient(180deg, var(--ah-bg-base), var(--ah-bg-elevated)); }
.ah-proof-card { padding: 32px; background: var(--ah-card); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-xl); }
.ah-proof-card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.ah-proof-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--ah-green); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ah-proof-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ah-green); box-shadow: 0 0 9px rgba(80, 184, 72, .55); }
.ah-proof-card__head h3 { margin: 8px 0 5px; color: var(--ah-text); font-size: clamp(24px, 3vw, 34px); font-weight: 850; letter-spacing: -.04em; }
.ah-proof-card__head p { margin: 0; color: var(--ah-text-3); font-size: 12px; }
.ah-proof-dashboard { display: grid; grid-template-columns: 1.25fr .75fr; gap: 15px; padding: 18px; background: rgba(0, 0, 0, .06); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); }
body[data-theme="light"] .ah-proof-dashboard { background: rgba(255, 255, 255, .42); }
.ah-proof-chart { min-height: 310px; display: flex; flex-direction: column; padding: 22px; background: var(--ah-card); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); }
.ah-proof-chart__head { display: flex; align-items: center; justify-content: space-between; }
.ah-proof-chart__head span { color: var(--ah-text-3); font: 600 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.ah-proof-chart__head strong { color: var(--ah-green); font-size: 22px; font-weight: 850; }
.ah-bars { flex: 1; display: flex; align-items: flex-end; gap: clamp(7px, 1.3vw, 14px); margin-top: 28px; padding: 0 5px 12px; border-bottom: 1px solid var(--ah-border); background-image: linear-gradient(to bottom, var(--ah-border) 1px, transparent 1px); background-size: 100% 25%; }
.ah-bars span { flex: 1; height: var(--bar); min-width: 8px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #5b9bd5, #034ea2); box-shadow: 0 0 18px rgba(3, 78, 162, .12); }
.ah-bars span:nth-child(1) { --bar: 32%; }
.ah-bars span:nth-child(2) { --bar: 45%; }
.ah-bars span:nth-child(3) { --bar: 38%; }
.ah-bars span:nth-child(4) { --bar: 58%; }
.ah-bars span:nth-child(5) { --bar: 52%; }
.ah-bars span:nth-child(6) { --bar: 72%; }
.ah-bars span:nth-child(7) { --bar: 67%; }
.ah-bars span:nth-child(8) { --bar: 88%; }
.ah-bars span:nth-child(9) { --bar: 96%; }
.ah-bars span:nth-child(3n) { background: linear-gradient(180deg, #75c46f, #3a8836); }
.ah-chart-axis { display: flex; justify-content: space-between; padding-top: 11px; color: var(--ah-text-3); font: 500 8px/1 "JetBrains Mono", monospace; }
.ah-proof-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ah-proof-metrics > div { min-width: 0; display: flex; flex-direction: column; padding: 18px; background: var(--ah-card); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); }
.ah-proof-metrics span { color: var(--ah-text-3); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ah-proof-metrics strong { margin: auto 0 7px; color: var(--ah-text); font-size: clamp(25px, 3vw, 38px); font-weight: 900; letter-spacing: -.05em; }
.ah-proof-metrics small { color: var(--ah-green); font: 600 9px/1.3 "JetBrains Mono", monospace; }

.ah-cta { position: relative; padding: 130px 0; overflow: hidden; background: var(--ah-bg-deep); text-align: center; }
.ah-cta__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 70% at 50% 50%, rgba(36, 116, 199, .14), transparent 70%); pointer-events: none; }
.ah-cta__inner { position: relative; z-index: 1; }
.ah-cta h2 { margin: 16px 0 14px; color: var(--ah-text); font-size: clamp(38px, 5vw, 58px); font-weight: 900; line-height: 1.05; letter-spacing: -.05em; }
.ah-cta p { max-width: 580px; margin: 0 auto 27px; color: var(--ah-text-2); font-size: 16px; line-height: 1.7; }
.ah-cta__command { max-width: 510px; display: flex; align-items: center; gap: 12px; margin: 0 auto 30px; padding: 13px 16px; overflow: hidden; color: var(--ah-text-3); background: var(--ah-card); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); font: 500 11px/1.4 "JetBrains Mono", monospace; text-align: left; }
.ah-cta__command > span { color: var(--ah-orange); font-weight: 700; }
.ah-cta__command code { overflow: hidden; color: var(--ah-blue-light); text-overflow: ellipsis; white-space: nowrap; }
.ah-cta__command i { width: 6px; height: 12px; flex: 0 0 auto; background: var(--ah-blue-light); animation: ah-blink 1.2s step-end infinite; }

.ah-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ah-ease), transform .65s var(--ah-ease); }
.ah-reveal.is-visible { opacity: 1; transform: none; }
.ah-service-grid .ah-reveal:nth-child(2),
.ah-capability-grid .ah-reveal:nth-child(2) { transition-delay: .07s; }
.ah-service-grid .ah-reveal:nth-child(3),
.ah-capability-grid .ah-reveal:nth-child(3) { transition-delay: .14s; }
.ah-service-grid .ah-reveal:nth-child(4) { transition-delay: .21s; }

@media (max-width: 1020px) {
    .ah-hero__inner { grid-template-columns: minmax(0, 1fr) min(34%, 300px); }
    .ah-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ah-orchestrator { grid-template-columns: 1fr; }
    .ah-product { max-width: 850px; }
    .ah-hero-video { --ah-hero-video-h: 440px; }
}

@media (max-width: 780px) {
    .ah-container { width: min(calc(100% - 32px), 1200px); }
    .ah-section { padding: 82px 0; }
    .ah-hero { min-height: auto; padding: 112px 0 74px; }
    .ah-hero__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "mascot"
            "cta";
        /* KHÔNG dùng justify-items: center — nó co ô .ah-actions về max-content,
           làm nút full-width ở mốc 560px hết tác dụng. Mỗi khối tự căn giữa lấy. */
        row-gap: clamp(20px, 4vw, 32px);
    }
    .ah-hero__copy { margin-inline: auto; text-align: center; }
    .ah-hero__title { margin-inline: auto; font-size: clamp(43px, 11vw, 60px); }
    .ah-hero__lead { margin-inline: auto; }
    /* Khoảng cách chữ→linh vật do row-gap lo. */
    .ah-hero__description { margin: 0 auto; }
    .ah-actions { justify-content: center; }
    .ah-hero__mascot img { max-width: 240px; }
    .ah-hero-video { --ah-hero-video-h: 340px; }
    .ah-product__body { grid-template-columns: 1fr; }
    .ah-product__sidebar { display: none; }
    .ah-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .ah-stat { border-bottom: 1px solid var(--ah-border); }
    .ah-stat:nth-child(2n) { border-right: 0; }
    .ah-stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .ah-workspace-grid,
    .ah-proof-dashboard { grid-template-columns: 1fr; }
    .ah-metric-stack { grid-template-columns: 1fr 1fr; }
    .ah-flow { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .ah-flow__connector { padding: 0; text-align: center; transform: rotate(90deg); }
    .ah-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ah-proof-card__head { align-items: flex-start; flex-direction: column; }
    .ah-proof-chart { min-height: 280px; }
}

@media (max-width: 560px) {
    .ah-hero__lead { font-size: 18px; }
    .ah-hero__description { font-size: 14px; }
    .ah-hero__mascot img { max-width: 180px; }
    .ah-actions { align-items: stretch; flex-direction: column; }
    .ah-button { width: 100%; }
    .ah-capabilities { gap: 9px; }
    .ah-product { margin-top: 46px; border-radius: 14px; }
    .ah-hero-video { --ah-hero-video-h: 220px; }
    .ah-product__bar { padding-inline: 12px; }
    .ah-product__title span,
    .ah-live { display: none; }
    .ah-product__workspace { padding: 16px; }
    .ah-product__workspace-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .ah-product__workspace-head h2 { font-size: 16px; }
    .ah-metric-stack { grid-template-columns: 1fr; }
    .ah-command-line > span:nth-child(3) { display: none; }
    .ah-service-grid,
    .ah-capability-grid { grid-template-columns: 1fr; }
    .ah-service-card { min-height: 0; }
    .ah-orchestrator,
    .ah-proof-card { padding: 22px; border-radius: 18px; }
    .ah-proof-dashboard { padding: 10px; }
    .ah-proof-metrics { grid-template-columns: 1fr; }
    .ah-proof-metrics > div { min-height: 140px; }
    .ah-cta { padding: 94px 0; }
    .ah-cta__command { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .ah-blob,
    .ah-status-dot,
    .ah-command-line i,
    .ah-cta__command i { animation: none !important; }
    .ah-reveal { opacity: 1; transform: none; transition: none; }
    .ah-button,
    .ah-service-card { transition-duration: .01ms; }
}
