:root {
  --navy-950: #09162e;
  --navy-900: #0f2142;
  --navy-800: #16305c;
  --blue-600: #2b5aa8;
  --blue-500: #346cc7;
  --cyan-500: #00b8e6;
  --cyan-400: #1ce1ff;
  --cyan-soft: rgba(0, 184, 230, 0.12);
  --blue-soft: rgba(43, 90, 168, 0.10);
  --teal-600: #167a69;
  --teal-soft: rgba(22, 122, 105, 0.10);
  --amber-700: #8f540c;
  --amber-bg: #fff8eb;
  --danger-700: #b42c28;
  --danger-bg: #fef0ef;
  --ink: #152338;
  --ink-muted: #4f627d;
  --ink-faint: #7d8ea6;
  --surface: #ffffff;
  --surface-alt: #f5f8fc;
  --surface-tint: #edf3fb;
  --border: #dde6f2;
  --border-strong: #c6d5ea;
  --shadow-sm: 0 4px 14px rgba(15, 33, 66, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 33, 66, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 33, 66, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 15px/1.68 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.brand-text strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.brand-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 600;
}

.brand-text span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}

.main-nav a:hover {
  color: var(--blue-600);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

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

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, #1d4a96 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(43, 90, 168, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #24509a 0%, #173c7d 100%);
  box-shadow: 0 10px 24px rgba(43, 90, 168, 0.34);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-500) 100%);
  color: var(--navy-950);
  box-shadow: 0 8px 22px rgba(0, 184, 230, 0.28);
}

.btn-cyan:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(0, 184, 230, 0.38);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: var(--surface-alt);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #eef5ff;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 58px;
  background:
    radial-gradient(900px 460px at 84% 12%, rgba(28, 225, 255, 0.22), transparent 62%),
    radial-gradient(640px 420px at 10% 85%, rgba(43, 90, 168, 0.34), transparent 65%),
    linear-gradient(150deg, #091730 0%, #10264c 52%, #16376e 100%);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(28, 225, 255, 0.13);
  border: 1px solid rgba(28, 225, 255, 0.36);
  color: #8df0ff;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 760;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffffff 0%, #7eeeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.75;
  color: #cfe0fa;
  max-width: 560px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 224px));
  gap: 12px;
  margin-bottom: 24px;
}

.training-banner {
  margin-top: 26px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0d2144 0%, #173a72 65%, #194d8c 100%);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.training-banner h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #ffffff;
}

.training-banner p {
  margin: 0 0 14px;
  color: #cfe1fb;
  font-size: 14.5px;
}

.training-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.training-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(28, 225, 255, 0.14);
  border: 1px solid rgba(28, 225, 255, 0.34);
  color: #9bf2ff;
  font-size: 12.5px;
  font-weight: 500;
}

.training-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.training-cta small {
  color: #b7d2f7;
  font-size: 12px;
  text-align: right;
}

.media-switch {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
}

.media-switch-btns {
  display: flex;
  gap: 6px;
}

.mini-tab {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-muted);
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.mini-tab.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #a9c4ea;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Visual Showcase */
.hero-stage {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.stage-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stage-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cde0fb;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.stage-tab.is-active,
.stage-tab:hover {
  background: rgba(28, 225, 255, 0.18);
  border-color: rgba(28, 225, 255, 0.55);
  color: #ffffff;
}

.stage-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e6eaf0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 22, 46, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 15, 32, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1360px, 95vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lightbox-caption {
  margin-top: 12px;
  color: #dce9ff;
  font-size: 13px;
}

.stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px 2px;
  font-size: 12.5px;
  color: #cbe0fb;
}

.stage-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(28, 225, 255, 0.16);
  color: #82efff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Metrics Bar */
.metrics-bar {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.metric-item strong {
  display: block;
  font-size: 20px;
  font-weight: 720;
  color: #ffffff;
  margin-bottom: 4px;
}

.metric-item span {
  font-size: 12.5px;
  color: #b8d1f5;
}

/* Sections */
.section {
  padding: 78px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 960px;
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  max-width: 780px;
  font-size: 15.5px;
  color: var(--ink-muted);
}

/* Pain points */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(28, 225, 255, 0.18), rgba(43, 90, 168, 0.14));
  color: var(--blue-600);
  margin-bottom: 16px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  color: var(--navy-900);
}

.info-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-muted);
}

/* OFD-H Pipeline */
.pipeline-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.pipe-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.pipe-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue-600);
  margin-bottom: 12px;
}

.pipe-card.is-highlight {
  border-color: rgba(0, 184, 230, 0.55);
  background: linear-gradient(180deg, #f3fcff 0%, #ffffff 100%);
}

.pipe-card.is-highlight .pipe-num {
  background: var(--navy-900);
  color: var(--cyan-400);
}

.pipe-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy-900);
}

.pipe-card ul {
  margin: 0;
  padding-left: 17px;
  font-size: 13px;
  color: var(--ink-muted);
}

.pipe-card li {
  margin-bottom: 5px;
}

.pipe-foot {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface-tint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--navy-800);
}

/* Product Tabs */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.product-tab {
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.product-tab.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 33, 66, 0.20);
}

.product-panel {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.product-panel.is-active {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--blue-soft);
  color: var(--blue-600);
}

.tag.is-free {
  background: var(--teal-soft);
  color: var(--teal-600);
}

.tag.is-trial {
  background: var(--cyan-soft);
  color: #007ea1;
}

.product-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--navy-900);
}

.product-panel p {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
}

.panel-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e6eaf0;
  box-shadow: var(--shadow-md);
}

.panel-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  cursor: zoom-in;
}

.status-coop {
  color: var(--blue-600);
  font-weight: 600;
}

.code-card {
  background: #0d1c36;
  color: #dce9ff;
  border-radius: 14px;
  padding: 20px 22px;
  font: 12.8px/1.68 ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  overflow-x: auto;
  border: 1px solid #213a66;
}

.code-card .code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 12px;
  color: #7eeeff;
}

.code-card pre {
  margin: 0;
  white-space: pre;
}

/* Download Center */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.dl-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.dl-card.is-featured {
  border: 1.5px solid rgba(43, 90, 168, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.dl-card.is-gated {
  border: 1.5px solid rgba(0, 184, 230, 0.55);
  background: linear-gradient(180deg, #f4fcff 0%, #ffffff 100%);
}

.dl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dl-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--navy-900);
}

.dl-card p {
  margin: 0 0 14px;
  font-size: 13.8px;
  color: var(--ink-muted);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12.2px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.dl-meta code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--navy-900);
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-footnote {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Boundary table */
.boundary-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.boundary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
}

.boundary-table th,
.boundary-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.boundary-table th {
  background: var(--surface-alt);
  color: var(--navy-900);
  font-weight: 700;
}

.boundary-table tr:last-child td {
  border-bottom: 0;
}

.status-ok {
  color: var(--teal-600);
  font-weight: 600;
}

.status-bound {
  color: var(--amber-700);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #bfd3f0;
  padding: 52px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  padding: 3px;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
}

.footer-brand span {
  display: block;
  font-size: 12.5px;
  color: #8eb2e0;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 14.5px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #86a4cd;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 22, 46, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(760px, 100%);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--navy-900);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--blue-soft);
  color: var(--navy-900);
}

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: start;
}

.qr-box {
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.qr-box img {
  width: 196px;
  height: 196px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
}

.qr-box strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy-900);
}

.qr-box span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.redeem-panel h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy-900);
}

.redeem-panel p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.code-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.code-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.code-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(43, 90, 168, 0.14);
}

.form-msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.form-msg[hidden] {
  display: none;
}

.form-msg.is-error {
  background: var(--danger-bg);
  color: var(--danger-700);
}

.form-msg.is-success {
  background: var(--teal-soft);
  color: var(--teal-600);
}

.sample-contents {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.sample-contents strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 4px;
}

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: 380px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(28, 225, 255, 0.32);
}

.toast[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .product-panel.is-active,
  .training-banner {
    grid-template-columns: 1fr;
  }
  .training-cta {
    align-items: flex-start;
  }
  .training-cta small {
    text-align: left;
  }
  .metrics-bar,
  .card-grid-4,
  .pipeline-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-grid,
  .card-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero-actions,
  .metrics-bar,
  .card-grid-4,
  .pipeline-steps,
  .card-grid-2,
  .modal-body {
    grid-template-columns: 1fr;
  }
  .header-cta .btn-outline {
    display: none;
  }
  .code-form {
    flex-direction: column;
  }
}
