.hm {
    --hm-accent: #13d4e2;
    --hm-accent-dim: rgba(19, 212, 226, 0.12);
    --hm-panel: #151a1d;
    --hm-panel2: #1b2125;
    --hm-border: #262e33;
    --hm-text: #e6eef0;
    --hm-muted: #8696a0;
    --hm-dim: #5d6d73;
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 20px 48px;
    box-sizing: border-box;
    color: var(--hm-text);
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
}

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

.hm a {
    color: var(--hm-accent);
    text-decoration: none;
}

.hm p {
    margin: 0;
}

.hm pre,
.hm-code-inline,
.hm-eyebrow,
.hm-method,
.hm-path,
.hm-tab,
.hm-step-num,
.hm-live {
    font-family: 'Roboto Mono', monospace;
}

.hm-accent {
    color: var(--hm-accent);
}

.hm-muted {
    color: var(--hm-muted);
}

.hm-code-inline {
    font-size: 0.88em;
    color: #cfe9ee;
    background: var(--hm-panel2);
    border: 1px solid var(--hm-border);
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* Hero */

.hm-hero {
    text-align: center;
    padding: 36px 0 28px;
}

.hm-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--hm-accent);
    border: 1px solid rgba(19, 212, 226, 0.35);
    background: var(--hm-accent-dim);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 22px;
}

.hm-title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 18px;
    color: var(--hm-text);
}

.hm-lead {
    max-width: 680px;
    margin: 0 auto 28px !important;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--hm-muted);
}

.hm-term {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: left;
    background: #0b0e10;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(19, 212, 226, 0.04);
    overflow: hidden;
}

.hm-term-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--hm-border);
    background: #11161a;
}

.hm-term-bar > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2b3338;
}

.hm-term-bar em {
    font-style: normal;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: var(--hm-dim);
    margin-left: 6px;
}

.hm-term pre {
    margin: 0;
    padding: 16px 18px;
    font-size: 14px;
    color: #d5e1e5;
    overflow-x: auto;
    white-space: pre;
}

.hm-prompt {
    color: var(--hm-dim);
    user-select: none;
}

.hm-key {
    color: #f2b632;
}

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

.hm-btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid var(--hm-border);
    background: var(--hm-panel);
    color: var(--hm-text) !important;
    font-size: 15px;
    font-weight: 400;
    transition: border-color 0.15s, background 0.15s;
}

.hm-btn:hover {
    border-color: var(--hm-accent);
}

.hm-btn-primary {
    background: #0e5f66;
    border-color: #0e5f66;
}

.hm-btn-primary:hover {
    background: #12737b;
    border-color: #12737b;
}

.hm-btn-ghost {
    background: none;
    border-color: transparent;
    color: var(--hm-accent) !important;
}

.hm-copy {
    margin-left: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: var(--hm-muted);
    background: none;
    border: 1px solid var(--hm-border);
    border-radius: 5px;
    padding: 2px 9px;
    cursor: pointer;
}

.hm-copy:hover {
    color: var(--hm-text);
    border-color: var(--hm-accent);
}

.hm-copy.hm-done {
    color: #3ccf7a;
    border-color: #3ccf7a;
}

/* Live demo */

.hm-demo {
    margin: 12px 0 8px;
}

.hm-demo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.hm-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #e5534b;
}

.hm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5534b;
    box-shadow: 0 0 8px #e5534b;
    animation: hm-pulse 1.4s infinite;
}

@keyframes hm-pulse {
    50% {
        opacity: 0.35;
    }
}

.hm-demo-frame {
    border: 1px solid var(--hm-border);
    border-radius: 14px;
    overflow: hidden;
    background: #12181b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Sections */

.hm-section {
    padding: 56px 0 0;
}

.hm-h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    color: var(--hm-text);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.hm-sub {
    color: var(--hm-muted);
    margin-bottom: 18px !important;
    max-width: 760px;
}

/* Steps */

.hm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.hm-step {
    background: var(--hm-panel);
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hm-step p {
    color: var(--hm-muted);
    font-size: 14px;
    flex: 1;
}

.hm-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--hm-accent);
    color: var(--hm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.hm-step-title {
    font-size: 17px;
    font-weight: 400;
}

.hm-snippet {
    margin: 4px 0 0;
    background: #0b0e10;
    border: 1px solid var(--hm-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #d5e1e5;
    overflow-x: auto;
    white-space: pre;
}

/* Code */

.hm-code {
    background: #0b0e10;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    overflow: hidden;
}

.hm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 10px 0;
    border-bottom: 1px solid var(--hm-border);
    background: #11161a;
}

.hm-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--hm-muted);
    font-size: 13px;
    padding: 8px 12px 9px;
    cursor: pointer;
}

.hm-tab:hover {
    color: var(--hm-text);
}

.hm-tab.hm-active {
    color: var(--hm-accent);
    border-bottom-color: var(--hm-accent);
}

.hm-code-body {
    position: relative;
}

.hm-code-body pre {
    margin: 0;
    padding: 18px 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #d5e1e5;
    overflow-x: auto;
    white-space: pre;
    min-height: 120px;
}

.hm-code-body .c {
    color: #5f7178;
}

.hm-code-body .s {
    color: #a5d6a7;
}

.hm-copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Model */

.hm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hm-card {
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(180deg, var(--hm-panel) 0%, rgba(21, 26, 29, 0.4) 100%);
}

.hm-card p {
    color: var(--hm-muted);
    font-size: 14px;
}

.hm-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 6px;
}

.hm-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--hm-accent-dim);
    color: var(--hm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: none;
}

/* API */

.hm-table-wrap {
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 18px;
}

.hm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hm-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hm-border);
    color: var(--hm-muted);
    vertical-align: top;
}

.hm-table tr:last-child td {
    border-bottom: none;
}

.hm-method {
    font-size: 11px;
    color: #3ccf7a;
    border: 1px solid rgba(60, 207, 122, 0.4);
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}

.hm-path {
    font-size: 13px;
    color: var(--hm-text) !important;
    white-space: nowrap;
}

.hm-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
}

/* Use cases */

.hm-uses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hm-use {
    display: block;
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 18px;
    background: var(--hm-panel);
    transition: border-color 0.15s, transform 0.15s;
}

.hm-use:hover {
    border-color: rgba(19, 212, 226, 0.5);
    transform: translateY(-2px);
}

.hm-use-title {
    color: var(--hm-text);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.hm-use p {
    color: var(--hm-muted);
    font-size: 14px;
}

/* The end */

.hm-final {
    margin-top: 64px;
    padding: 36px 20px;
    text-align: center;
    border: 1px solid var(--hm-border);
    border-radius: 16px;
    background: radial-gradient(ellipse at top, rgba(19, 212, 226, 0.10), transparent 70%), var(--hm-panel);
}

.hm-final-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 400;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .hm {
        padding: 4px 14px 36px;
    }

    /* The API: a row is a card - the method and the path, the meaning under them */
    .hm-table,
    .hm-table tbody,
    .hm-table tr,
    .hm-table td {
        display: block;
    }

    .hm-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--hm-border);
    }

    .hm-table tr:last-child {
        border-bottom: none;
    }

    .hm-table td {
        padding: 0;
        border: none;
    }

    .hm-table td:first-child {
        display: inline-block;
        margin-right: 8px;
    }

    .hm-path {
        display: inline !important;
        white-space: normal;
        word-break: break-all;
    }

    .hm-table td:last-child {
        margin-top: 4px;
        font-size: 13px;
    }

    .hm-hero {
        padding-top: 20px;
    }

    .hm-term pre {
        font-size: 12px;
    }

    .hm-section {
        padding-top: 40px;
    }
}
