.iot-hub-page {
    background: #fff;
}

.iot-hub {
    --iot-ink: #142f40;
    --iot-muted: #4c636f;
    --iot-blue: #075a9b;
    --iot-border: #c8d5da;
    --iot-gutter: clamp(20px, 6vw, 108px);
    padding-top: 1rem;
    color: var(--iot-ink);
    font: 400 16px/1.65 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.iot-hub * {
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

.iot-hub :is(h1, h2, h3, p) { margin: 0; }
.iot-hub a { color: inherit; text-decoration: none; }
.iot-hub :is(a, button, textarea):focus-visible { outline: 3px solid #1c74bb; outline-offset: 4px; }
.iot-wrap { width: min(calc(100% - var(--iot-gutter) * 2), 1500px); margin-inline: auto; }

.iot-hero {
    background: linear-gradient(110deg, #f5f8f7 8%, #edf5f6 54%, #e1ecef 100%);
    border-bottom: 1px solid var(--iot-border);
}

.iot-toolbar,
.iot-crumb,
.iot-actions,
.iot-card-actions {
    display: flex;
    align-items: center;
}

.iot-toolbar {
    position: relative;
    z-index: 3;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    border-bottom: 1px solid #b5c7ce;
}

.iot-crumb { gap: 12px; color: var(--iot-muted); font-size: 13px; }
.iot-crumb a:hover { text-decoration: underline; }
.iot-crumb [aria-current] { font-weight: 650; color: var(--iot-ink); }

.iot-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(12px, 2vw, 44px);
    padding-block: clamp(38px, 5vw, 90px);
}

.iot-hero h1 {
    color: var(--iot-ink);
    font-size: clamp(40px, 4.65vw, 82px);
    line-height: 1.12;
    font-weight: 640;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}

.iot-hero h1 span { color: var(--iot-blue); }
.iot-hero .iot-intro { max-width: 37ch; margin-top: 24px; color: var(--iot-muted); font-size: clamp(16px, 1.3vw, 21px); }
.iot-actions { flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.iot-hub .iot-button {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    transition: color .18s, border-color .18s, background .18s;
}
.iot-hub .iot-button-primary { background: var(--iot-blue); color: #fff; }
.iot-hub .iot-button-primary:hover { background: #08416a; }
.iot-hub .iot-button-secondary { border-color: #9ab1bd; background: transparent; color: var(--iot-ink); }
.iot-hub .iot-button-secondary:hover { border-color: var(--iot-blue); background: #fff; }

.iot-hero-visual {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 1.62;
    background-image: radial-gradient(circle, #72929b73 .8px, transparent 1px);
    background-size: 15px 15px;
}

.iot-hero-visual::before,
.iot-hero-visual::after {
    position: absolute;
    z-index: -1;
    width: 18px;
    height: 18px;
    border-color: #849ea7;
    border-style: solid;
    content: "";
}

.iot-hero-visual::before { inset: 0 auto auto 0; border-width: 1px 0 0 1px; }
.iot-hero-visual::after { inset: auto 0 0 auto; border-width: 0 1px 1px 0; }
.iot-hero-visual img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }

.iot-library { padding-block: clamp(44px, 6vw, 96px); scroll-margin-top: calc(1rem + 16px); }
.iot-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.iot-section-heading h2 {
    flex: 1;
    color: var(--iot-ink);
    font-size: clamp(30px, 3vw, 52px);
    line-height: 1.23;
    letter-spacing: -.035em;
    font-weight: 620;
}
.iot-section-heading p { max-width: 44ch; color: var(--iot-muted); font-size: 14px; }

.iot-simulations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.iot-simulation {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--iot-border);
    border-radius: 9px;
    background: #fff;
}
.iot-simulation-visual { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px 8px 0 0; background: #e7edef; }
.iot-simulation-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iot-simulation-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 2.4vw, 42px); }
.iot-simulation h3 { font-size: clamp(22px, 2vw, 34px); font-weight: 620; line-height: 1.3; letter-spacing: -.025em; }
.iot-simulation-copy > p { margin-block: 12px 26px; color: var(--iot-muted); }
.iot-card-actions { position: relative; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: auto; }
.iot-library-foot { margin-top: 30px; text-align: end; }
.iot-library-foot a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--iot-blue); font-weight: 600; }
.iot-library-foot a:hover { text-decoration: underline; }

.iot-hub .quick-share .quick-share-button {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--iot-blue);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
}
.iot-hub .quick-share .quick-share-button:hover { border-color: var(--iot-border); background: #f1f6f7; }
.iot-card-actions .quick-share { position: static; }
.iot-card-actions .quick-share-manual { max-width: 100%; }
.iot-hub .quick-share-manual :is(label, textarea) { font-size: 15px; }
html[lang=th] .iot-hub { font-family: Tahoma, system-ui, sans-serif; }
html[lang=th] .iot-hub :is(h1, h2, h3) { line-height: 1.45; letter-spacing: 0; }

@media (min-width: 1025px) {
    .iot-hub-page .header { background: #fff; }
    .iot-hub-page .head_boxr .navs .item > a { color: #0059ab; }
}
@media (max-width: 1024px) {
    .iot-hub { padding-top: .8rem; }
    .iot-library { scroll-margin-top: calc(.8rem + 16px); }
    .iot-section-heading { display: block; }
    .iot-section-heading p { margin-top: 12px; max-width: 65ch; }
}
@media (max-width: 720px) {
    .iot-hub { --iot-gutter: clamp(18px, 5.5vw, 36px); }
    .iot-toolbar { min-height: 54px; }
    .iot-hero-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 22px; }
    .iot-hero h1 { font-size: clamp(34px, 8.8vw, 54px); line-height: 1.17; }
    .iot-hero .iot-intro { margin-top: 16px; }
    .iot-actions { gap: 10px; margin-top: 22px; }
    .iot-hero-visual { width: 100%; max-height: 270px; aspect-ratio: 1.95; }
    .iot-hero-visual img { position: absolute; inset: 0; }
    .iot-hub .iot-button { gap: 14px; padding: 10px 14px; font-size: 14px; }
    .iot-section-heading { margin-bottom: 22px; }
    .iot-simulations { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .iot-hub .iot-button { transition: none; }
}
