/* ==========================================================================
   NTsocial + MeshLink — "Field Instrument" design system
   Cool instrument grey, ink type, signal-blue / amber / teal transport colors.
   IBM Plex Mono for brand + labels + data, IBM Plex Sans for headings + prose.
   Shared by index.html (en), tw/index.html (zh-Hant), jp/index.html (ja).
   ========================================================================== */

:root {
    color-scheme: dark;

    /* Ground & ink — warm-neutral instrument dark (deliberately not cold navy) */
    --paper: #191b18;
    --paper-2: #1e201c;
    --surface: #23251f;
    --surface-2: #1c1e19;
    --ink: #e8e9e3;
    --ink-soft: #bcbeb4;
    --muted: #8b8d83;
    --line: #343630;
    --line-2: #474941;

    /* Signal colors — softened for a dark ground, no neon */
    --signal: #5aa6d8;   /* NTsocial · Bluetooth / phone mesh */
    --signal-deep: #82bfe6;
    --relay: #d99f45;    /* MeshLink · radio / LoRa */
    --relay-deep: #e6b968;
    --wave: #57a99a;     /* Wi-Fi / third transport */

    /* Solid buttons (tokenised; a light theme would only swap these) */
    --btn-bg: #e8e9e3;
    --btn-fg: #191b18;
    --btn-bg-hover: #ffffff;

    --maxw: 1240px;
    --radius: 6px;
    --radius-sm: 4px;

    --font-sans: 'IBM Plex Sans', 'Noto Sans TC', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Noto Sans TC', 'Noto Sans JP', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--ink-soft);
    background-color: var(--paper);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.018em;
}

a {
    color: var(--signal-deep);
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Mono utility label (eyebrow / role code / tag / data) ---------------------*/
.eyebrow,
.app-role,
.transport-index,
.latest-mark,
.language-nav a,
.update-entry-header time,
.transport-tag {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
}

.eyebrow::before {
    content: '//';
    color: var(--signal);
    letter-spacing: 0;
}

/* ==========================================================================
   Language navigation
   ========================================================================== */
.language-nav {
    position: fixed;
    top: 1.1rem;
    right: max(1rem, 3vw);
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.25rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.language-nav a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}

.language-nav a:hover,
.language-nav a:focus-visible {
    color: var(--ink);
    outline: none;
}

.language-nav a.is-active {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(5.5rem, 9vh, 7.5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(3.5rem, 6vh, 5rem);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}

/* Faint instrument grid — graph-paper reference, very low contrast */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 78%);
}

.hero-shell {
    width: min(1400px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
    grid-template-areas:
        "eyebrow    eyebrow"
        "title      title"
        "tagline    downloads"
        "desc       downloads"
        "principles downloads";
    column-gap: clamp(2.5rem, 4vw, 5rem);
    row-gap: 1.25rem;
    align-items: start;
}

/* hero-copy is a layout pass-through so its children place on the hero grid,
   letting the eyebrow + title span the full width above the copy/download row */
.hero-copy {
    display: contents;
}

.hero .eyebrow {
    grid-area: eyebrow;
}

.hero-title {
    grid-area: title;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    grid-area: tagline;
    align-self: end;
}

.hero-description {
    grid-area: desc;
}

.hero-principles {
    grid-area: principles;
}

.hero-downloads {
    grid-area: downloads;
    align-self: center;
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.5rem;
    row-gap: 0.1rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(2.6rem, 5.6vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.hero-meshlink-title {
    color: var(--relay);
    font-style: normal;
}

.hero-system-label {
    flex-basis: 100%;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-tagline {
    max-width: 24ch;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.hero-description {
    max-width: 54ch;
    font-size: clamp(1.02rem, 1.25vw, 1.14rem);
    line-height: 1.72;
    color: var(--ink-soft);
}

.hero-principles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-principles li {
    font-family: var(--font-mono);
    font-size: 0.71rem;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    padding: 0.34rem 0.68rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

/* Download cards — datasheet rows ------------------------------------------ */
.hero-downloads {
    display: grid;
    gap: 0.75rem;
    align-content: center;
}

.hero-app-card {
    --app-accent: var(--signal);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-app-card--meshlink {
    --app-accent: var(--relay);
}

.hero-app-card:hover {
    transform: translateY(-2px);
    border-color: var(--app-accent);
    box-shadow: 0 16px 34px -28px rgba(26, 28, 25, 0.7);
}

.app-icon {
    width: clamp(54px, 6vw, 62px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.hero-app-content {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.app-role {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--app-accent);
}

.hero-app-content strong {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
    font-size: clamp(1.15rem, 1.7vw, 1.3rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hero-app-content p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.app-card-arrow {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--app-accent);
    font-size: 1rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.hero-app-card:hover .app-card-arrow {
    transform: translate(2px, -2px);
    border-color: var(--app-accent);
}

.hero-scroll-link {
    position: absolute;
    left: 50%;
    bottom: 1.3rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}

.hero-scroll-link::after {
    content: '↓';
    color: var(--signal);
}

.hero-scroll-link:hover {
    color: var(--ink);
}

/* ==========================================================================
   Sections
   ========================================================================== */
main {
    background: var(--paper);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 6vw;
}

.section-shell {
    width: min(var(--maxw), 100%);
    margin: 0 auto;
}

.section-heading {
    max-width: 64ch;
    display: grid;
    gap: 0.95rem;
    margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section-heading--center {
    margin-inline: auto;
    justify-items: center;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.section-heading > p:last-child {
    max-width: 62ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.3vw, 1.06rem);
    line-height: 1.72;
}

.ecosystem-section {
    background: var(--paper);
}

.section.transport-section {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}

/* ==========================================================================
   Product panels
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.6rem);
}

.product-card {
    --product-accent: var(--signal);
    --app-accent: var(--product-accent);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.45rem;
    padding: clamp(1.5rem, 2.8vw, 2.2rem);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
}

.product-card--meshlink {
    --product-accent: var(--relay);
}

.product-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--line);
}

.product-card .app-icon {
    width: clamp(58px, 6.5vw, 70px);
    border-radius: 14px;
}

.product-card-heading {
    min-width: 0;
    display: grid;
    gap: 0.3rem;
}

.product-card-heading .app-role {
    color: var(--product-accent);
    font-size: 0.66rem;
    font-weight: 600;
}

.product-card h3 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.product-summary {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.7;
}

.independent-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.55;
}

.independent-note::before {
    content: '›';
    flex: 0 0 auto;
    color: var(--product-accent);
    font-weight: 700;
    font-family: var(--font-mono);
}

.product-feature-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.product-feature-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.62;
}

.product-feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--product-accent);
    font-family: var(--font-mono);
}

.product-feature-list strong,
.update-feature-list strong,
.manual-content strong {
    color: var(--ink);
    font-weight: 600;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.3rem;
}

.store-link,
.secondary-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.store-link {
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
}

.store-link::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--product-accent);
}

.store-link::after {
    content: '↗';
    opacity: 0.7;
}

.store-link:hover {
    transform: translateY(-2px);
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
}

.secondary-link {
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-2);
}

.secondary-link:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
}

.product-footnote {
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

/* ==========================================================================
   Transport — typed set (not a sequence): BLE / Wi-Fi / LoRa
   ========================================================================== */
.transport-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.transport-step {
    --step-accent: var(--signal);
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.8rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
}

.transport-step:nth-child(2) {
    --step-accent: var(--wave);
}

.transport-step:nth-child(3) {
    --step-accent: var(--relay);
}

.transport-index {
    color: var(--step-accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.transport-step h3 {
    font-size: clamp(1.15rem, 1.9vw, 1.4rem);
    letter-spacing: -0.01em;
}

.transport-step p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.62;
}

.transport-tag {
    width: fit-content;
    margin-top: 0.35rem;
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--step-accent);
    padding: 0.32rem 0.6rem;
    border: 1px solid color-mix(in srgb, var(--step-accent) 45%, var(--line));
    border-radius: var(--radius-sm);
}

.transport-footnote {
    max-width: 80ch;
    margin: 1.4rem auto 0;
    padding: 0.9rem 1.15rem;
    border-left: 2px solid var(--relay);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.62;
}

/* ==========================================================================
   Latest advances
   ========================================================================== */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.latest-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.3rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.latest-mark {
    display: grid;
    place-items: center;
    min-width: 3.4rem;
    height: 1.85rem;
    padding-inline: 0.55rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--signal);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.latest-card:nth-child(even) .latest-mark {
    color: var(--relay);
}

.latest-card-content {
    display: grid;
    gap: 0.4rem;
}

.latest-card h3 {
    font-size: 1.1rem;
    line-height: 1.25;
}

.latest-card p {
    color: var(--ink-soft);
    font-size: 0.87rem;
    line-height: 1.6;
}

/* ==========================================================================
   Release notes / feedback / manual — panels
   ========================================================================== */
.updates-wrapper,
.feedback-wrapper,
.manual-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.7rem, 3.6vw, 2.6rem);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
}

.updates-wrapper {
    display: grid;
    gap: 1.7rem;
}

.updates-wrapper > header,
.feedback-wrapper > header,
.manual-wrapper > header {
    display: grid;
    gap: 0.55rem;
    text-align: center;
}

.updates-wrapper > header h2,
.feedback-wrapper > header h2,
.manual-wrapper > header h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    letter-spacing: -0.02em;
}

.updates-wrapper > header p,
.feedback-wrapper > header p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.62;
    max-width: 60ch;
    margin-inline: auto;
}

.updates-scroll-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 12px;
    display: grid;
    gap: 1.3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
}

.updates-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.updates-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--line-2);
    border-radius: 999px;
}

.update-entry {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: grid;
    gap: 1rem;
}

.update-entry:first-child {
    border-color: color-mix(in srgb, var(--signal) 40%, var(--line));
}

.update-entry-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.update-entry-header h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.update-entry-header time {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.update-summary {
    line-height: 1.68;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.update-entry h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.update-feature-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.update-feature-list li {
    position: relative;
    padding-left: 1.35rem;
    line-height: 1.66;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.update-feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--signal);
    font-family: var(--font-mono);
}

/* ==========================================================================
   Feedback form
   ========================================================================== */
.feedback-wrapper > header {
    margin-bottom: 2rem;
}

.feedback-form {
    display: grid;
    gap: 1.4rem;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.42rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    padding: 0.7rem 0.9rem;
    color: var(--ink);
    font-size: 0.94rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--signal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 15%, transparent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 0.77rem;
    color: var(--muted);
}

.submit-btn {
    justify-self: start;
    margin-top: 0.4rem;
    padding: 0.82rem 2.1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}

.form-status {
    min-height: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ==========================================================================
   Manual / user guide
   ========================================================================== */
.manual-wrapper > header {
    margin-bottom: 1.7rem;
}

.manual-content {
    line-height: 1.78;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.manual-content h3 {
    font-size: 1.25rem;
    margin-top: 2.1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.manual-content h3:first-child {
    margin-top: 0;
}

.manual-content p {
    margin-bottom: 1rem;
}

.manual-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.manual-content li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.7em;
}

.manual-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--signal);
    font-family: var(--font-mono);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 2.3rem 1rem 3rem;
    border-top: 1px solid var(--line);
    background: var(--paper-2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.16s ease;
}

.footer-link:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* ==========================================================================
   Large screens — scale up so wide displays are used, not framed by voids
   ========================================================================== */
@media (min-width: 1360px) {
    :root { --maxw: 1360px; }

    .hero {
        min-height: clamp(640px, 84svh, 880px);
        padding: clamp(4.5rem, 6vh, 6rem) clamp(3rem, 4vw, 5.5rem) clamp(3.5rem, 5vh, 5rem);
    }
    .hero-shell {
        width: min(1440px, 100%);
        grid-template-columns: minmax(0, 1fr) minmax(400px, 560px);
        column-gap: clamp(3rem, 3.5vw, 4.5rem);
        row-gap: 1.9rem;
    }
    .hero-title { font-size: clamp(4.6rem, 5vw, 6.4rem); margin-bottom: 0.8rem; }
    .hero-system-label { font-size: 0.86rem; }
    .hero-tagline { font-size: clamp(2rem, 2.2vw, 2.5rem); max-width: 26ch; }
    .hero-description { font-size: 1.18rem; max-width: 62ch; }
    .hero-downloads { gap: 1rem; }
    .hero-app-card { padding: 1.7rem 1.8rem; gap: 1.3rem; }
    .hero .app-icon { width: 84px; border-radius: 16px; }
    .hero-app-content strong { font-size: 1.55rem; }
    .hero-app-content p { font-size: 0.95rem; }

    .section { padding: clamp(5.5rem, 8vw, 9rem) clamp(3rem, 4vw, 5.5rem); }
    .section-heading h2 { font-size: clamp(2.6rem, 3.2vw, 3.6rem); }
    .product-grid { gap: 1.8rem; }
    .product-card { padding: 2.5rem; gap: 1.6rem; }
    .product-card h3 { font-size: clamp(2rem, 2.4vw, 2.4rem); }
    .transport-flow,
    .latest-grid { gap: 1.4rem; }
}

@media (min-width: 1920px) {
    :root { --maxw: 1440px; }

    .hero-shell {
        width: min(1560px, 100%);
        grid-template-columns: minmax(0, 1fr) minmax(480px, 640px);
    }
    .hero-title { font-size: 6.8rem; }
    .hero-tagline { font-size: 2.6rem; max-width: 26ch; }
    .hero-description { font-size: 1.24rem; max-width: 66ch; }
    .section-heading h2 { font-size: 3.7rem; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
    .hero-shell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        width: min(680px, 100%);
    }

    .hero-title {
        margin-bottom: 0;
    }

    .hero-tagline,
    .hero-downloads {
        align-self: stretch;
    }

    .hero-downloads {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-card-arrow {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .transport-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .language-nav {
        top: 0.7rem;
        right: 0.7rem;
        left: 0.7rem;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: 6.5rem 20px 3.5rem;
    }

    .hero-downloads {
        grid-template-columns: 1fr;
    }

    .hero-scroll-link {
        display: none;
    }

    .section {
        padding: 3.6rem 20px;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }

    .latest-card {
        grid-template-columns: 1fr;
    }

    .latest-mark {
        width: fit-content;
    }

    .product-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .store-link,
    .secondary-link {
        width: 100%;
    }

    .update-entry-header {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
