/* MySSH website: IBM Carbon g100 (the app's dark theme). */
:root {
  color-scheme: dark;
  --bg: #161616;
  --layer-01: #262626;
  --layer-02: #393939;
  --layer-hover: #333333;
  --border-subtle: #393939;
  --border-strong: #6f6f6f;
  --text: #f4f4f4;
  --text-2: #c6c6c6;
  --text-3: #a8a8a8;
  --blue: #0f62fe;
  --blue-hover: #0050e6;
  --blue-active: #002d9c;
  --link: #78a9ff;
  --link-hover: #a6c8ff;
  --focus: #ffffff;
  --green: #42be65;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans CJK JP", "Microsoft YaHei", "Yu Gothic", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1312px;
  --gutter: 16px;
}
@media (min-width: 672px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(zh-CN), :lang(ja) { line-break: strict; }
/* CJK headings: break at punctuation, not inside words; balance the lines */
:lang(zh-CN) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
h1, h2 { text-wrap: balance; }
:lang(zh-CN) body, :lang(ja) body { line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
svg { fill: currentColor; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* ------------------------------------------------------------ UI shell header */
.shell { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border-subtle); }
.shell__inner { max-width: var(--wrap); margin: 0 auto; height: 48px; display: flex; align-items: center; padding: 0 0 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: .16px; height: 48px; padding-right: 32px; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand svg { width: 20px; height: 20px; fill: var(--blue); }
.shell__nav { display: none; height: 48px; }
.shell__nav a { display: flex; align-items: center; height: 48px; padding: 0 16px; color: var(--text-2); font-size: 14px; letter-spacing: .16px; }
.shell__nav a:hover { background: var(--layer-hover); color: var(--text); text-decoration: none; }
@media (min-width: 672px) { .shell__nav { display: flex; } }
.shell__actions { margin-left: auto; display: flex; height: 48px; }
.icon-link, .lang summary { display: flex; align-items: center; justify-content: center; height: 48px; min-width: 48px; color: var(--text); cursor: pointer; }
.icon-link:hover, .lang summary:hover { background: var(--layer-hover); color: var(--text); }
.icon-link svg { width: 20px; height: 20px; }
.lang { position: relative; }
.lang summary { list-style: none; gap: 8px; padding: 0 12px; font-size: 14px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 20px; height: 20px; }
.lang summary span { display: none; }
@media (min-width: 672px) { .lang summary span { display: inline; } }
.lang[open] summary { background: var(--layer-01); }
.lang ul { position: absolute; right: 0; top: 48px; margin: 0; padding: 0; list-style: none; min-width: 176px; background: var(--layer-01); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.lang li a { display: block; padding: 11px 16px; color: var(--text-2); font-size: 14px; border-bottom: 1px solid var(--border-subtle); }
.lang li:last-child a { border-bottom: 0; }
.lang li a:hover { background: var(--layer-hover); color: var(--text); text-decoration: none; }
.lang li a[aria-current="true"] { color: var(--text); box-shadow: inset 3px 0 0 var(--blue); }

/* ------------------------------------------------------------ type */
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .32px; color: var(--link); margin-bottom: 16px; }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 40em; }
:lang(zh-CN) .lead, :lang(ja) .lead { font-size: 17px; line-height: 1.8; }
.fine { color: var(--text-3); font-size: 14px; line-height: 1.45; }
.label { font-size: 12px; letter-spacing: .32px; color: var(--text-3); margin: 0 0 8px; }
.note { color: var(--text-3); font-size: 14px; margin-top: 24px; max-width: 40em; }
code, pre { font-family: var(--mono); }

/* ------------------------------------------------------------ buttons (Carbon) */
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 40px 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 0 16px; min-width: 220px;
  font-size: 14px; letter-spacing: .16px; border: 1px solid transparent; text-decoration: none; transition: background .11s cubic-bezier(.2,0,.38,.9); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--primary:active { background: var(--blue-active); }
.btn--tertiary { border-color: #fff; color: #fff; }
.btn--tertiary:hover { background: #f4f4f4; color: #161616; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; box-shadow: inset 0 0 0 1px var(--bg); }
@media (max-width: 479px) { .btn { width: 100%; } }

/* ------------------------------------------------------------ hero */
.hero { padding: 64px 0 80px; background:
  radial-gradient(1200px 520px at 85% 0%, rgba(15,98,254,.22), transparent 60%),
  linear-gradient(180deg, #161616, #161616); border-bottom: 1px solid var(--border-subtle); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); line-height: 1.12; letter-spacing: -.5px; max-width: 13em; }
:lang(zh-CN) .hero h1, :lang(ja) .hero h1 { letter-spacing: 0; line-height: 1.25; font-weight: 400; font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
.hero .lead { margin-top: 24px; }
@media (min-width: 1056px) {
  .hero { padding: 96px 0 112px; }
  .hero__grid { grid-template-columns: 11fr 13fr; gap: 64px; }
}

/* app window frame around screenshots */
.window { margin: 0; background: var(--layer-01); border: 1px solid #393939; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.window__bar { height: 28px; display: flex; gap: 8px; align-items: center; padding: 0 12px; background: #262626; border-bottom: 1px solid #393939; }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #525252; }

/* ------------------------------------------------------------ facts band */
.band { background: var(--layer-01); }
.facts { display: grid; grid-template-columns: 1fr 1fr; }
.facts > div { padding: 24px 16px 28px; border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 4px; }
.facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
.facts strong { font-weight: 400; font-size: 20px; }
.facts span { color: var(--text-3); font-size: 14px; }
@media (min-width: 1056px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { padding: 32px 24px; border-bottom: 0 !important; border-left: 1px solid var(--border-subtle) !important; padding-left: 24px !important; }
  .facts > div:first-child { border-left: 0 !important; padding-left: 0 !important; }
}

/* ------------------------------------------------------------ sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--border-subtle); }
.section--layer { background: #1c1c1c; }
@media (min-width: 1056px) { .section { padding: 112px 0; } }
.section__head { margin-bottom: 48px; max-width: 48em; }
.section h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.625rem); line-height: 1.2; }
:lang(zh-CN) .section h2, :lang(ja) .section h2 { font-weight: 400; line-height: 1.35; }
.section__head .lead { margin-top: 16px; }

/* feature tiles: Carbon grid with 1px gaps */
.tiles { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
@media (min-width: 672px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1056px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--bg); padding: 24px 24px 40px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; transition: background .11s; }
.tile:hover { background: var(--layer-01); }
.tile__icon { width: 32px; height: 32px; color: var(--link); margin-bottom: 20px; }
.tile__icon svg { width: 32px; height: 32px; }
.tile h3 { font-size: 20px; font-weight: 400; }
.tile p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* split layouts */
.split { display: grid; gap: 48px; align-items: center; }
.split__shot--narrow { max-width: 400px; justify-self: center; width: 100%; }
@media (min-width: 1056px) {
  .split { grid-template-columns: 6fr 6fr; gap: 80px; }
  .split--reverse .split__copy { order: 2; }
  .split:not(.split--reverse) { grid-template-columns: 7fr 5fr; }
}
.split__copy .lead { margin-top: 16px; }

.policy { list-style: none; counter-reset: p; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.policy li { counter-increment: p; display: grid; grid-template-columns: 40px 128px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); align-items: baseline; }
.policy li::before { content: "0" counter(p); font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.policy b { font-weight: 600; font-size: 15px; }
.policy span { color: var(--text-2); font-size: 15px; }
.policy li:first-child b { color: var(--text-3); }
.policy li:last-child b { color: #ff8389; }
@media (max-width: 559px) {
  .policy li { grid-template-columns: 32px 1fr; }
  .policy span { grid-column: 2; }
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 32px 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 48px; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--text); border: 1px solid var(--border-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 4px 10px; background: var(--layer-02); color: var(--text); border-radius: 12px; }

/* gallery */
.gallery { display: grid; gap: 32px; }
@media (min-width: 672px) { .gallery { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--border-subtle); background: var(--layer-01); }
.gallery figcaption { margin-top: 12px; color: var(--text-2); font-size: 14px; }

/* specs */
.specs { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); margin: 0; }
@media (min-width: 672px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1056px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.specs > div { background: var(--bg); padding: 24px 24px 32px; }
.specs dt { font-size: 16px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.specs dt::before { content: ""; width: 8px; height: 8px; background: var(--green); flex: none; }
.specs dd { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* download */
.section--download { background: linear-gradient(180deg, #161616, #0b1a33); }
.platforms { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
@media (min-width: 1056px) { .platforms { grid-template-columns: 2fr 1fr 1fr; } }
.platform { background: var(--layer-01); padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; }
.platform h3 { font-size: 28px; font-weight: 300; }
.platform__meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.platform p:not(.platform__meta):not(.fine) { color: var(--text-2); }
.platform--main .btn { margin: 12px 0 4px; align-self: flex-start; }
@media (max-width: 479px) { .platform--main .btn { align-self: stretch; } }
.platform:not(.platform--main) { background: #1f1f1f; }
.build { margin-top: 48px; max-width: 720px; }
.build pre { margin: 0 0 12px; padding: 16px; background: var(--layer-01); border-left: 3px solid var(--blue); overflow-x: auto; font-size: 14px; line-height: 1.7; color: var(--text); }

/* footer */
.footer { padding: 40px 0 56px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; color: var(--text-3); font-size: 14px; }
.brand--small { height: auto; padding: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer__links a { color: var(--text-2); }
@media (max-width: 671px) { .footer__links { margin-left: 0; width: 100%; } }
