/* ============================================================
   HYBRID SECURITY — page layout
   Composition idea: "two halves, one system".
   A split hero, a draggable AI/guard comparison, a sticky
   stacking layer model, a cost toggle, a coverage matrix.
   Shares nothing structural with the other two service pages.
   ============================================================ */

/* ---------- 1. HERO — diagonal split ---------- */
.hyb-hero { position: relative; padding-top: clamp(140px, 16vw, 210px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hyb-hero-in { position: relative; z-index: 2; }
.hyb-hero h1 {
  margin-top: 24px;
  font-family: 'Sora',sans-serif; font-weight: 700;
  font-size: clamp(38px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.05em;
  max-width: 16ch;
}
.hyb-hero h1 .a { color: var(--accent-2); }
.hyb-hero h1 .b { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.55); }
.hyb-hero-foot { margin-top: clamp(38px, 5vw, 60px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hyb-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* two half-plates behind the type */
.hyb-plates { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: .5; }
.hyb-plates > div { position: relative; overflow: hidden; }
.hyb-plates img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hyb-plates > div:first-child { clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.hyb-plates > div:last-child  { clip-path: polygon(72% 0, 100% 0, 100% 100%, 44% 100%); }
.hyb-plates::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.86) 62%, #000 100%);
}

/* ---------- 2. COMPARISON — draggable split ---------- */
.hyb-cmp-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.cmp {
  --split: 50%;
  position: relative; margin-top: clamp(38px, 4.6vw, 60px);
  border: 1px solid var(--hair); border-radius: 24px; overflow: hidden;
  min-height: 460px; cursor: ew-resize; touch-action: none; user-select: none;
  background: #04060a;
}
.cmp-side { position: absolute; inset: 0; padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; }
.cmp-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cmp-side .veil { position: absolute; inset: 0; }
.cmp-a .veil { background: linear-gradient(180deg, rgba(4,6,10,0.4), rgba(4,6,10,0.94)); }
.cmp-b .veil { background: linear-gradient(180deg, rgba(46,107,255,0.16), rgba(4,6,10,0.94)); }
.cmp-b { clip-path: inset(0 0 0 var(--split)); }
.cmp-inner { position: relative; z-index: 2; max-width: 440px; }
.cmp-tag { font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: 2px; color: var(--ink-dim); }
.cmp-b .cmp-tag { color: var(--accent-2); }
.cmp-inner h3 { margin-top: 14px; font-family: 'Sora',sans-serif; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.035em; }
.cmp-inner ul { margin-top: 22px; display: grid; gap: 10px; list-style: none; }
.cmp-inner li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.2px; line-height: 1.55; color: var(--ink-soft); }
.cmp-inner li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cmp-a li svg { color: rgba(255,255,255,0.34); }
.cmp-b li svg { color: var(--accent-2); }
.cmp-b .cmp-inner { margin-left: auto; text-align: right; }
.cmp-b .cmp-inner li { flex-direction: row-reverse; }

.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 5; width: 2px;
  background: rgba(255,255,255,0.7); transform: translateX(-1px); cursor: ew-resize;
}
.cmp-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  color: #0A1220; font-size: 13px; letter-spacing: 2px; pointer-events: none;
}
.cmp-hint {
  position: absolute; z-index: 6; left: 50%; top: 20px; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 100px; background: rgba(0,0,0,0.6); border: 1px solid var(--hair);
  font-size: 11.5px; letter-spacing: 1.4px; color: var(--ink-dim); white-space: nowrap;
  animation: hybFloat 3s ease-in-out infinite;
}
@keyframes hybFloat { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

/* ---------- 3. LAYER STACK — sticky cards ---------- */
.hyb-stack { margin-top: clamp(40px, 5vw, 66px); display: grid; gap: 18px; }
.hyb-layer {
  position: sticky; top: calc(var(--nav-h, 88px) + 30px);
  border: 1px solid var(--hair); border-radius: 24px; overflow: hidden;
  background: #05070c;
  display: grid; grid-template-columns: 90px 1fr 1fr; align-items: stretch;
  transition: border-color .5s ease;
}
.hyb-layer:hover { border-color: rgba(255,255,255,0.26); }
.hyb-layer .idx {
  display: grid; place-items: center; border-right: 1px solid var(--hair);
  font-family: 'JetBrains Mono',monospace; font-size: 13px; color: var(--ink-dim);
  writing-mode: vertical-rl; letter-spacing: 3px;
  background: rgba(255,255,255,0.02);
}
.hyb-layer .txt { padding: clamp(30px, 3.4vw, 48px); }
.hyb-layer h3 { font-family: 'Sora',sans-serif; font-size: clamp(21px, 2.3vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.hyb-layer p { margin-top: 16px; font-size: 14.8px; line-height: 1.7; color: var(--ink-soft); }
.hyb-layer .who {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 100px; border: 1px solid var(--hair-2);
  font-size: 12px; letter-spacing: .8px; color: var(--ink-soft);
}
.hyb-layer .who i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hyb-layer .fig { position: relative; overflow: hidden; border-left: 1px solid var(--hair); min-height: 260px; }
.hyb-layer .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.hyb-layer:hover .fig img { opacity: .6; transform: scale(1.05); }
.hyb-layer .fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #05070c, transparent 55%); }

/* ---------- 4. COST TOGGLE ---------- */
.hyb-cost { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4.4vw, 70px); align-items: center; margin-top: clamp(38px, 4.6vw, 58px); }
.hyb-switch { display: inline-flex; padding: 5px; border-radius: 100px; border: 1px solid var(--hair); background: var(--panel); gap: 4px; }
.hyb-switch button {
  padding: 11px 22px; border: 0; border-radius: 100px; background: transparent; cursor: pointer;
  font-family: 'Sora',sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink-dim);
  transition: background .4s cubic-bezier(.2,.8,.2,1), color .4s ease;
}
.hyb-switch button.on { background: var(--accent); color: #fff; }

.hyb-bars { display: grid; gap: 16px; }
.hyb-bar-row .lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-soft); }
.hyb-bar-row .lab b { font-family: 'JetBrains Mono',monospace; font-size: 13px; color: #fff; }
.hyb-bar { margin-top: 10px; height: 12px; border-radius: 100px; background: rgba(255,255,255,0.06); overflow: hidden; }
.hyb-bar i {
  display: block; height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.32));
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.hyb-bar-row.hero-row .hyb-bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.hyb-panel.on .hyb-bar i { width: var(--w); }
.hyb-panel { display: none; }
.hyb-panel.on { display: grid; gap: 16px; }
.hyb-cost-note { margin-top: 24px; font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }

/* ---------- 5. COVERAGE MATRIX ---------- */
.hyb-matrix { margin-top: clamp(36px, 4.4vw, 56px); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.hyb-mrow {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center;
  border-top: 1px solid var(--hair); transition: background .4s ease;
}
.hyb-mrow:first-child { border-top: 0; background: rgba(255,255,255,0.03); }
.hyb-mrow:not(:first-child):hover { background: rgba(255,255,255,0.03); }
.hyb-mrow > * { padding: 19px 22px; font-size: 14px; }
.hyb-mrow > *:not(:first-child) { text-align: center; border-left: 1px solid var(--hair); }
.hyb-mrow .h { font-family: 'Sora',sans-serif; font-size: 12.5px; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-dim); }
.hyb-mrow .h.acc { color: var(--accent-2); }
.hyb-mrow .lbl { color: var(--ink-soft); }
.hyb-yes  { color: var(--accent-2); }
.hyb-part { color: rgba(255,255,255,0.44); }
.hyb-no   { color: rgba(255,255,255,0.2); }
.hyb-mrow svg { width: 17px; height: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hyb-hero-foot { grid-template-columns: 1fr; align-items: start; }
  .hyb-layer { grid-template-columns: 1fr; position: relative; top: auto; }
  .hyb-layer .idx { writing-mode: horizontal-tb; border-right: 0; border-bottom: 1px solid var(--hair); padding: 12px; }
  .hyb-layer .fig { border-left: 0; border-top: 1px solid var(--hair); min-height: 200px; order: -1; }
  .hyb-layer .fig::after { background: linear-gradient(180deg, transparent 40%, #05070c); }
  .hyb-cost { grid-template-columns: 1fr; }
  .cmp { min-height: 560px; }
  .cmp-side { padding: 24px; }
  .cmp-inner { max-width: 300px; }
}
@media (max-width: 720px) {
  .hyb-matrix { overflow-x: auto; }
  .hyb-mrow { grid-template-columns: 150px repeat(3, 96px); min-width: 440px; }
  .cmp-inner h3 { font-size: 20px; }
  .cmp-inner li { font-size: 13px; }
}
