/* ==========================================================================
   ICOM Radio Utility — icutility.asis.sh
   Icom-Inspired Precision Engineering & Technical Product Stylesheet
   Typography matched to https://www.icomjapan.com/ ("icom", "Roboto", "Noto Sans JP")
   ========================================================================== */

@font-face {
  font-family: "icom";
  src:
    url("/assets/fonts/icom.woff2") format("woff2"),
    url("/assets/fonts/icom.woff") format("woff"),
    url("/assets/fonts/icom.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/fonts/noto-sans-jp-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/fonts/noto-sans-jp-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/fonts/noto-sans-jp-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/fonts/noto-sans-jp-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Raw Light / Dark palette tokens (Icom Corporate Crisp White + Deep Instrument Dark) */
  --bg-page-light: #f4f6f9;
  --bg-page-dark: #070b12;
  --bg-surface-light: #ffffff;
  --bg-surface-dark: #0e1522;
  --bg-elevated-light: #edf1f7;
  --bg-elevated-dark: #141e30;
  --bg-glass-light: rgba(255, 255, 255, 0.88);
  --bg-glass-dark: rgba(11, 17, 28, 0.88);

  --ink-primary-light: #0f172a;
  --ink-primary-dark: #f1f5f9;
  --ink-secondary-light: #334155;
  --ink-secondary-dark: #cbd5e1;
  --ink-muted-light: #64748b;
  --ink-muted-dark: #94a3b8;

  --border-subtle-light: #dce3ee;
  --border-subtle-dark: #1e2d44;
  --border-strong-light: #bfd0e6;
  --border-strong-dark: #2d4263;

  /* Signature Icom Brand & Transceiver Instrument Accents */
  --icom-red: #da1a2a;
  --icom-red-hover: #b81220;
  --icom-crimson: #9e0e1a;
  --icom-red-soft-light: #fdecee;
  --icom-red-soft-dark: rgba(218, 26, 42, 0.16);

  --icom-navy: #06152d;
  --icom-blue: #0066cc;
  --icom-cyan: #00d2ff;
  --icom-cyan-text-light: #005a8d;
  --icom-cyan-text-dark: #38bdf8;
  --icom-amber: #facc15;
  --icom-green: #22c55e;

  --scrollbar-thumb-light: #94a3b8;
  --scrollbar-thumb-dark: #334155;
  --scrollbar-track-light: #e2e8f0;
  --scrollbar-track-dark: #0f172a;

  /* Default fallback assignments (Light) */
  --bg-page: var(--bg-page-light);
  --bg-surface: var(--bg-surface-light);
  --bg-elevated: var(--bg-elevated-light);
  --bg-glass: var(--bg-glass-light);
  --ink-primary: var(--ink-primary-light);
  --ink-secondary: var(--ink-secondary-light);
  --ink-muted: var(--ink-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-strong: var(--border-strong-light);
  --icom-red-soft: var(--icom-red-soft-light);
  --icom-cyan-ink: var(--icom-cyan-text-light);
  --scrollbar-thumb: var(--scrollbar-thumb-light);
  --scrollbar-track: var(--scrollbar-track-light);

  /* Fallback for browsers without light-dark() support */
  @media (prefers-color-scheme: dark) {
    --bg-page: var(--bg-page-dark);
    --bg-surface: var(--bg-surface-dark);
    --bg-elevated: var(--bg-elevated-dark);
    --bg-glass: var(--bg-glass-dark);
    --ink-primary: var(--ink-primary-dark);
    --ink-secondary: var(--ink-secondary-dark);
    --ink-muted: var(--ink-muted-dark);
    --border-subtle: var(--border-subtle-dark);
    --border-strong: var(--border-strong-dark);
    --icom-red-soft: var(--icom-red-soft-dark);
    --icom-cyan-ink: var(--icom-cyan-text-dark);
    --scrollbar-thumb: var(--scrollbar-thumb-dark);
    --scrollbar-track: var(--scrollbar-track-dark);
  }

  /* Modern CSS light-dark() automatic resolution */
  @supports (color: light-dark(white, black)) {
    --bg-page: light-dark(var(--bg-page-light), var(--bg-page-dark));
    --bg-surface: light-dark(var(--bg-surface-light), var(--bg-surface-dark));
    --bg-elevated: light-dark(var(--bg-elevated-light), var(--bg-elevated-dark));
    --bg-glass: light-dark(var(--bg-glass-light), var(--bg-glass-dark));
    --ink-primary: light-dark(var(--ink-primary-light), var(--ink-primary-dark));
    --ink-secondary: light-dark(var(--ink-secondary-light), var(--ink-secondary-dark));
    --ink-muted: light-dark(var(--ink-muted-light), var(--ink-muted-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --icom-red-soft: light-dark(var(--icom-red-soft-light), var(--icom-red-soft-dark));
    --icom-cyan-ink: light-dark(var(--icom-cyan-text-light), var(--icom-cyan-text-dark));
    --scrollbar-thumb: light-dark(var(--scrollbar-thumb-light), var(--scrollbar-thumb-dark));
    --scrollbar-track: light-dark(var(--scrollbar-track-light), var(--scrollbar-track-dark));
  }

  /* Viewport-wide native UI theming */
  color-scheme: light dark;
  accent-color: var(--icom-red);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);

  /* Keep the Icom product face for the small wordmark only: it has a limited glyph set. */
  --font-sans: "Roboto", "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  --font-display: "Roboto", "Noto Sans JP", sans-serif;
  --font-icom-model: "Roboto", "Noto Sans JP", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 12px 32px -8px rgba(6, 15, 32, 0.14);
}

/* Explicit User Theme Override */
html[data-theme="light"] {
  color-scheme: light;
  --bg-page: var(--bg-page-light);
  --bg-surface: var(--bg-surface-light);
  --bg-elevated: var(--bg-elevated-light);
  --bg-glass: var(--bg-glass-light);
  --ink-primary: var(--ink-primary-light);
  --ink-secondary: var(--ink-secondary-light);
  --ink-muted: var(--ink-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-strong: var(--border-strong-light);
  --icom-red-soft: var(--icom-red-soft-light);
  --icom-cyan-ink: var(--icom-cyan-text-light);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: var(--bg-page-dark);
  --bg-surface: var(--bg-surface-dark);
  --bg-elevated: var(--bg-elevated-dark);
  --bg-glass: var(--bg-glass-dark);
  --ink-primary: var(--ink-primary-dark);
  --ink-secondary: var(--ink-secondary-dark);
  --ink-muted: var(--ink-muted-dark);
  --border-subtle: var(--border-subtle-dark);
  --border-strong: var(--border-strong-dark);
  --icom-red-soft: var(--icom-red-soft-dark);
  --icom-cyan-ink: var(--icom-cyan-text-dark);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-size-adjust: from-font;
}

p {
  text-wrap: pretty;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--icom-red);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--icom-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--icom-red);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

/* ==========================================================================
   Top Corporate Utility Bar & Main Header (Icom Global Inspired)
   ========================================================================== */

.utility-bar {
  background: #060d18;
  color: #cbd5e1;
  font-size: 0.78rem;
  border-bottom: 1px solid #1a273b;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  flex-wrap: wrap;
}

.utility-bar__left,
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.utility-pill b {
  color: #f8fafc;
}

.utility-bar a {
  color: #cbd5e1;
  font-weight: 500;
}

.utility-bar a:hover {
  color: #ffffff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 3px solid var(--icom-red);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink-primary);
  text-decoration: none !important;
}

.brand__logo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__icom-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.brand__ring {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--icom-red);
}

.brand__sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.main-nav a {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--icom-red);
  background: var(--icom-red-soft);
}

.mobile-nav {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  background: var(--bg-surface);
  font-size: 0.85rem;
  font-weight: 700;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__links {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 110;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.mobile-nav:not([open]) .mobile-nav__links {
  display: none;
}

.mobile-nav__links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-weight: 600;
}

.mobile-nav__links a:hover,
.mobile-nav__links a:focus-visible {
  background: var(--icom-red-soft);
  color: var(--icom-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.theme-btn:hover {
  border-color: var(--icom-red);
  color: var(--ink-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--red {
  background: var(--icom-red);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(218, 26, 42, 0.28);
}

.btn--red:hover {
  background: var(--icom-red-hover);
  color: #ffffff;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--icom-cyan);
}

.btn--surface {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.btn--surface:hover {
  border-color: var(--icom-red);
  color: var(--icom-red);
}

/* ==========================================================================
   Hero Stage — Icom Lineup Showcase + Interactive Front Panel LCD
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(960px 460px at 82% 22%, rgba(0, 140, 255, 0.22), transparent 65%),
    radial-gradient(700px 420px at 15% 85%, rgba(218, 26, 42, 0.18), transparent 62%),
    linear-gradient(165deg, #050b16 0%, #09152b 55%, #060d1a 100%);
  color: #f8fafc;
  padding-block: 56px 68px;
  border-bottom: 4px solid var(--icom-red);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1.07fr);
  gap: 44px;
  align-items: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(218, 26, 42, 0.18);
  border: 1px solid rgba(218, 26, 42, 0.55);
  border-left: 4px solid var(--icom-red);
  color: #fecdd3;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title .hero__accent {
  color: var(--icom-cyan);
}

.hero__title em {
  font-style: normal;
  color: #ff4d5e;
}

.hero__lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 24px;
  max-width: 58ch;
}

.hero__model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(15, 26, 44, 0.85);
  border: 1px solid #283c5c;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: #e2e8f0;
}

.model-chip strong {
  color: #ffffff;
}

.model-chip code {
  color: var(--icom-cyan);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.hero__app-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(13, 23, 40, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero__app-badge img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex-shrink: 0;
}

.hero__app-badge p {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.hero__app-badge strong {
  color: #ffffff;
  display: block;
  font-size: 0.9rem;
}

/* The front panel stays dark like the physical radio; the page around it follows the theme. */
html[data-theme="light"] .utility-bar {
  background: #eaf0f7;
  color: #334155;
  border-bottom-color: #dce3ee;
}

html[data-theme="light"] .utility-pill,
html[data-theme="light"] .utility-bar a {
  color: #475569;
}

html[data-theme="light"] .utility-pill b {
  color: #0f172a;
}

html[data-theme="light"] .utility-bar a:hover {
  color: #b81220;
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(960px 460px at 82% 22%, rgba(0, 102, 204, 0.12), transparent 65%),
    radial-gradient(700px 420px at 15% 85%, rgba(218, 26, 42, 0.08), transparent 62%),
    linear-gradient(165deg, #f8fbff 0%, #edf3fa 55%, #e8eff8 100%);
  color: #0f172a;
}

html[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .hero__kicker {
  color: #9e0e1a;
  background: #fdecee;
}

html[data-theme="light"] .hero__title .hero__accent,
html[data-theme="light"] .model-chip code {
  color: #0066cc;
}

html[data-theme="light"] .hero__title em {
  color: #bd1727;
}

html[data-theme="light"] .hero__lead,
html[data-theme="light"] .hero__app-badge p {
  color: #334155;
}

html[data-theme="light"] .model-chip,
html[data-theme="light"] .hero__app-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: #ccd8e8;
  color: #334155;
}

html[data-theme="light"] .model-chip strong,
html[data-theme="light"] .hero__app-badge strong {
  color: #0f172a;
}

html[data-theme="light"] .hero__cta .btn--outline {
  background: #ffffff;
  color: #0f172a;
  border-color: #bfd0e6;
}

html[data-theme="light"] .hero__cta .btn--outline:hover {
  background: #eef4fb;
  border-color: #0066cc;
}

html[data-theme="light"] .hero__meta {
  color: #475569;
}

/* ==========================================================================
   Interactive Icom Front Panel & Live Waterfall Instrument (Right Column)
   ========================================================================== */

.rig-stage {
  background: linear-gradient(145deg, #272d38 0%, #12161f 52%, #1b212d 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rig-stage__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rig-selector {
  display: inline-flex;
  background: #0a0e15;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #2b3648;
  gap: 3px;
}

.rig-selector button {
  background: transparent;
  color: #94a3b8;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rig-selector button[aria-selected="true"] {
  background: var(--icom-red);
  color: #ffffff;
}

.rig-transport-badge {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--icom-cyan);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
}

.rig-chassis {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 138px;
  gap: 12px;
  align-items: stretch;
}

.rig-chassis--portable {
  grid-template-columns: minmax(0, 1fr) 138px;
}

.rig-col-left,
.rig-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.hw-btn {
  background: linear-gradient(180deg, #2d3544 0%, #1a202c 100%);
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 5px;
  padding: 6px 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.hw-btn:hover {
  border-color: var(--icom-cyan);
  color: #ffffff;
}

.hw-btn--power {
  border-color: var(--icom-red);
  box-shadow: inset 0 2px 0 var(--icom-red);
}

.hw-btn--tx {
  border-color: #f97316;
  color: #fed7aa;
}

.rig-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rig-bezel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 2px;
}

.rig-bezel-top__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rig-bezel-top__logo {
  font-family: "icom", var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.rig-bezel-top__type {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.rig-bezel-top__model {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: #f8fafc;
}

/* Authentic Icom Touch LCD Screen */
.icom-lcd {
  background: linear-gradient(180deg, #051129 0%, #020610 55%, #000000 100%);
  border: 3px solid #4b5563;
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 0 24px rgba(0, 210, 255, 0.08);
}

.lcd-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.lcd-badge {
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 1.3;
}

.lcd-badge--cyan {
  color: var(--icom-cyan);
}

.lcd-badge--amber {
  color: var(--icom-amber);
}

.lcd-badge--white {
  color: #f8fafc;
}

.lcd-status-spacer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lcd-civ-live {
  color: var(--icom-green);
}

.lcd-vfo-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.lcd-rx-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.18);
  color: var(--icom-green);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.lcd-freq-a {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 210, 255, 0.32);
}

.lcd-vfo-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #94a3b8;
}

.lcd-vfo-sub strong {
  color: var(--icom-cyan);
}

.lcd-smeter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lcd-smeter__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #94a3b8;
}

.lcd-smeter__scale span.over {
  color: #f87171;
}

.lcd-smeter__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.lcd-smeter__fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #00d2ff 0%, #22c55e 45%, #facc15 75%, #ef4444 100%);
  transition: width 0.25s ease;
}

.lcd-telemetry-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #cbd5e1;
}

.lcd-scope-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 102, 204, 0.42);
  padding: 2px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #e0f2fe;
}

.lcd-waterfall-wrap {
  position: relative;
  height: 86px;
  background: #01050e;
  border: 1px solid #1e293b;
  overflow: hidden;
}

#waterfall-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lcd-waterfall-Tag {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 4px;
  border-radius: 2px;
  pointer-events: none;
}

.rig-softkeys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

/* Right VFO Dial Column */
.vfo-knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-block: 4px;
}

.vfo-knob {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #475569, #0f172a 72%);
  border: 4px solid #64748b;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.6),
    inset 0 0 0 5px #1e293b;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vfo-knob__dimple {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #090d14;
  border: 1.5px solid var(--icom-red);
}

.rig-band-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
}

.rig-band-strip__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  margin-right: 4px;
}

.band-btn {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.band-btn:hover,
.band-btn[aria-pressed="true"] {
  background: var(--icom-cyan);
  color: #020617;
  border-color: var(--icom-cyan);
  font-weight: 800;
}

/* ==========================================================================
   Icom Specification Strip
   ========================================================================== */

.spec-ribbon {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.spec-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border-subtle);
}

.spec-cell {
  padding: 22px 20px;
  border-right: 1px solid var(--border-subtle);
}

.spec-cell:last-child {
  border-right: 0;
}

.spec-cell__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--icom-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-cell__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-block: 3px;
}

.spec-cell__desc {
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ==========================================================================
   Section Scaffolding (Icom Product Manual Style)
   ========================================================================== */

.section {
  padding-block: 76px;
  border-bottom: 1px solid var(--border-subtle);
}

.section--alt {
  background: var(--bg-surface);
}

.section-header {
  display: block;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--icom-red);
  margin: 0 0 8px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--icom-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-subtitle {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   Lineup Cards & Responsive Capability Matrix Table
   ========================================================================== */

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.radio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--icom-red);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.radio-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.radio-card__category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--icom-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.radio-card__model {
  font-family: var(--font-icom-model);
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  margin: 2px 0 0;
}

/* Real Hardware Photograph Stage & Multi-Angle Switcher (Icom Product Lineup Style) */
.radio-photo-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 140, 255, 0.14), transparent 72%),
    linear-gradient(180deg, #0b1322 0%, #050a13 100%);
  border: 1px solid #1e2d44;
  overflow: hidden;
}

.radio-photo-frame img {
  max-height: 202px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s ease;
}

.radio-photo-frame:hover img {
  transform: scale(1.03);
}

.radio-photo-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(5, 10, 19, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
}

.radio-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.radio-photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.radio-photo-btn:hover {
  border-color: var(--icom-red);
  color: var(--ink-primary);
}

.radio-photo-btn[aria-selected="true"] {
  background: var(--icom-red);
  color: #ffffff;
  border-color: var(--icom-red);
}

/* Hero Active Transceiver Real Hardware Photo Banner */
.rig-hw-showcase {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(circle at 22% 50%, rgba(0, 210, 255, 0.16), transparent 65%),
    linear-gradient(135deg, #070d18 0%, #0d1729 100%);
  border: 1px solid #283a56;
  border-left: 3px solid var(--icom-red);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.rig-hw-showcase__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 106px;
  background: rgba(2, 6, 16, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  padding: 6px;
}

.rig-hw-showcase__img-wrap img {
  max-height: 94px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65));
}

.rig-hw-showcase__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rig-hw-showcase__kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--icom-cyan);
  text-transform: uppercase;
}

.rig-hw-showcase__title {
  font-family: var(--font-icom-model);
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
}

.rig-hw-showcase__desc {
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.rig-hw-angles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.rig-hw-angle-btn {
  background: #111c30;
  color: #cbd5e1;
  border: 1px solid #2c3e5e;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.rig-hw-angle-btn[aria-selected="true"] {
  background: var(--icom-red);
  color: #ffffff;
  border-color: var(--icom-red);
}

.civ-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--icom-red-soft);
  color: var(--icom-red);
  border: 1px solid rgba(218, 26, 42, 0.35);
}

.radio-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.radio-specs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.radio-specs-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.radio-specs-list span {
  color: var(--ink-muted);
}

.radio-specs-list strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: right;
}

.radio-card__links {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  font-weight: 700;
}

/* Responsive Data Table (following modern-web-guidance `responsive-table`) */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 80vh);
  container-type: inline-size;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@supports not (scrollbar-color: auto) {
  .table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  .table-wrapper::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
  }
  .table-wrapper::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  text-align: left;
}

.matrix-table caption {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.matrix-table thead th {
  background: #091324;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--icom-red);
}

.matrix-table th,
.matrix-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.matrix-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-primary);
  border-right: 1px solid var(--border-subtle);
}

.matrix-table code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--icom-cyan-ink);
}

@container (width < 680px) {
  .matrix-table,
  .matrix-table thead,
  .matrix-table tbody,
  .matrix-table tr,
  .matrix-table th,
  .matrix-table td {
    display: block;
  }

  .matrix-table thead {
    display: none;
  }

  .matrix-table tr {
    margin-block-end: 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
  }

  .matrix-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--bg-elevated);
    border-right: 0;
  }

  .matrix-table {
    --label-2: "Default CI-V";
    --label-3: "USB Control & Audio";
    --label-4: "Direct Icom Network";
    --label-5: "Remote USB Bridge";
    --label-6: "DATA MOD CI-V";
  }

  .matrix-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 700;
    color: var(--ink-muted);
  }
  .matrix-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 700;
    color: var(--ink-muted);
  }
  .matrix-table td:nth-child(4)::before {
    content: var(--label-4) ": ";
    font-weight: 700;
    color: var(--ink-muted);
  }
  .matrix-table td:nth-child(5)::before {
    content: var(--label-5) ": ";
    font-weight: 700;
    color: var(--ink-muted);
  }
  .matrix-table td:nth-child(6)::before {
    content: var(--label-6) ": ";
    font-weight: 700;
    color: var(--ink-muted);
  }
}

/* ==========================================================================
   Interactive CI-V Settings Explorer (1,147 Model-Scoped Controls)
   ========================================================================== */

.civ-explorer {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.civ-explorer__bar {
  background: #081223;
  color: #f8fafc;
  padding: 18px 22px;
  border-bottom: 2px solid var(--icom-red);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.civ-model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.civ-model-tab {
  background: #111f36;
  color: #cbd5e1;
  border: 1px solid #293d5c;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.civ-model-tab[aria-selected="true"] {
  background: var(--icom-red);
  color: #ffffff;
  border-color: var(--icom-red);
}

.civ-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.civ-input,
.civ-select {
  background: #0d182b;
  color: #f8fafc;
  border: 1px solid #334868;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.civ-input {
  min-width: 240px;
}

.civ-explorer__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 430px;
}

.civ-list-pane {
  border-right: 1px solid var(--border-subtle);
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.civ-row-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink-primary);
}

.civ-row-btn:hover {
  background: var(--bg-elevated);
}

.civ-row-btn[aria-selected="true"] {
  background: var(--icom-red-soft);
  border-left: 4px solid var(--icom-red);
}

.civ-row-btn__title {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}

.civ-row-btn__cat {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.civ-row-btn__hex {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--icom-cyan-ink);
  white-space: nowrap;
}

.civ-inspector {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-elevated);
}

.civ-frame-box {
  background: #060d18;
  color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
}

.civ-frame-box small {
  display: block;
  color: #94a3b8;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

/* ==========================================================================
   Digital Operation & Interactive TX Audio Drive Calibrator
   ========================================================================== */

.digital-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--icom-red);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.drive-widget {
  background: #081120;
  color: #f8fafc;
  border: 1px solid #243552;
  border-top: 4px solid var(--icom-red);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.drive-widget__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.drive-widget__pct {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--icom-red);
}

.drive-slider {
  width: 100%;
  margin-block: 10px 14px;
  accent-color: var(--icom-red);
}

.drive-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.drive-preset-btn {
  background: #132038;
  color: #cbd5e1;
  border: 1px solid #2b3f63;
  border-radius: 5px;
  padding: 6px 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.drive-preset-btn[aria-pressed="true"] {
  background: var(--icom-red);
  color: #ffffff;
  border-color: var(--icom-red);
}

.drive-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #040912;
  border: 1px solid #1b2840;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.drive-readouts div span {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.drive-readouts div strong {
  font-size: 0.95rem;
  color: var(--icom-cyan);
}

/* ==========================================================================
   18 Workspaces & Liquid Glass Icon Showcase
   ========================================================================== */

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ws-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ws-card:hover {
  border-color: var(--icom-red);
  transform: translateY(-2px);
}

.ws-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--icom-red);
}

.ws-card h3 {
  margin: 4px 0 6px;
  font-size: 1.04rem;
  font-family: var(--font-display);
}

.ws-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.icon-showcase {
  margin-top: 44px;
  background: linear-gradient(150deg, #071224 0%, #0e1e38 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid #243858;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: center;
}

.appearance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.appearance-tab {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.appearance-tab[aria-selected="true"] {
  background: var(--icom-red);
  border-color: var(--icom-red);
  color: #ffffff;
}

.appearance-preview-frame {
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.16) 0%, transparent 70%);
  padding: 12px;
}

.appearance-preview-frame img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
}

/* ==========================================================================
   Hardware Validation & Scope Honesty Grid
   ========================================================================== */

.validation-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.telemetry-panel {
  background: #060e1b;
  color: #f8fafc;
  border: 1px solid #1e3252;
  border-top: 4px solid var(--icom-green);
  border-radius: var(--radius-md);
  padding: 24px;
}

.telemetry-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.telemetry-stat {
  background: #0b1629;
  border: 1px solid #1d2d47;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.telemetry-stat span {
  display: block;
  font-size: 0.73rem;
  color: #94a3b8;
}

.telemetry-stat strong {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: #f8fafc;
}

.scope-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--icom-red);
  border-radius: var(--radius-md);
  padding: 24px;
}

.scope-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.88rem;
}

.scope-list li {
  margin-bottom: 9px;
}

/* ==========================================================================
   Downloads, SHA-256 Verification & First Connection Steps
   ========================================================================== */

.download-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.release-card {
  background: var(--bg-surface);
  border: 2px solid var(--icom-red);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.release-card--secondary {
  border: 1px solid var(--border-strong);
}

.sha-box {
  background: #070d19;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
  margin-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--icom-cyan);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.step-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.step-box__num {
  display: inline-block;
  background: var(--icom-red);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Footer & Family Links
   ========================================================================== */

.site-footer {
  background: #050a14;
  color: #94a3b8;
  border-top: 3px solid var(--icom-red);
  padding-block: 48px;
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #e2e8f0;
  font-weight: 600;
}

.footer-disclaimer {
  border-top: 1px solid #162238;
  padding-top: 20px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1280px) {
  .utility-bar__right {
    display: none;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

@media (max-width: 1060px) {
  .hero__grid,
  .digital-layout,
  .validation-grid,
  .download-grid,
  .civ-explorer__body {
    grid-template-columns: 1fr;
  }

  .lineup-grid,
  .workspace-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-ribbon__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .civ-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 720px) {
  .utility-bar {
    display: none;
  }

  .wrap {
    width: min(1240px, 100% - 32px);
  }

  .site-header__inner {
    min-height: 62px;
    gap: 10px;
  }

  .brand__title {
    font-size: 0.95rem;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand__sub,
  .brand__ring,
  .header-actions > .btn,
  .theme-btn #theme-label {
    display: none;
  }

  .theme-btn {
    width: 38px;
    padding: 0;
  }

  .hero {
    padding-block: 36px 48px;
  }

  .hero__title {
    font-size: clamp(1.85rem, 7vw, 2.7rem);
  }

  .hero__title-line {
    white-space: normal;
  }

  .rig-selector {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .rig-selector button {
    flex: 1 1 auto;
  }

  .rig-transport-badge {
    max-width: 100%;
  }

  .section {
    padding-block: 54px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .civ-filters {
    justify-content: flex-start;
  }

  .civ-input {
    min-width: 0;
    max-width: 100%;
  }

  .rig-chassis,
  .rig-chassis--portable {
    grid-template-columns: 1fr;
  }

  .rig-col-left,
  .rig-col-right {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .lineup-grid,
  .workspace-grid,
  .steps-grid,
  .spec-ribbon__grid,
  .icon-showcase {
    grid-template-columns: 1fr;
  }

  .drive-presets {
    grid-template-columns: repeat(3, 1fr);
  }

  .rig-hw-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero__cta .btn {
    width: 100%;
  }

  .hero__meta {
    gap: 6px 10px;
  }

  .rig-stage {
    padding: 12px;
  }

  .rig-bezel-top,
  .lcd-vfo-main {
    flex-wrap: wrap;
  }

  .lcd-freq-a {
    font-size: 1.4rem;
  }

  .civ-inspector,
  .release-card,
  .icon-showcase {
    padding: 18px;
  }
}

/* Release 0.2.0: native SDR workspace preview. */
.sdr-release { margin-block: 56px; }
.sdr-preview { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: #12141a; }
.sdr-preview img { display: block; width: 100%; max-height: 860px; object-fit: contain; height: auto; border-radius: 12px; }
.sdr-preview figcaption { color: #cbd5e1; font-size: .82rem; text-align: center; padding: 12px 8px 2px; }
