/* ==========================================================================
   QYNREL — BESPOKE EDITORIAL & SWISS ARCHITECTURAL STUDIO DESIGN (v5.0)
   Aesthetic: Anthropic / Claude Editorial × Apple Industrial × Swiss Grid
   Warm Alabaster Paper (#F6F5F0), Pure Gallery White (#FFFFFF),
   Espresso Ink (#111110), International Cobalt (#1D4ED8), Warm Amber (#D97706)
   ========================================================================== */

:root {
  --bg-ivory: #F6F5F0;
  --bg-paper: #EFECE5;
  --surface-white: #FFFFFF;
  --surface-ink: #111110;
  --surface-charcoal: #18181B;

  --text-ink: #111110;
  --text-graphite: #4A4945;
  --text-muted: #78766F;

  --accent-cobalt: #1D4ED8;
  --accent-cobalt-soft: #EFF6FF;
  --accent-amber: #D97706;
  --accent-emerald: #059669;

  --grid-line: #DFDCD3;
  --grid-line-dark: #C8C4B8;

  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background-color: var(--bg-ivory);
  color: var(--text-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-ivory);
  color: var(--text-ink);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--accent-cobalt);
  color: #FFFFFF;
}

/* ==========================================================================
   TOP SWISS ARCHITECTURAL MASTHEAD (FULL-WIDTH CELLULAR NAVIGATION)
   ========================================================================== */
.swiss-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grid-line);
}

.masthead-grid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: stretch;
}

.masthead-cell {
  padding: 0 22px;
  height: 60px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--grid-line);
  white-space: nowrap;
}

.masthead-cell:last-child {
  border-right: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-ink);
}

.brand-sq {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--surface-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-sq img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}

.masthead-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-graphite);
  gap: 8px;
}

.masthead-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
}

.masthead-nav a {
  text-decoration: none;
  color: var(--text-graphite);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.masthead-nav a:hover {
  color: var(--accent-cobalt);
}

.btn-masthead-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--surface-ink);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-masthead-dl:hover {
  background: var(--accent-cobalt);
  transform: translateY(-1px);
}

/* ==========================================================================
   ARCHITECTURAL BLUEPRINT FRAME CONTAINER WITH "+" CROSSHAIRS
   ========================================================================== */
.blueprint-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
}

.blueprint-section {
  border-bottom: 1px solid var(--grid-line);
  position: relative;
}

.crosshair {
  position: absolute;
  width: 15px;
  height: 15px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 15px;
  text-align: center;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 5;
  user-select: none;
}
.ch-tl { top: -8px; left: 18px; }
.ch-tr { top: -8px; right: 18px; }
.ch-bl { bottom: -8px; left: 18px; }
.ch-br { bottom: -8px; right: 18px; }

/* ==========================================================================
   SECTION 01: EDITORIAL ASYMMETRIC HERO + 3D ISOMETRIC SCULPTURE
   ========================================================================== */
.hero-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 650px;
}

.hero-left-cell {
  padding: clamp(36px, 4vw, 72px) clamp(28px, 4.5vw, 80px);
  border-right: 1px solid var(--grid-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.index-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cobalt);
  margin-bottom: 20px;
}

.index-kicker span {
  background: var(--accent-cobalt-soft);
  border: 1px solid #BFDBFE;
  padding: 3px 9px;
  border-radius: 4px;
}

.editorial-headline {
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text-ink);
  margin-bottom: 22px;
}

.editorial-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--accent-cobalt);
  letter-spacing: -0.01em;
}

.editorial-lead {
  font-size: 1.08rem;
  color: var(--text-graphite);
  max-width: 560px;
  line-height: 1.68;
  margin-bottom: 32px;
}

.editorial-lead strong {
  color: var(--text-ink);
  font-weight: 700;
}

/* Tactile 3-OS Instant Download Cartridge Dock in Hero */
.hero-cartridge-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-cartridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.os-cartridge {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px;
  border-radius: 10px;
  background: var(--surface-white);
  border: 1px solid var(--grid-line-dark);
  text-decoration: none;
  color: var(--text-ink);
  transition: all 0.2s var(--ease-editorial);
  box-shadow: 0 2px 6px rgba(17, 17, 16, 0.04);
}

.os-cartridge:hover,
.os-cartridge.primary-cartridge {
  border-color: var(--accent-cobalt);
  box-shadow: 0 10px 24px -6px rgba(29, 78, 216, 0.16);
  transform: translateY(-2px);
}

.os-cartridge.primary-cartridge {
  background: var(--surface-ink);
  color: #FFFFFF;
  border-color: var(--surface-ink);
}

.os-cartridge.primary-cartridge:hover {
  background: var(--accent-cobalt);
  border-color: var(--accent-cobalt);
}

.cartridge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.75;
}

.cartridge-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.cartridge-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.7;
}

/* Right Cell: 3D Isometric Architectural Monolith + Layer Index */
.hero-right-cell {
  background:
    radial-gradient(circle at 50% 45%, #FFFFFF 0%, #EAE6DD 100%);
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.iso-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--grid-line-dark);
  padding-bottom: 10px;
}

.iso-canvas-container {
  width: 100%;
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.iso-canvas-container:active {
  cursor: grabbing;
}

#hero-isometric-3d {
  width: 100%;
  height: 100%;
  display: block;
}

/* 4 Interactive Layer Legend Pills below the 3D Isometric Stack */
.iso-layer-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--grid-line-dark);
}

.layer-chip {
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--surface-white);
  border: 1px solid var(--grid-line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-graphite);
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.layer-chip:hover {
  border-color: var(--accent-cobalt);
  color: var(--accent-cobalt);
  background: var(--accent-cobalt-soft);
}

/* ==========================================================================
   SECTION 02: INTERACTIVE 4-ACT WORKFLOW SWITCHBOARD
   ("Think, Research, Create, Execute")
   ========================================================================== */
.section-top-bar {
  padding: 16px clamp(28px, 4.5vw, 80px);
  background: var(--bg-paper);
  border-bottom: 1px solid var(--grid-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-graphite);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.workflow-chapters {
  border-right: 1px solid var(--grid-line);
  display: flex;
  flex-direction: column;
}

.chapter-btn {
  width: 100%;
  text-align: left;
  padding: 30px clamp(28px, 4vw, 64px);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grid-line);
  cursor: pointer;
  transition: background 0.2s ease;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.chapter-btn:last-child {
  border-bottom: none;
}

.chapter-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.chapter-btn.active {
  background: var(--surface-white);
  box-shadow: inset 4px 0 0 var(--accent-cobalt);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cobalt);
  background: var(--accent-cobalt-soft);
  border: 1px solid #BFDBFE;
  padding: 4px 8px;
  border-radius: 5px;
  text-align: center;
}

.chapter-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.chapter-desc {
  font-size: 0.92rem;
  color: var(--text-graphite);
  line-height: 1.55;
}

/* Right Stage of the Workflow Switchboard */
.workflow-stage-panel {
  padding: clamp(32px, 3.5vw, 56px) clamp(28px, 4.5vw, 80px);
  background: var(--surface-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.artifact-card {
  background: var(--surface-charcoal);
  color: #F4F4F5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(17, 17, 16, 0.18);
}

.artifact-header {
  height: 44px;
  padding: 0 18px;
  background: #09090B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A1A1AA;
}

.artifact-dots {
  display: flex;
  gap: 6px;
}

.artifact-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3F3F46;
}

.artifact-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.7;
  color: #E4E4E7;
  min-height: 270px;
  white-space: pre-wrap;
  word-break: break-word;
}

.artifact-footer-bar {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-ivory);
  border: 1px solid var(--grid-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-graphite);
}

/* ==========================================================================
   SECTION 03: ARCHITECTURAL BENCHMARK & ENGINEERING SPECIFICATION MATRIX
   ========================================================================== */
.benchmark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.benchmark-left {
  padding: clamp(36px, 4vw, 64px) clamp(28px, 4.5vw, 80px);
  border-right: 1px solid var(--grid-line);
}

.editorial-subhead {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.editorial-subhead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-cobalt);
}

.spec-ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 13px;
}

.spec-ledger-table th,
.spec-ledger-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--grid-line);
  text-align: left;
}

.spec-ledger-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-ledger-table td strong {
  color: var(--accent-cobalt);
  font-family: var(--font-mono);
}

.benchmark-right {
  padding: clamp(36px, 4vw, 64px) clamp(28px, 4.5vw, 80px);
  background: var(--surface-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.bar-group-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bar-group-label span {
  font-family: var(--font-mono);
  color: var(--accent-cobalt);
}

.bar-track {
  width: 100%;
  height: 12px;
  background: var(--bg-paper);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.bar-fill-qynrel {
  height: 100%;
  background: var(--accent-cobalt);
  border-radius: 99px;
}

.bar-fill-other {
  height: 100%;
  background: #A1A1AA;
  border-radius: 99px;
}

.bar-compare-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 04: SYNAPSE NEURAL QUARTET HARDWARE DATASHEETS
   ========================================================================== */
.quartet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quartet-sheet {
  padding: 36px 28px;
  border-right: 1px solid var(--grid-line);
  background: var(--bg-ivory);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.quartet-sheet:last-child {
  border-right: none;
}

.quartet-sheet:hover {
  background: var(--surface-white);
}

.sheet-serial {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-cobalt);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.sheet-desc {
  font-size: 0.92rem;
  color: var(--text-graphite);
  line-height: 1.6;
  margin-bottom: 22px;
}

.sheet-specs {
  list-style: none;
  border-top: 1px dashed var(--grid-line-dark);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   SECTION 05: 3-COLUMN SIDE-BY-SIDE PC DEPLOYMENT & INSTALLATION BLUEPRINT
   All 3 Platforms (Windows 10/11, Kali Linux, Ubuntu) Visible Simultaneously!
   ========================================================================== */
.deploy-intro-box {
  padding: 48px clamp(28px, 4.5vw, 80px) 32px;
  background: var(--surface-white);
  border-bottom: 1px solid var(--grid-line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.deploy-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface-white);
}

.os-deploy-column {
  padding: 40px clamp(24px, 3vw, 52px);
  border-right: 1px solid var(--grid-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.os-deploy-column:last-child {
  border-right: none;
}

.os-col-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-paper);
  color: var(--text-ink);
  margin-bottom: 14px;
}

.os-col-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.os-col-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-deploy-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 10px;
  background: var(--surface-ink);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.btn-deploy-primary:hover {
  background: var(--accent-cobalt);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24);
}

.btn-deploy-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-ivory);
  border: 1px solid var(--grid-line-dark);
  color: var(--text-ink);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.btn-deploy-secondary:hover {
  border-color: var(--accent-cobalt);
  color: var(--accent-cobalt);
}

.install-manual-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--grid-line);
}

.manual-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manual-steps li {
  font-size: 12.8px;
  color: var(--text-graphite);
  line-height: 1.55;
}

.manual-steps li strong {
  color: var(--text-ink);
}

.terminal-copy-strip {
  margin-top: 8px;
  background: var(--surface-charcoal);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.terminal-copy-strip code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #E4E4E7;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-mini-copy {
  flex-shrink: 0;
  background: var(--accent-cobalt);
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-mini-copy:hover {
  background: #2563EB;
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
.editorial-footer {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px clamp(28px, 4.5vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.toast-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  padding: 13px 18px;
  border-radius: 10px;
  background: var(--surface-ink);
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(130%);
  opacity: 0;
  transition: all 0.35s var(--ease-editorial);
}

.toast-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-editorial-grid,
  .workflow-theater-grid,
  .benchmark-grid,
  .deploy-3col-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .quartet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-left-cell,
  .workflow-chapters,
  .benchmark-left,
  .os-deploy-column {
    border-right: none;
    border-bottom: 1px solid var(--grid-line);
  }
}

@media (max-width: 820px) {
  .masthead-meta,
  .masthead-nav {
    display: none;
  }
  .masthead-grid {
    grid-template-columns: 1fr auto;
  }
  .hero-cartridge-grid,
  .quartet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-left-cell,
  .workflow-stage-panel,
  .benchmark-left,
  .benchmark-right,
  .deploy-intro-box,
  .os-deploy-column {
    padding: 28px 20px;
  }
}
