:root {
    --ha-blue: #1768ee;
    --ha-blue-deep: #0a4dcc;
    --ha-blue-soft: #eaf2ff;
    --ha-ink: #0e1b31;
    --ha-muted: #65728a;
    --ha-line: #dce7f5;
    --ha-surface: #f5f8fd;
    --ha-white: #ffffff;
    --ha-shadow: 0 24px 70px rgba(35, 76, 137, .12);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

body.ha-site {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ha-ink);
    background: var(--ha-white);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.ha-menu-open { overflow: hidden; }

.ha-site a {
    color: inherit;
    text-decoration: none;
}

.ha-site button,
.ha-site input {
    font: inherit;
}

.ha-site button,
.ha-site a { -webkit-tap-highlight-color: transparent; }

.ha-container {
    width: min(100% - 96px, 1240px);
    margin: 0 auto;
}

.ha-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100% - 96px, 1320px);
    height: 88px;
    margin: 0 auto;
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, width .25s ease, padding .25s ease;
}

.ha-header::before {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;
    height: 88px;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    content: "";
    backdrop-filter: blur(0);
    transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.ha-header.is-scrolled::before,
.ha-header-solid::before {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(205, 219, 238, .8);
    backdrop-filter: blur(18px);
}

.ha-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 11px;
    color: var(--ha-ink);
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.ha-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.ha-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 48px;
}

.ha-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #39465b;
    font-size: 15px;
    font-weight: 620;
    transition: color .2s ease;
}

.ha-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ha-blue);
    content: "";
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .2s ease, transform .2s ease;
}

.ha-nav a:hover,
.ha-nav a:focus-visible,
.ha-nav a.is-active { color: var(--ha-blue-deep); }

.ha-nav a:hover::after,
.ha-nav a:focus-visible::after,
.ha-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.ha-header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 14px;
}

.ha-login,
.ha-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 720;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ha-login {
    min-width: 136px;
    min-height: 46px;
    padding: 0 22px;
    color: var(--ha-white);
    background: var(--ha-blue);
    box-shadow: 0 14px 32px rgba(23, 104, 238, .22);
    font-size: 15px;
}

.ha-login:hover,
.ha-login:focus-visible,
.ha-button-primary:hover,
.ha-button-primary:focus-visible {
    background: var(--ha-blue-deep);
    box-shadow: 0 18px 40px rgba(23, 104, 238, .3);
    transform: translateY(-2px);
}

.ha-menu {
    display: none;
    min-width: 64px;
    height: 44px;
    border: 1px solid var(--ha-line);
    border-radius: 11px;
    color: var(--ha-ink);
    background: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 720;
}

.ha-hero {
    position: relative;
    min-height: 850px;
    overflow: hidden;
    background: #f7faff;
}

.ha-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ha-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(var(--ha-parallax-x, 0), var(--ha-parallax-y, 0), 0) scale(1.025);
    animation: ha-curtain-drift 12s ease-in-out infinite alternate;
    transition: transform .9s cubic-bezier(.2, .65, .2, 1);
}

.ha-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100% - 96px, 1240px);
    min-height: 850px;
    margin: 0 auto;
    padding: 132px 0 86px;
}

.ha-copy {
    width: min(760px, 56vw);
    animation: ha-copy-in .78s cubic-bezier(.2, .7, .2, 1) .08s both;
}

.ha-kicker,
.ha-section-kicker {
    margin: 0 0 20px;
    color: var(--ha-blue);
    font-size: 13px;
    font-weight: 820;
    letter-spacing: .18em;
}

.ha-copy h1 {
    margin: 0;
    color: var(--ha-ink);
    font-size: clamp(52px, 5.2vw, 76px);
    font-weight: 860;
    letter-spacing: -.07em;
    line-height: 1.12;
}

.ha-copy h1 strong,
.ha-copy h1 span {
    display: block;
}

.ha-copy h1 strong {
    color: var(--ha-ink);
    font: inherit;
}

.ha-copy h1 span {
    color: var(--ha-blue);
    font-size: .72em;
    letter-spacing: -.055em;
    white-space: nowrap;
}

.ha-lede {
    max-width: 530px;
    margin: 28px 0 0;
    color: var(--ha-muted);
    font-size: 20px;
    line-height: 1.75;
}

.ha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.ha-button {
    min-width: 160px;
    padding: 0 26px;
}

.ha-button-primary {
    color: var(--ha-white);
    background: var(--ha-blue);
    box-shadow: 0 16px 38px rgba(23, 104, 238, .24);
}

.ha-button-secondary {
    color: var(--ha-blue-deep);
    background: rgba(255, 255, 255, .82);
    border-color: rgba(23, 104, 238, .38);
    backdrop-filter: blur(14px);
}

.ha-button-secondary:hover,
.ha-button-secondary:focus-visible {
    background: var(--ha-white);
    border-color: var(--ha-blue);
    box-shadow: 0 16px 34px rgba(35, 76, 137, .12);
    transform: translateY(-2px);
}

.ha-scroll-cue {
    position: absolute;
    bottom: 42px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #52627a;
    font-size: 13px;
    font-weight: 650;
}

.ha-scroll-cue i {
    display: block;
    width: 54px;
    height: 1px;
    background: var(--ha-blue);
    transform-origin: left center;
    animation: ha-line-pulse 2.2s ease-in-out infinite;
}

.ha-section {
    position: relative;
    padding: 132px 0;
    scroll-margin-top: 88px;
}

.ha-section-heading { max-width: 750px; }

.ha-section-heading h2,
.ha-workflow-intro h2,
.ha-cta h2 {
    margin: 0;
    color: var(--ha-ink);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 820;
    letter-spacing: -.055em;
    line-height: 1.2;
}

.ha-section-heading > p:last-child,
.ha-workflow-intro > p,
.ha-cta p {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--ha-muted);
    font-size: 18px;
}

.ha-products { background: var(--ha-white); }

.ha-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 58px;
}

.ha-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--ha-line);
    border-radius: 24px;
    background: var(--ha-white);
    box-shadow: 0 20px 52px rgba(35, 76, 137, .07);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.ha-product-card::before {
    position: absolute;
    top: 0;
    right: 34px;
    left: 34px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--ha-blue);
    content: "";
    opacity: .18;
    transform: scaleX(.45);
    transform-origin: left center;
    transition: opacity .28s ease, transform .28s ease;
}

.ha-product-card:hover {
    border-color: #bfd3ef;
    box-shadow: var(--ha-shadow);
    transform: translateY(-8px);
}

.ha-product-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.ha-card-index {
    margin-bottom: 72px;
    color: var(--ha-blue);
    font-size: 14px;
    font-weight: 820;
    letter-spacing: .16em;
}

.ha-product-card h3 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 780;
    letter-spacing: -.03em;
}

.ha-product-card p {
    margin: 0;
    color: var(--ha-muted);
}

.ha-product-card > a {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 32px;
    color: var(--ha-blue-deep);
    font-size: 14px;
    font-weight: 750;
}

.ha-product-card > a::after,
.ha-text-link::after {
    display: inline-block;
    margin-left: 8px;
    content: "›";
    transition: transform .2s ease;
}

.ha-product-card > a:hover::after,
.ha-text-link:hover::after { transform: translateX(4px); }

.ha-workflow { background: var(--ha-surface); }

.ha-workflow-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
    align-items: start;
}

.ha-workflow-intro {
    position: sticky;
    top: 132px;
    padding-top: 18px;
}

.ha-text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 34px;
    color: var(--ha-blue-deep);
    font-weight: 760;
}

.ha-flow-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ha-flow-list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    min-height: 156px;
    padding: 32px 0;
    border-bottom: 1px solid #d5e2f2;
}

.ha-flow-list li:first-child { border-top: 1px solid #d5e2f2; }

.ha-flow-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid #bcd1ef;
    border-radius: 50%;
    color: var(--ha-blue);
    background: var(--ha-white);
    font-size: 13px;
    font-weight: 820;
}

.ha-flow-list h3 {
    margin: 2px 0 8px;
    font-size: 23px;
    letter-spacing: -.03em;
}

.ha-flow-list p {
    margin: 0;
    color: var(--ha-muted);
}

.ha-scenarios { background: var(--ha-white); }

.ha-section-heading-row {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 80px;
    align-items: end;
    max-width: none;
}

.ha-section-heading-row > p {
    margin: 0 0 6px;
    color: var(--ha-muted);
    font-size: 17px;
}

.ha-scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 58px;
}

.ha-scenario-card {
    min-height: 260px;
    padding: 38px;
    border: 1px solid var(--ha-line);
    border-radius: 22px;
    background: var(--ha-white);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ha-scenario-card:nth-child(2),
.ha-scenario-card:nth-child(3) { background: var(--ha-surface); }

.ha-scenario-card:hover {
    background: var(--ha-blue-soft);
    box-shadow: 0 18px 44px rgba(35, 76, 137, .09);
    transform: translateY(-5px);
}

.ha-scenario-card > span {
    display: inline-flex;
    margin-bottom: 52px;
    color: var(--ha-blue);
    font-size: 13px;
    font-weight: 790;
    letter-spacing: .08em;
}

.ha-scenario-card h3 {
    max-width: 430px;
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -.035em;
    line-height: 1.35;
}

.ha-scenario-card p {
    margin: 0;
    color: var(--ha-muted);
}

.ha-cta {
    padding: 52px 0 112px;
    background: var(--ha-white);
}

.ha-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    padding: 58px 64px;
    border: 1px solid #cfe0f5;
    border-radius: 28px;
    background: var(--ha-surface);
    box-shadow: 0 24px 70px rgba(35, 76, 137, .08);
}

.ha-cta h2 { font-size: clamp(34px, 3.3vw, 48px); }
.ha-cta .ha-actions { margin-top: 0; }

.ha-footer {
    border-top: 1px solid var(--ha-line);
    background: #f9fbfe;
}

.ha-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 112px;
    gap: 28px;
}

.ha-brand-small { font-size: 22px; }
.ha-brand-small img { width: 30px; height: 30px; }

.ha-footer p {
    margin: 0;
    color: var(--ha-muted);
    font-size: 14px;
}

.ha-footer-links {
    display: flex;
    justify-self: end;
    gap: 28px;
    color: #4b5970;
    font-size: 14px;
    font-weight: 650;
}

.ha-footer-links a:hover { color: var(--ha-blue); }

/* Documentation */

.ha-doc-site { background: #f8fbff; }

.ha-doc-hero {
    position: relative;
    min-height: 510px;
    padding-top: 88px;
    overflow: hidden;
    background: #f2f7ff;
}

.ha-doc-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ha-doc-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .72;
}

.ha-doc-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 80px;
    align-items: center;
    min-height: 422px;
}

.ha-doc-hero h1 {
    margin: 0;
    font-size: clamp(52px, 5vw, 72px);
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: 1.05;
}

.ha-doc-hero h1 + p {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--ha-muted);
    font-size: 19px;
}

.ha-doc-search {
    padding: 28px;
    border: 1px solid rgba(191, 211, 239, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 22px 58px rgba(35, 76, 137, .12);
    backdrop-filter: blur(20px);
}

.ha-doc-search > label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 760;
}

.ha-doc-search > div {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border: 1px solid #cbdcf2;
    border-radius: 12px;
    background: var(--ha-white);
}

.ha-doc-search input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: var(--ha-ink);
    background: transparent;
}

.ha-doc-search input:focus { box-shadow: inset 0 0 0 2px rgba(23, 104, 238, .35); }

.ha-doc-search button {
    padding: 0 18px;
    border: 0;
    color: var(--ha-blue-deep);
    background: var(--ha-blue-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 720;
}

.ha-doc-search > span {
    display: block;
    margin-top: 12px;
    color: #78869b;
    font-size: 12px;
}

.ha-doc-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 90px;
}

.ha-doc-sidebar {
    position: sticky;
    top: 116px;
}

.ha-doc-sidebar > p {
    margin: 0 0 16px;
    color: #8995a8;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .12em;
}

.ha-doc-sidebar nav {
    display: grid;
    gap: 4px;
    padding-left: 14px;
    border-left: 1px solid #cfdded;
}

.ha-doc-sidebar nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 9px;
    color: #5b687e;
    font-size: 14px;
    font-weight: 650;
    transition: color .2s ease, background-color .2s ease;
}

.ha-doc-sidebar nav a::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -15px;
    width: 2px;
    background: var(--ha-blue);
    content: "";
    opacity: 0;
}

.ha-doc-sidebar nav a:hover,
.ha-doc-sidebar nav a.is-active {
    color: var(--ha-blue-deep);
    background: var(--ha-blue-soft);
}

.ha-doc-sidebar nav a.is-active::before { opacity: 1; }

.ha-doc-side-note {
    display: grid;
    gap: 5px;
    margin-top: 34px;
    padding: 18px;
    border: 1px solid var(--ha-line);
    border-radius: 14px;
    background: var(--ha-white);
}

.ha-doc-side-note strong { font-size: 14px; }
.ha-doc-side-note span { color: var(--ha-muted); font-size: 12px; }
.ha-doc-side-note a { margin-top: 6px; color: var(--ha-blue-deep); font-size: 13px; font-weight: 720; }

.ha-doc-content {
    display: grid;
    gap: 58px;
    min-width: 0;
}

.ha-doc-block {
    scroll-margin-top: 120px;
}

.ha-doc-block[hidden] { display: none; }

.ha-doc-block-head {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.ha-doc-block-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #c2d6f0;
    border-radius: 50%;
    color: var(--ha-blue);
    background: var(--ha-white);
    font-size: 12px;
    font-weight: 820;
}

.ha-doc-block-head p {
    margin: 0 0 3px;
    color: var(--ha-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.ha-doc-block h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.ha-doc-panel,
.ha-doc-steps,
.ha-doc-capabilities,
.ha-doc-checklist,
.ha-faq-list {
    border: 1px solid var(--ha-line);
    border-radius: 22px;
    background: var(--ha-white);
    box-shadow: 0 18px 50px rgba(35, 76, 137, .06);
}

.ha-doc-panel { padding: 38px; }

.ha-doc-panel h3 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.ha-doc-panel > p {
    max-width: 780px;
    margin: 0;
    color: var(--ha-muted);
}

.ha-doc-notice {
    margin-top: 28px;
    padding: 22px 24px;
    border-left: 3px solid var(--ha-blue);
    border-radius: 0 12px 12px 0;
    background: var(--ha-blue-soft);
}

.ha-doc-notice strong { display: block; margin-bottom: 4px; color: var(--ha-blue-deep); }
.ha-doc-notice p { margin: 0; color: #52647d; }

.ha-doc-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.ha-doc-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    min-height: 132px;
    padding: 24px;
    border-right: 1px solid var(--ha-line);
    border-bottom: 1px solid var(--ha-line);
}

.ha-doc-steps li:nth-child(2n) { border-right: 0; }
.ha-doc-steps li:nth-last-child(-n+2) { border-bottom: 0; }

.ha-doc-steps li > span {
    color: var(--ha-blue);
    font-size: 12px;
    font-weight: 820;
}

.ha-doc-steps h3,
.ha-doc-capabilities h3 {
    margin: 0 0 10px;
    font-size: 20px;
    letter-spacing: -.025em;
}

.ha-doc-steps p,
.ha-doc-capabilities p {
    margin: 0;
    color: var(--ha-muted);
    font-size: 14px;
}

.ha-doc-capabilities { overflow: hidden; }

.ha-doc-capabilities article {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 34px;
    align-items: start;
    padding: 24px 30px;
    border-bottom: 1px solid var(--ha-line);
}

.ha-doc-capabilities article:last-child { border-bottom: 0; }

.ha-doc-capabilities article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #c8d9ef;
    border-radius: 999px;
    color: var(--ha-blue-deep);
    background: var(--ha-blue-soft);
    font-size: 13px;
    font-weight: 740;
}

.ha-doc-checklist {
    display: grid;
    overflow: hidden;
}

.ha-doc-checklist label {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 26px;
    border-bottom: 1px solid var(--ha-line);
    cursor: pointer;
}

.ha-doc-checklist label:last-child { border-bottom: 0; }

.ha-doc-checklist input {
    width: 19px;
    height: 19px;
    margin: 3px 0 0;
    accent-color: var(--ha-blue);
}

.ha-doc-checklist span { color: var(--ha-muted); }
.ha-doc-checklist strong { margin-right: 10px; color: var(--ha-ink); }

.ha-faq-list { overflow: hidden; }

.ha-faq-list details { border-bottom: 1px solid var(--ha-line); }
.ha-faq-list details:last-child { border-bottom: 0; }

.ha-faq-list summary {
    position: relative;
    padding: 20px 64px 20px 26px;
    cursor: pointer;
    font-weight: 720;
    list-style: none;
}

.ha-faq-list summary::-webkit-details-marker { display: none; }

.ha-faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 30px;
    color: var(--ha-blue);
    content: "+";
    font-size: 22px;
    font-weight: 400;
    transform: translateY(-50%);
}

.ha-faq-list details[open] summary::after { content: "−"; }

.ha-faq-list details p {
    margin: -4px 0 0;
    padding: 0 64px 22px 26px;
    color: var(--ha-muted);
}

.ha-doc-empty {
    padding: 70px 32px;
    border: 1px dashed #b9cde9;
    border-radius: 22px;
    background: var(--ha-white);
    text-align: center;
}

.ha-doc-empty h2 { font-size: 28px; }
.ha-doc-empty p { margin: 8px 0 24px; color: var(--ha-muted); }

.ha-site.ha-ready .ha-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.ha-site.ha-ready .ha-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ha-curtain-drift {
    0% { transform: translate3d(var(--ha-parallax-x, 0), var(--ha-parallax-y, 0), 0) scale(1.025); }
    100% { transform: translate3d(calc(var(--ha-parallax-x, 0) - 12px), calc(var(--ha-parallax-y, 0) + 8px), 0) scale(1.04); }
}

@keyframes ha-copy-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ha-line-pulse {
    0%, 100% { opacity: .35; transform: scaleX(.55); }
    50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 1100px) {
    .ha-container,
    .ha-hero-inner { width: min(100% - 64px, 1240px); }
    .ha-header { width: min(100% - 64px, 1320px); }
    .ha-nav { gap: 28px; }
    .ha-product-card { padding: 28px; }
    .ha-workflow-layout { gap: 64px; }
    .ha-doc-hero-inner { grid-template-columns: 1fr 400px; gap: 48px; }
    .ha-doc-shell { gap: 42px; }
}

@media (max-width: 860px) {
    html { scroll-padding-top: 78px; }
    .ha-container,
    .ha-hero-inner,
    .ha-header { width: min(100% - 40px, 1240px); }
    .ha-header { height: 74px; grid-template-columns: 1fr auto; }
    .ha-header::before { height: 74px; }
    .ha-brand { font-size: 23px; }
    .ha-brand img { width: 34px; height: 34px; }
    .ha-header-actions { grid-column: 2; }
    .ha-login { display: none; }
    .ha-menu { display: inline-flex; align-items: center; justify-content: center; }
    .ha-nav {
        position: fixed;
        top: 74px;
        right: 0;
        left: 0;
        display: grid;
        align-content: start;
        gap: 0;
        width: 100%;
        max-height: 0;
        padding: 0 20px;
        overflow: hidden;
        visibility: hidden;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid var(--ha-line);
        box-shadow: 0 24px 44px rgba(35, 76, 137, .1);
        opacity: 0;
        backdrop-filter: blur(20px);
        transition: max-height .28s ease, padding .28s ease, opacity .2s ease, visibility .2s ease;
    }
    .ha-menu-open .ha-nav {
        max-height: 360px;
        padding-top: 10px;
        padding-bottom: 20px;
        visibility: visible;
        opacity: 1;
    }
    .ha-nav a {
        min-height: 56px;
        padding: 0 10px;
        border-bottom: 1px solid #edf2f8;
    }
    .ha-nav a::after { display: none; }
    .ha-hero,
    .ha-hero-inner { min-height: 760px; }
    .ha-hero-inner { justify-content: flex-start; padding-top: 154px; }
    .ha-copy { width: min(610px, 78vw); }
    .ha-copy h1 { font-size: clamp(48px, 8vw, 68px); }
    .ha-visual img { object-position: 58% center; opacity: .76; }
    .ha-product-grid { grid-template-columns: 1fr; }
    .ha-product-card { min-height: 280px; }
    .ha-card-index { margin-bottom: 42px; }
    .ha-workflow-layout { grid-template-columns: 1fr; }
    .ha-workflow-intro { position: static; }
    .ha-section-heading-row { grid-template-columns: 1fr; gap: 22px; }
    .ha-scenario-grid { grid-template-columns: 1fr; }
    .ha-cta-inner { grid-template-columns: 1fr; padding: 48px; }
    .ha-footer-inner { grid-template-columns: 1fr auto; }
    .ha-footer-inner > p { display: none; }
    .ha-doc-hero { min-height: auto; }
    .ha-doc-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 92px; padding-bottom: 64px; }
    .ha-doc-search { max-width: 560px; }
    .ha-doc-shell { grid-template-columns: 1fr; padding-top: 42px; }
    .ha-doc-sidebar {
        position: sticky;
        top: 74px;
        z-index: 20;
        margin-right: -20px;
        margin-left: -20px;
        padding: 10px 20px;
        overflow-x: auto;
        background: rgba(248, 251, 255, .96);
        border-bottom: 1px solid var(--ha-line);
        backdrop-filter: blur(16px);
    }
    .ha-doc-sidebar > p,
    .ha-doc-side-note { display: none; }
    .ha-doc-sidebar nav {
        display: flex;
        width: max-content;
        padding: 0;
        border: 0;
    }
    .ha-doc-sidebar nav a { padding: 9px 14px; white-space: nowrap; }
    .ha-doc-sidebar nav a::before { display: none; }
}

@media (max-width: 620px) {
    .ha-container,
    .ha-hero-inner,
    .ha-header { width: min(100% - 32px, 1240px); }
    .ha-header { height: 70px; }
    .ha-header::before { height: 70px; }
    .ha-nav { top: 70px; }
    .ha-brand { gap: 9px; font-size: 21px; }
    .ha-brand img { width: 32px; height: 32px; }
    .ha-menu { min-width: 60px; height: 42px; }
    .ha-hero,
    .ha-hero-inner { min-height: 760px; }
    .ha-hero-inner { padding-top: 126px; padding-bottom: 60px; }
    .ha-copy { width: 100%; }
    .ha-kicker { margin-bottom: 16px; font-size: 11px; }
    .ha-copy h1 { max-width: 350px; font-size: 50px; line-height: 1.13; }
    .ha-lede { max-width: 340px; margin-top: 22px; font-size: 16px; line-height: 1.7; }
    .ha-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .ha-button { width: 100%; }
    .ha-visual img { object-position: 62% bottom; opacity: .58; }
    .ha-scroll-cue { bottom: 26px; }
    .ha-section { padding: 92px 0; }
    .ha-section-kicker { margin-bottom: 14px; font-size: 11px; }
    .ha-section-heading h2,
    .ha-workflow-intro h2,
    .ha-cta h2 { font-size: 36px; }
    .ha-section-heading > p:last-child,
    .ha-workflow-intro > p,
    .ha-cta p { margin-top: 18px; font-size: 16px; }
    .ha-product-grid,
    .ha-scenario-grid { margin-top: 40px; }
    .ha-product-card { min-height: 260px; padding: 26px; border-radius: 20px; }
    .ha-product-card h3 { font-size: 23px; }
    .ha-flow-list li { grid-template-columns: 58px 1fr; gap: 12px; padding: 26px 0; }
    .ha-flow-list li > span { width: 48px; height: 48px; }
    .ha-scenario-card { min-height: 230px; padding: 28px; }
    .ha-scenario-card > span { margin-bottom: 38px; }
    .ha-scenario-card h3 { font-size: 23px; }
    .ha-cta { padding-bottom: 84px; }
    .ha-cta-inner { width: calc(100% - 32px); padding: 34px 24px; border-radius: 22px; }
    .ha-footer-inner { min-height: 100px; }
    .ha-footer-links { gap: 16px; }
    .ha-doc-hero-inner { padding-top: 84px; padding-bottom: 48px; }
    .ha-doc-hero h1 { font-size: 50px; }
    .ha-doc-hero h1 + p { font-size: 16px; }
    .ha-doc-search { padding: 20px; border-radius: 17px; }
    .ha-doc-search > div { grid-template-columns: 1fr; }
    .ha-doc-search button { min-height: 42px; border-top: 1px solid var(--ha-line); }
    .ha-doc-shell { padding-bottom: 84px; }
    .ha-doc-sidebar { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
    .ha-doc-content { gap: 68px; }
    .ha-doc-block-head { grid-template-columns: 48px 1fr; gap: 12px; }
    .ha-doc-block-head > span { width: 44px; height: 44px; }
    .ha-doc-block h2 { font-size: 28px; }
    .ha-doc-panel { padding: 26px; }
    .ha-doc-panel h3 { font-size: 21px; }
    .ha-doc-steps { grid-template-columns: 1fr; }
    .ha-doc-steps li { min-height: 150px; padding: 26px; border-right: 0; border-bottom: 1px solid var(--ha-line) !important; }
    .ha-doc-steps li:last-child { border-bottom: 0 !important; }
    .ha-doc-capabilities article { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
    .ha-doc-capabilities article > span { justify-self: start; }
    .ha-doc-checklist label { padding: 22px; }
    .ha-doc-checklist strong { display: block; margin: 0 0 4px; }
    .ha-faq-list summary { padding: 22px 54px 22px 22px; }
    .ha-faq-list summary::after { right: 22px; }
    .ha-faq-list details p { padding: 0 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .ha-site.ha-ready .ha-reveal { opacity: 1; transform: none; }
}
