/* ═══════════════════════════════════════════════════════════
   HL7 Inspector &mdash; Premium Enterprise Theme v2
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy-950: #04121f;
  --navy-900: #061a2e;
  --navy-800: #0a2540;
  --navy-700: #103458;
  --navy-600: #1a4472;
  --teal-700: #0a5f68;
  --teal-600: #0e7c86;
  --teal-500: #12a3a3;
  --teal-400: #3cc4c4;
  --teal-300: #7ee0d6;
  --teal-100: #e6f7f7;
  --gold-500: #c9a227;
  --gold-400: #e0b94a;
  --gold-100: #fbf3d5;

  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --bg-50:  #f8fafc;
  --bg-100: #f1f5f9;
  --white:  #ffffff;

  --err: #c0264b;
  --err-bg: #fde8ec;
  --warn: #b07c00;
  --warn-bg: #fff5dc;
  --info: #2463c8;
  --info-bg: #e4eeff;
  --ok: #0e7c4a;
  --ok-bg: #e3f7ec;

  --code-bg: #061a2e;
  --code-fg: #cfe4ff;
  --border: #e5eaf1;
  --border-strong: #cbd5e1;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 2px 4px rgba(15,23,42,.06);
  --shadow-md: 0 6px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.12);
  --shadow-xl: 0 28px 64px rgba(15,23,42,.16);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-50);
  color: var(--ink-900);
  line-height: 1.6;
  font-size: 15px;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--teal-500); }

/* ═══════════════════════════════════════════════════════════
   HERO &mdash; forced single-column layout (matches Learn page)
   ═══════════════════════════════════════════════════════════ */

.hero {
  display: block;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(14,124,134,.28), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 0;
  outline: 0;
}

.hero-inner {
  display: block;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border: 0;
  outline: 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(18,163,163,.12);
  border: 1px solid rgba(18,163,163,.35);
  border-radius: 20px;
  color: var(--teal-300);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 24px;
}

.hero-title {
  display: block;
  width: 100%;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: #fff;
  text-align: center;
}

.hero-accent {
  display: inline;
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  display: block;
  font-size: 16.5px;
  color: rgba(255,255,255,.72);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.trust-item svg {
  color: var(--teal-400);
  flex-shrink: 0;
}

.btn-primary-lg,
.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all .2s var(--ease);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary-lg {
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-500) 100%);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(14,124,134,.4),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary-lg:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow:
    0 16px 40px rgba(14,124,134,.5),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.btn-secondary-lg {
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.btn-secondary-lg:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════════════════ */

.announce {
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--teal-700) 50%, var(--navy-900) 100%);
  color: #fff;
  padding: 9px 24px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.announce-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.announce-pill {
  background: var(--teal-500);
  color: var(--navy-900);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
}
.announce span:not(.announce-pill) {
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.announce-link {
  color: var(--teal-300);
  font-weight: 700;
}
.announce-link:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.app-header {
  background: rgba(10, 37, 64, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  color: #fff; font-weight: 800; font-size: 16.5px;
  letter-spacing: -.01em;
}
.brand-tag {
  color: rgba(255,255,255,.5); font-size: 10.5px;
  letter-spacing: .8px; text-transform: uppercase; font-weight: 600;
}

.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.72); font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all .15s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover {
  color: #fff; background: rgba(255,255,255,.08);
}
.nav-github {
  border: 1px solid rgba(255,255,255,.14);
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════
   METRICS BAR
   ═══════════════════════════════════════════════════════════ */

.metrics-bar {
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.metrics-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.metric { text-align: center; }
.metric-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: var(--teal-300);
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-k {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}
.metric-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.08);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES BENTO GRID
   ═══════════════════════════════════════════════════════════ */

.features-section {
  padding: 100px 28px;
  background: var(--bg-50);
  position: relative;
}
.features-inner { max-width: 1280px; margin: 0 auto; }

.section-head-v2 {
  text-align: center;
  margin-bottom: 56px;
}
.step-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.step-badge.light {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.section-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-lead-v2 {
  font-size: 17px;
  color: var(--ink-700);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.bento-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-400);
}
.bento-card:hover::before { transform: scaleX(1); }

.bento-large { grid-column: span 2; }

.bento-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}
.bg-blue   { background: linear-gradient(135deg, #2463c8, #3b82f6); }
.bg-green  { background: linear-gradient(135deg, #0e7c4a, #10b981); }
.bg-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.bg-orange { background: linear-gradient(135deg, #b45309, #f59e0b); }
.bg-teal   { background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); }

.bento-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.bento-desc {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.65;
  margin-bottom: 18px;
}

.bento-preview {
  margin-top: 22px;
  background: var(--bg-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.mini-seg {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.mini-seg:last-child { border-bottom: 0; }
.ms-name {
  font-weight: 700;
  color: var(--navy-800);
  width: 40px;
}
.ms-arrow { color: var(--ink-400); }
.ms-result { color: var(--teal-600); font-weight: 600; }

.bento-chip-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 16px;
}
.chip-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.code-preview {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 6px;
  overflow: hidden;
}
.code-preview pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal-300);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   TOOL SECTION
   ═══════════════════════════════════════════════════════════ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-head { text-align: center; margin-bottom: 40px; }
.tool-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.tool-sub {
  font-size: 16px;
  color: var(--ink-500);
}

.panel-v2 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s var(--ease);
}
.panel-v2:hover { box-shadow: var(--shadow-md); }

.panel-head-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head-v2 h2 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.panel-sub-v2 {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 3px;
}

.actions-v2 { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-700);
  padding: 9px 15px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s var(--ease);
}
.btn-v2:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-v2 svg { opacity: .8; }
.btn-v2:hover svg { opacity: 1; }

textarea#input {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 20px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  background: #fcfdff;
  color: var(--ink-900);
  transition: background .15s var(--ease);
}
textarea#input:focus { background: #fff; }

.row-v2 {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 26px;
  flex-wrap: wrap;
}

.status { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 24px;
}
.ov-item {
  background: linear-gradient(180deg, #f8faff 0%, #f1f6fc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all .15s var(--ease);
}
.ov-item:hover {
  border-color: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.ov-item .k {
  font-size: 10.5px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  margin-bottom: 5px;
}
.ov-item .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--navy-800);
  font-weight: 500;
  word-break: break-all;
}

/* Validation */
.validation-summary {
  padding: 18px 26px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.chip.err  { background: var(--err-bg);  color: var(--err); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.ok   { background: var(--ok-bg);   color: var(--ok); }

.validation-list { padding: 0 26px 24px; }
.vr {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 10px;
  background: #fafcff;
}
.vr.ERROR   { border-left-color: var(--err);  background: #fff8f9; }
.vr.WARNING { border-left-color: var(--warn); background: #fffdf5; }
.vr.INFO    { border-left-color: var(--info); background: #f7faff; }
.vr .loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: .3px;
}
.vr .desc {
  font-weight: 700;
  font-size: 13.5px;
  margin: 3px 0;
  color: var(--ink-900);
}
.vr .exp { font-size: 12.5px; color: var(--ink-700); line-height: 1.55; }

/* Explorer */
.explorer { padding: 0 26px 24px; }
.seg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
  overflow: hidden;
  transition: box-shadow .15s var(--ease);
}
.seg:hover { box-shadow: var(--shadow-sm); }
.seg-head {
  padding: 12px 18px;
  background: linear-gradient(180deg, #eef4fb 0%, #e3ecf7 100%);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .3px;
}
.seg-head::after {
  content: '+';
  font-size: 18px;
  color: var(--teal-600);
  font-weight: 700;
  transition: transform .2s var(--ease);
}
.seg.open .seg-head::after { content: '−'; }
.seg-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.seg.open .seg-body { max-height: 3000px; }

table.fields { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.fields th, table.fields td {
  border-top: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
table.fields th {
  background: #f7faff;
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  letter-spacing: .6px;
  font-weight: 700;
}
table.fields td.mono {
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
  color: var(--navy-700);
}

/* Tabs / Output */
.tabs-v2 {
  display: flex;
  gap: 4px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  background: linear-gradient(180deg, #fbfdff, #fff);
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  padding: 10px 20px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  transition: all .15s var(--ease);
  font-family: inherit;
  white-space: nowrap;
  position: relative;
}
.tab:hover { color: var(--navy-800); background: rgba(241,245,249,.6); }
.tab.active {
  background: #fff;
  border-color: var(--border);
  color: var(--navy-800);
  font-weight: 700;
  box-shadow: inset 0 3px 0 var(--teal-500);
}

.output-toolbar {
  display: flex; gap: 10px; align-items: center;
  padding: 16px 26px;
  border-bottom: 1px solid var(--border);
}

.output {
  margin: 0;
  padding: 22px 26px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  max-height: 580px;
  overflow: auto;
  white-space: pre;
}
.output::-webkit-scrollbar { width: 10px; height: 10px; }
.output::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.output::-webkit-scrollbar-thumb {
  background: rgba(18,163,163,.5);
  border-radius: 5px;
}
.output::-webkit-scrollbar-thumb:hover { background: rgba(18,163,163,.8); }

/* ═══════════════════════════════════════════════════════════
   WORKFLOW
   ═══════════════════════════════════════════════════════════ */

.workflow-section {
  padding: 100px 28px;
  background: #fff;
}
.workflow-inner { max-width: 1200px; margin: 0 auto; }

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

.wf-step {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s var(--ease);
}
.wf-step:hover {
  transform: translateY(-4px);
  border-color: var(--teal-400);
  box-shadow: var(--shadow-lg);
}
.wf-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--teal-100);
  margin-bottom: 12px;
  letter-spacing: -.03em;
}
.wf-step h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.wf-step p {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   LEARN BANNER
   ═══════════════════════════════════════════════════════════ */

.learn-banner {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(201,162,39,.18), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(18,163,163,.28), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: #fff;
  padding: 90px 28px;
  position: relative;
  overflow: hidden;
}
.learn-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.learn-banner-left h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.learn-banner-left p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}

.cta-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--navy-800);
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all .2s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cta-light:hover {
  transform: translateY(-2px);
  color: var(--navy-800);
  box-shadow: 0 14px 32px rgba(0,0,0,.3);
}

.learn-mock {
  background: rgba(4, 18, 31, .7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.lm-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lm-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}
.lm-tab.active {
  background: rgba(18,163,163,.15);
  color: var(--teal-300);
}
.lm-body { padding: 20px 22px; }
.lm-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  display: flex; flex-wrap: wrap;
  gap: 1px;
  line-height: 2;
}
.lm-seg { color: var(--teal-300); font-weight: 700; margin-right: 2px; }
.lm-field { color: rgba(255,255,255,.3); }
.lm-hl {
  background: rgba(18,163,163,.15);
  color: var(--teal-300);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.lm-hl.gold { background: rgba(201,162,39,.15); color: var(--gold-400); }
.lm-hl.teal { background: rgba(18,163,163,.15); color: var(--teal-300); }
.lm-annot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.1);
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.app-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.7);
  padding: 70px 28px 28px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-logo { width: 46px; height: 46px; flex-shrink: 0; }
.footer-logo svg { width: 100%; height: 100%; display: block; }
.footer-brand-name {
  color: #fff; font-weight: 800; font-size: 16px;
  letter-spacing: -.01em;
}
.footer-brand-tag {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  margin-top: 3px;
}
.footer-col h4 {
  color: var(--teal-400);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 16px;
}
.creator-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.creator-alias {
  color: var(--gold-400);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.creator-role {
  color: rgba(255,255,255,.5);
  font-size: 12.5px;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.footer-links li {
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.footer-links a {
  color: rgba(255,255,255,.75);
  transition: color .15s var(--ease);
}
.footer-links a:hover { color: var(--teal-400); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link svg { opacity: .7; }
.social-link:hover svg { opacity: 1; }

.footer-bottom {
  max-width: 1280px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.footer-privacy { line-height: 1.7; }
.footer-privacy strong { color: rgba(255,255,255,.7); }
.footer-copy a {
  color: var(--teal-400);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */

.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-column: span 2; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-banner-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .header-inner { padding: 12px 18px; flex-wrap: wrap; gap: 12px; }
  .brand-tag { display: none; }
  .nav-link { padding: 6px 10px; font-size: 12.5px; }

  .hero { padding: 60px 20px 70px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .btn-primary-lg, .btn-secondary-lg { width: 100%; justify-content: center; }
  .hero-trust { gap: 14px; }
  .trust-item { font-size: 12px; }

  .metrics-inner { padding: 24px 20px; gap: 24px; }
  .metric-div { display: none; }
  .metric-v { font-size: 22px; }

  .features-section,
  .workflow-section,
  .learn-banner { padding: 60px 20px; }
  .container { padding: 60px 20px 30px; }

  .bento-grid,
  .workflow-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }

  .panel-head-v2 { padding: 16px 20px; }
  textarea#input { padding: 16px 20px; min-height: 180px; }
  .row-v2 { padding: 14px 20px; }
  .overview-grid { padding: 20px; grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .app-footer { padding: 50px 20px 20px; }

  .tabs-v2 { padding: 12px 14px 0; }
  .tab { padding: 8px 14px; font-size: 12px; }
  .output-toolbar { padding: 12px 20px; flex-wrap: wrap; }
  .output { padding: 18px 20px; font-size: 11.5px; }
}