/* ============================================================
   BRANXA.AI — site styles
   Dual-accent (gold = reasoning / blue = lock). Dark + light themes.
   ============================================================ */

:root {
  /* ---- DARK (default) ---- */
  --bg:        #07080A;
  --bg-1:      #0C0D11;
  --bg-2:      #111319;
  --bg-3:      #171A21;
  --line:      rgba(255,255,255,0.085);
  --line-2:    rgba(255,255,255,0.16);

  --fg:        #F3F3F1;
  --fg-dim:    #A4A6A3;
  --fg-faint:  #6A6C6B;

  --gold:      #FFC400;
  --gold-2:    #FFD24A;
  --gold-text: #FFC400;
  --gold-soft: rgba(255,196,0,0.13);
  --gold-line: rgba(255,196,0,0.34);

  --blue:      #2E6BFF;
  --blue-2:    #5C8BFF;
  --blue-text: #6E9BFF;
  --blue-soft: rgba(46,107,255,0.16);
  --blue-line: rgba(92,139,255,0.40);

  --logo-chip: #2E6BFF;

  --hero-bg:   radial-gradient(120% 100% at 78% 26%, #10131b 0%, #07080A 58%);
  --grid:      rgba(92,139,255,0.07);
  --grid-dot:  rgba(255,255,255,0.05);
  --on-gold:   #141100;
  --btn-solid-bg: var(--fg);
  --btn-solid-fg: #0a0a0a;

  /* type */
  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-sans:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="light"] {
  --bg:        #F7F6F2;
  --bg-1:      #FFFFFF;
  --bg-2:      #F2F0EA;
  --bg-3:      #ECE9E1;
  --line:      rgba(20,18,10,0.12);
  --line-2:    rgba(20,18,10,0.22);

  --fg:        #16140E;
  --fg-dim:    #5C5A51;
  --fg-faint:  #908E84;

  --gold:      #FFC400;
  --gold-2:    #E0A400;
  --gold-text: #9A6B00;
  --gold-soft: rgba(255,196,0,0.16);
  --gold-line: rgba(176,122,0,0.30);

  --blue:      #2E6BFF;
  --blue-2:    #1E54E0;
  --blue-text: #1E54E0;
  --blue-soft: rgba(46,107,255,0.10);
  --blue-line: rgba(46,107,255,0.32);

  --logo-chip: #16140E;

  --hero-bg:   linear-gradient(180deg, #FBFAF7 0%, #F4F2EC 100%);
  --grid:      rgba(20,18,10,0.05);
  --grid-dot:  rgba(20,18,10,0.05);
  --on-gold:   #141100;
  --btn-solid-bg: #16140E;
  --btn-solid-fg: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
}
::selection { background: var(--gold); color: #141100; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 900px; }

/* ---------- atoms ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text);
  display: inline-flex; align-items: center; gap: 11px; margin: 0;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow.blue { color: var(--blue-text); }
.eyebrow.plain::before { display: none; }

.section { padding-block: clamp(70px, 10vw, 140px); position: relative; }
.section.tight { padding-block: clamp(54px, 7vw, 96px); }
.section-head { max-width: 780px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 54px); margin-top: 18px; }
.section-head .lede { color: var(--fg-dim); font-size: clamp(17px, 1.4vw, 20px); margin-top: 22px; max-width: 660px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 17px; font-weight: 500; letter-spacing: 0.03em;
  padding: 18px 30px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s, color .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.btn-solid:hover { transform: translateY(-2px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.btn-blue { background: transparent; color: var(--blue-text); border-color: var(--blue-line); }
.btn-blue:hover { background: var(--blue-soft); }

.link-arrow { font-family: var(--f-mono); font-size: 13px; color: var(--gold-text); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }
.link-arrow.blue { color: var(--blue-text); }

/* ============================================================ HEADER */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 36px; height: 230px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand .brand-logo { height: 88px; width: auto; display: block; object-fit: contain; flex: 0 0 auto; max-width: 100%; }
.logo-pill { display: inline-flex; align-items: center; border-radius: 10px; transition: background .4s, padding .4s; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--fg-dim); position: relative; padding: 4px 0; transition: color .2s; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--gold); transition: width .28s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* dropdown (Patents) */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-btn { font-size: 15px; color: var(--fg-dim); padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s; }
.nav-dd-btn::after { content: "\25BE"; font-size: 9px; opacity: .6; transition: transform .25s var(--ease); }
.nav-dd:hover .nav-dd-btn, .nav-dd-btn.active { color: var(--fg); }
.nav-dd:hover .nav-dd-btn::after { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px); min-width: 200px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); box-shadow: 0 22px 54px rgba(0,0,0,0.4); z-index: 101; }
.nav-dd:hover .nav-dd-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a { font-size: 14px; color: var(--fg-dim); padding: 10px 14px; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover, .nav-dd-menu a.active { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.mobile-menu .mm-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); padding: 18px 0 2px; }
.mobile-menu a.mm-sub { font-size: 22px; padding-left: 20px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.toggle-group { display: inline-flex; border: 1px solid var(--line-2); border-radius: 100px; overflow: hidden; font-family: var(--f-mono); font-size: 18px; font-weight: 500; }
.toggle-group button { background: transparent; border: 0; color: var(--fg-faint); padding: 10px 18px; letter-spacing: 0.06em; transition: color .2s, background .2s; }
.toggle-group button.active { background: var(--fg); color: var(--bg); }
.toggle-group button:not(.active):hover { color: var(--fg); }
.theme-btn { background: transparent; border: 1px solid var(--line-2); border-radius: 100px; width: 40px; height: 36px; display: grid; place-items: center; color: var(--fg-dim); transition: color .2s, border-color .2s; }
.theme-btn:hover { color: var(--fg); border-color: var(--fg); }
.theme-btn { background: transparent; border: 1px solid var(--line-2); border-radius: 100px; width: 56px; height: 50px; display: grid; place-items: center; color: var(--fg-dim); transition: color .2s, border-color .2s; }
.theme-btn svg { width: 24px; height: 24px; }
.nav-cta { display: inline-flex; }

.menu-btn { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 38px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform .25s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

.mobile-menu { position: fixed; inset: 230px 0 0 0; z-index: 99; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(14px); display: flex; flex-direction: column; padding: 30px var(--gut); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--f-display); font-size: 28px; font-weight: 600; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--fg); letter-spacing: -0.02em; }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 230px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--hero-bg); }
.hero.short { min-height: 70svh; }
#tree { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0); background-size: 42px 42px; opacity: .8; pointer-events: none; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 90% at 18% 52%, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 50%, transparent 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 80px 80px; }
.hero-copy { max-width: min(600px, 54vw); }
.hero.short .hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 82px); font-weight: 600; margin-top: 24px; letter-spacing: -0.035em; }
.hero h1 .em { color: var(--gold-text); }
.hero h1 .emb { color: var(--blue-text); }
.hero .sub { color: var(--fg-dim); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 600px; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.hpill { font-family: var(--f-mono); font-size: 12.5px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 17px; border-radius: 100px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 3%, transparent); }
.hpill .pd { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hpill.gold .pd { background: var(--gold); box-shadow: 0 0 10px var(--gold); } .hpill.gold { color: var(--gold-text); border-color: var(--gold-line); }
.hpill.blue .pd { background: var(--blue-2); box-shadow: 0 0 10px var(--blue); } .hpill.blue { color: var(--blue-text); border-color: var(--blue-line); }

.hero-chip {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: clamp(300px, 44vw, 640px);
  z-index: 2;
  pointer-events: none;
}
.hero-chip svg { width: 100%; height: auto; filter: drop-shadow(0 0 56px rgba(46,107,255,0.28)); }
@media (max-width: 1100px) { .hero-chip { width: clamp(280px, 42vw, 480px); right: -2%; } }
@media (max-width: 860px)  { .hero-chip { display: none; } }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-faint); display: flex; flex-direction: column; align-items: center; gap: 9px; text-transform: uppercase; }
.scroll-hint .line { width: 1px; height: 32px; background: linear-gradient(var(--gold), transparent); animation: scrolldrop 2.2s var(--ease) infinite; }
@keyframes scrolldrop { 0%{transform:scaleY(0);transform-origin:top;opacity:0} 30%{opacity:1} 60%{transform:scaleY(1);transform-origin:top} 61%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom;opacity:0} }

/* ============================================================ STRIP */
.strip { border-bottom: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.strip-inner { display: flex; align-items: center; gap: 54px; padding-block: 20px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); white-space: nowrap; width: max-content; animation: marquee 36s linear infinite; }
.strip:hover .strip-inner { animation-play-state: paused; }
.strip-inner span { display: inline-flex; align-items: center; gap: 54px; }
.strip-inner b { color: var(--gold-text); font-weight: 500; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ FLOW input/chip/output */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 60px; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-1); }
.flow-col { padding: 38px 34px; position: relative; }
.flow-col.core { background: radial-gradient(80% 120% at 50% 0%, var(--gold-soft), transparent 70%), var(--bg-2); border-inline: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 250px; }
.flow-col .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 22px; }
.flow-col.core .tag { color: var(--gold-text); }
.flow-list { display: flex; flex-direction: column; gap: 16px; }
.flow-item { display: flex; gap: 14px; align-items: flex-start; }
.flow-item .n { font-family: var(--f-mono); font-size: 12px; color: var(--gold-text); border: 1px solid var(--gold-line); border-radius: 6px; width: 26px; height: 26px; flex: none; display: grid; place-items: center; margin-top: 2px; }
.flow-item .t { font-size: 15.5px; } .flow-item .t b { font-weight: 600; } .flow-item .t small { display: block; color: var(--fg-dim); font-size: 13.5px; }
.core-mark-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.core-mark-img {
  width: 130px;
  height: auto;
  display: block;
}
.flow-col.core h3 { font-size: 25px; } .flow-col.core p { color: var(--fg-dim); font-size: 14px; margin-top: 10px; max-width: 220px; }

/* defs */
.defs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.def { background: var(--bg-1); padding: 28px 26px; transition: background .3s; }
.def:hover { background: var(--bg-2); }
.def h4 { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }
.def p { color: var(--fg-dim); font-size: 14px; margin-top: 12px; }

/* ============================================================ LOOP */
.loop-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 60px; align-items: center; }
.loop-steps { display: flex; flex-direction: column; gap: 12px; }
.loop-step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.loop-step:hover { transform: translateX(4px); }
.loop-step.active { border-color: var(--gold-line); background: var(--bg-2); }
.loop-step .idx { font-family: var(--f-mono); font-size: 13px; color: var(--fg-faint); padding-top: 2px; transition: color .3s; }
.loop-step.active .idx { color: var(--gold-text); }
.loop-step h4 { font-size: 20px; font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.01em; }
.loop-step p { color: var(--fg-dim); font-size: 14.5px; margin-top: 6px; }
.loop-note { margin-top: 26px; font-size: 14px; color: var(--fg-dim); border-left: 2px solid var(--gold); padding-left: 18px; }
.loop-viz { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(70% 70% at 50% 40%, var(--bg-2), var(--bg-1)); position: relative; display: grid; place-items: center; overflow: hidden; padding: 8%; }
.loop-viz svg { width: 100%; height: 100%; overflow: visible; }
.lv-node, .lv-edge, .lv-label { transition: opacity .45s var(--ease), stroke .45s, fill .45s; }

/* ============================================================ PRODUCTS */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.product { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); padding: 40px; overflow: hidden; transition: border-color .4s, transform .4s var(--ease); display: flex; flex-direction: column; }
.product::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: radial-gradient(90% 70% at 80% 0%, var(--accent-soft), transparent 60%); }
.product:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.product:hover::before { opacity: 1; }
.product.p1 { --accent: var(--gold); --accent-text: var(--gold-text); --accent-soft: var(--gold-soft); --accent-line: var(--gold-line); }
.product.p2 { --accent: var(--blue-2); --accent-text: var(--blue-text); --accent-soft: var(--blue-soft); --accent-line: var(--blue-line); }
.product .ptop { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.product .badge { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--accent-line); border-radius: 100px; padding: 6px 13px; }
.product .pno { font-family: var(--f-mono); font-size: 12px; color: var(--fg-faint); }
.product h3 { font-size: 27px; margin-top: 24px; position: relative; }
.product .role { font-family: var(--f-mono); font-size: 13px; color: var(--accent-text); margin-top: 8px; position: relative; }
.product .desc { color: var(--fg-dim); font-size: 15px; margin-top: 18px; position: relative; }
.product .pfeat { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.product .pfeat li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.product .pfeat li::before { content: ""; width: 6px; height: 6px; background: var(--accent); margin-top: 8px; flex: none; transform: rotate(45deg); }
.product .pfoot { margin-top: auto; padding-top: 26px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product .pstatus { font-family: var(--f-mono); font-size: 12px; color: var(--fg-dim); display: flex; align-items: center; gap: 9px; }
.product .pstatus .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent)} 70%{box-shadow:0 0 0 9px transparent} 100%{box-shadow:0 0 0 0 transparent} }

/* ============================================================ MARKETS */
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.market { background: var(--bg-1); padding: 30px 24px 34px; transition: background .35s; position: relative; }
.market:hover { background: var(--bg-2); }
.market .micon { color: var(--gold-text); margin-bottom: 22px; } .market .micon svg { width: 28px; height: 28px; }
.market h4 { font-size: 18px; font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.01em; }
.market p { color: var(--fg-dim); font-size: 13.5px; margin-top: 10px; }
.market .mn { position: absolute; top: 20px; right: 22px; font-family: var(--f-mono); font-size: 11px; color: var(--fg-faint); }

/* ============================================================ CASES */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.filter { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 17px; border-radius: 100px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-dim); transition: all .25s; }
.filter.active { background: var(--gold); color: #141100; border-color: var(--gold); }
.filter:not(.active):hover { color: var(--fg); border-color: var(--fg); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 26px 24px; transition: border-color .3s, transform .35s var(--ease), opacity .35s; }
.case:hover { border-color: var(--line-2); transform: translateY(-3px); }
.case-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.case .sector { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.case .sector.def { color: var(--blue-text); }
.case .ref { font-family: var(--f-mono); font-size: 11px; color: var(--fg-faint); }
.case h4 { font-size: 18px; font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.01em; }
.case p { color: var(--fg-dim); font-size: 14px; margin-top: 12px; }
.case .steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.case .steps i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--fg-dim); border: 1px solid var(--line); border-radius: 5px; padding: 4px 9px; }
.case.hide { display: none; }

/* ============================================================ DÉBOUCHÉS (uses) */
.feat { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(24px, 3.5vw, 48px); margin-top: 48px; align-items: center; }
.feat + .feat { margin-top: clamp(56px, 8vw, 110px); }
.feat.rev > .product { order: 2; }
.feat.rev > .feat-anim { order: 1; }
.feat-anim { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg); }
.feat-anim iframe { width: 100%; height: 100%; border: 0; display: block; }
.product.dual { --accent: var(--gold); --accent-text: var(--gold-text); --accent-soft: var(--gold-soft); --accent-line: var(--gold-line); }
.prod-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link { transition: background .25s, border-color .25s, transform .25s var(--ease); }
.pill-link:hover { transform: translateY(-1px); }
.hpill.gold.pill-link:hover { background: var(--gold-soft); }
.hpill.blue.pill-link:hover { background: var(--blue-soft); }
.uses-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gal-group { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); margin-top: 52px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gal-group + .uses-gallery, .gal-group + .uses-note { margin-top: 22px; }
.gal-group + .uses-note + .uses-gallery { margin-top: 16px; }
.case a.sector, .case a.ref { transition: color .2s; }
.case .sector.dual { color: var(--blue-text); }
.case a.sector:hover, .case a.ref:hover { color: var(--fg); }
.uses-note { font-family: var(--f-mono); font-size: 12px; color: var(--fg-faint); margin-top: 26px; max-width: 660px; }
/* defence gate */
.def-gate { margin-top: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(80% 130% at 50% 0%, var(--blue-soft), transparent 60%), var(--bg-1); padding: clamp(40px, 6vw, 76px); text-align: center; }
.def-gate-inner { max-width: 430px; margin: 0 auto; }
.def-gate .dg-ico { color: var(--blue-text); margin: 0 auto 22px; width: 42px; height: 42px; }
.def-gate .dg-title { font-family: var(--f-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.def-gate-sub { color: var(--fg-dim); font-size: 14.5px; margin-top: 10px; }
.def-gate form { display: flex; gap: 10px; margin-top: 26px; justify-content: center; flex-wrap: wrap; }
.def-gate input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--fg); font-family: var(--f-mono); font-size: 15px; padding: 14px 18px; text-align: center; letter-spacing: 0.08em; width: 260px; max-width: 100%; transition: border-color .2s; }
.def-gate input::placeholder { letter-spacing: 0.08em; opacity: 0.7; }
.def-gate input:focus { outline: none; border-color: var(--blue); }
.def-gate-err { color: #FF6A6A; font-family: var(--f-mono); font-size: 12px; margin-top: 14px; }
.def-gate-req { margin-top: 18px; }
.def-gate-req a { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue-text); border-bottom: 1px solid var(--blue-line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.def-gate-req a:hover { color: var(--fg); border-color: var(--fg); }
#defenseReveal[hidden] { display: none; }

/* ============================================================ TIMELINE (frise) */
.tl { position: relative; margin-top: 60px; --tlp: 0%; }
.tl-row { display: flex; align-items: stretch; position: relative; }
.tl-axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line-2); transform: translateY(-50%); border-radius: 2px; overflow: hidden; }
.tl-fill { position: absolute; left: 0; top: 0; height: 100%; width: var(--tlp, 0%); background: linear-gradient(90deg, var(--gold), var(--blue)); transition: width .15s linear; }
.tl-item { flex: 1 1 0; position: relative; min-width: 0; min-height: 340px; padding: 0 6px; }
.tl-dot { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-1); border: 2px solid var(--line-2); transform: translate(-50%,-50%); z-index: 3; transition: border-color .4s, background .4s, box-shadow .4s; }
.tl-item.in .tl-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.tl-card { position: absolute; left: 50%; width: min(220px, 94%); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 16px 16px; opacity: 0; transform: translateX(-50%) translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); z-index: 2; }
.tl-item.in .tl-card { opacity: 1; transform: translateX(-50%) translateY(0); }
.tl-item.up   .tl-card { bottom: calc(50% + 28px); }
.tl-item.down .tl-card { top: calc(50% + 28px); }
.tl-card::after { content: ""; position: absolute; left: 50%; width: 1px; height: 20px; background: var(--line-2); transform: translateX(-50%); }
.tl-item.up   .tl-card::after { top: 100%; }
.tl-item.down .tl-card::after { bottom: 100%; }
.tl-date { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--gold-text); }
.tl-card h4 { font-size: 16px; font-family: var(--f-sans); font-weight: 600; margin-top: 7px; letter-spacing: -0.01em; }
.tl-card p { color: var(--fg-dim); font-size: 12.5px; line-height: 1.5; margin-top: 8px; }
@media (max-width: 860px) {
  .tl-row { flex-direction: column; align-items: stretch; }
  .tl-axis { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: none; }
  .tl-fill { width: 2px; height: var(--tlp, 0%); background: linear-gradient(180deg, var(--gold), var(--blue)); transition: height .15s linear; }
  .tl-item { flex: 0 0 auto; min-height: 0; padding: 16px 0 16px 34px; }
  .tl-dot { left: 7px; top: 26px; transform: translate(-50%,-50%); }
  .tl-card { position: static; width: 100%; transform: translateY(10px); }
  .tl-item.in .tl-card { transform: translateY(0); }
  .tl-item.up .tl-card, .tl-item.down .tl-card { inset: auto; }
  .tl-card::after { display: none; }
}
@media (max-width: 1080px) { .uses-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .feat { grid-template-columns: 1fr; } .feat.rev > .product { order: 1; } .feat.rev > .feat-anim { order: 2; } }
@media (max-width: 600px)  { .uses-gallery { grid-template-columns: 1fr; } }

/* ============================================================ EVIDENCE */
.evidence { background: var(--bg-1); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 38px 28px; }
.stat .num { font-family: var(--f-display); font-size: clamp(38px, 4.8vw, 58px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .num .slash { color: var(--gold-text); }
.stat .lbl { color: var(--fg-dim); font-size: 13.5px; margin-top: 14px; }
.validate { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: start; }
.validate p { color: var(--fg-dim); font-size: 15px; } .validate p + p { margin-top: 16px; } .validate .vk { color: var(--fg); }

/* compare */
.compare { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 17px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); font-weight: 500; background: var(--bg-2); }
.compare thead th.brx { color: var(--gold-text); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--fg); font-family: var(--f-sans); }
.compare td.brx { background: var(--gold-soft); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.mark-yes { color: var(--gold-text); font-weight: 600; } .mark-no { color: var(--fg-faint); } .mark-mid { color: var(--fg-dim); }
.compare .legend { font-family: var(--f-mono); font-size: 11px; color: var(--fg-faint); padding: 15px 18px; background: var(--bg-1); }

/* concepts (patent 2) */
.concepts { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 56px; }
.concept { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 30px; transition: border-color .3s; }
.concept:hover { border-color: var(--blue-line); }
.concept .cn { font-family: var(--f-mono); font-size: 12px; color: var(--blue-text); }
.concept h4 { font-size: 20px; font-family: var(--f-sans); font-weight: 600; margin-top: 12px; letter-spacing: -0.01em; }
.concept p { color: var(--fg-dim); font-size: 14.5px; margin-top: 12px; }

/* phases */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); padding: 34px; }
.phase.online { border-color: var(--blue-line); background: radial-gradient(90% 70% at 80% 0%, var(--blue-soft), transparent 60%), var(--bg-1); }
.phase .ph { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.phase.online .ph { color: var(--blue-text); }
.phase h4 { font-size: 22px; margin-top: 14px; font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.01em; }
.phase p { color: var(--fg-dim); font-size: 14.5px; margin-top: 14px; }

/* ============================================================ TEAM */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; max-width: 860px; }
.member { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); padding: 34px; transition: border-color .3s; }
.member:hover { border-color: var(--line-2); }
.avatar { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--gold-line); display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--gold-text); background: var(--gold-soft); margin-bottom: 22px; }
.member h4 { font-size: 22px; font-family: var(--f-sans); font-weight: 600; }
.member .role { font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-dim); margin-top: 6px; letter-spacing: 0.03em; }
.member p { color: var(--fg-dim); font-size: 14.5px; margin-top: 16px; }
.award { display: flex; gap: 13px; align-items: flex-start; margin-top: 20px; padding: 15px 17px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); text-decoration: none; transition: border-color .3s, transform .3s; }
.award:hover { border-color: var(--gold); transform: translateY(-1px); }
.award-medal { font-size: 22px; line-height: 1.1; flex: 0 0 auto; }
.award-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.award-title { font-family: var(--f-sans); font-weight: 600; font-size: 13.5px; color: var(--gold-text); letter-spacing: -0.01em; line-height: 1.35; }
.award-sub { font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-dim); line-height: 1.55; }

/* ============================================================ CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,80px); margin-top: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info .ci-row { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info .ci-row .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.contact-info .ci-row .v { font-size: 18px; margin-top: 8px; }
.contact-info .ci-row .v a:hover { color: var(--gold-text); }
.form { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 9px; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--fg); font-family: var(--f-sans); font-size: 15px; padding: 13px 15px; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: var(--f-mono); font-size: 11px; color: var(--fg-faint); margin-top: 14px; }
/* Bouton d'envoi : jamais de débordement quel que soit le libellé/la langue */
.form button[type="submit"] { white-space: normal; line-height: 1.3; text-align: center; }

/* ============================================================ CTA */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(80% 130% at 50% 120%, var(--gold-soft), transparent 60%), var(--bg); }
.cta-inner { text-align: center; max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.cta h2 { font-size: clamp(34px, 5.6vw, 66px); }
.cta p { color: var(--fg-dim); font-size: 18px; margin-top: 22px; }
.cta .cta-row { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 38px; }
.cta .nda { font-family: var(--f-mono); font-size: 12px; color: var(--fg-faint); margin-top: 26px; }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-block: 56px 38px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer .brand .word { font-size: 17px; }
.footer-tag { color: var(--fg-dim); font-size: 14px; max-width: 290px; margin-top: 18px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); font-weight: 500; margin: 0 0 16px; }
.footer-col a, .footer-col span { display: block; color: var(--fg-dim); font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-text); }
.footer-bot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--fg-faint); }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .strip-inner, .scroll-hint .line, .product .pstatus .pulse { animation: none !important; } }

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) { .defs, .markets { grid-template-columns: repeat(2, 1fr); } .cases { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav { height: 100px; gap: 18px; }
  .brand .brand-logo { height: 42px; }
  .mobile-menu { inset: 100px 0 0 0; }
  .hero { padding-top: 100px; }
}
@media (max-width: 900px) {
  .loop-grid, .products, .validate, .team, .phases, .concepts, .contact-grid { grid-template-columns: 1fr; }
  .loop-viz { max-width: 440px; }
  .flow { grid-template-columns: 1fr; }
  .flow-col.core { border-inline: 0; border-block: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .defs, .markets, .cases, .stats { grid-template-columns: 1fr; }
  .compare { overflow-x: auto; } .compare table { min-width: 600px; }
  .footer-top { flex-direction: column; }
  .product { padding: 30px 26px; }
  .nav { height: 66px; gap: 10px; }
  .brand .brand-logo { height: 30px; }
  .mobile-menu { inset: 66px 0 0 0; }
  .hero { padding-top: 66px; }
  .theme-btn { width: 40px; height: 34px; }
  .theme-btn svg { width: 18px; height: 18px; }
  .toggle-group { font-size: 13px; }
  .toggle-group button { padding: 7px 11px; }
}
