/* ===== Enlight v2: interactive layer on top of style.css ===== */
.v2 section[id]{ scroll-margin-top: 84px; }

/* Preview flag (removed when the design goes live) */
.v2-flag{
  position:fixed; left:14px; bottom:14px; z-index:1200; font-size:.72rem; font-weight:700; letter-spacing:1px;
  padding:8px 14px; border-radius:999px; background:rgba(5,5,4,.85); border:1px solid var(--gold-dim); color:var(--gold-light);
  backdrop-filter:blur(8px); pointer-events:none;
}

/* ===== Hero: the cursor is a light ===== */
@property --r { syntax:'<length>'; inherits:false; initial-value:0px; }
.v2 .hero-video{ opacity:1; }
.v2 .hero-bg::after{ background: linear-gradient(180deg, rgba(5,5,4,.35), rgba(5,5,4,.05) 40%, var(--black) 100%); }
.v2 .hero-blob{ opacity:.18; }
.hero-dark{
  position:absolute; inset:0; background:var(--black); opacity:.96; pointer-events:none;
  --lx:68%; --ly:42%; --r:0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), transparent 0, transparent 22%, rgba(0,0,0,.55) 62%, #000 100%);
          mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), transparent 0, transparent 22%, rgba(0,0,0,.55) 62%, #000 100%);
  transition: --r 1.6s var(--ease) .5s, opacity 1.4s var(--ease);
}
.hero.ready .hero-dark{ --r:300px; }
.hero.lit .hero-dark{ opacity:0; }
.v2 .hero-title{ text-shadow: 0 4px 30px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.6); }
.v2 .hero-sub{ color:#d6d1c2; text-shadow: 0 2px 16px rgba(0,0,0,.9); }

.rotator{ display:inline-block; }
.rotator.out{ animation: rotOut .45s var(--ease) forwards; }
.rotator.in{ animation: rotIn .6s var(--ease) forwards; }
@keyframes rotOut{ to{ opacity:0; transform:translateY(-.3em); filter:blur(6px); } }
@keyframes rotIn{ from{ opacity:0; transform:translateY(.3em); filter:blur(6px); } to{ opacity:1; transform:none; filter:none; } }

.light-switch{
  position:absolute; z-index:3; bottom:38px; right:max(28px, calc((100vw - var(--container)) / 2 + 28px));
  display:flex; align-items:center; gap:10px; padding:11px 18px 11px 13px; border-radius:999px;
  border:1px solid var(--gold-dim); background:rgba(5,5,4,.6); backdrop-filter:blur(8px);
  font-size:.8rem; font-weight:700; color:var(--gold-light); transition: background .3s, color .3s, box-shadow .3s, transform .2s ease-out;
}
.light-switch svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.light-switch:hover{ box-shadow:0 0 30px rgba(212,175,55,.45); }
.light-switch[aria-pressed="true"]{ background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:#14110a; border-color:transparent; box-shadow:0 0 40px rgba(212,175,55,.6); }

/* ===== Agent demo ===== */
.demo{ padding:120px 0 110px; position:relative; }
.demo::before{ content:''; position:absolute; inset:0; background:radial-gradient(700px circle at 78% 45%, rgba(212,175,55,.09), transparent 70%); pointer-events:none; }
.demo-grid{ position:relative; display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:center; }
.demo-scenarios{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:30px; }
.demo-sc{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; border:1px solid var(--line);
  background:var(--black-2); text-align:left; font-weight:600; font-size:.9rem; transition:all .3s var(--ease);
}
.demo-sc svg{ flex:0 0 22px; width:22px; height:22px; stroke:var(--gold); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.demo-sc:hover{ border-color:var(--gold-dim); transform:translateY(-2px); }
.demo-sc.on{ background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:#14110a; border-color:transparent; }
.demo-sc.on svg{ stroke:#14110a; }
.demo-note{ margin-top:22px; font-size:.78rem; color:var(--muted); opacity:.85; }

.demo-stage{ display:grid; grid-template-columns:minmax(0,300px) 1fr; gap:26px; align-items:center; }
.phone{
  height:560px; display:flex; flex-direction:column; border-radius:38px; border:1px solid var(--gold-dim); background:#0a0908; padding:12px;
  box-shadow:0 40px 90px -40px rgba(212,175,55,.5), inset 0 0 0 5px #131009;
}
.phone-top{ display:flex; align-items:center; gap:10px; padding:10px 10px 12px; border-bottom:1px solid var(--line); }
.phone-avatar{ width:36px; height:36px; border-radius:50%; overflow:hidden; background:#000; border:1px solid var(--gold-dim); flex:0 0 36px; }
.phone-avatar img{ width:100%; height:100%; object-fit:cover; transform:scale(1.35); }
.phone-top b{ display:block; font-size:.88rem; }
.phone-top small{ display:flex; align-items:center; gap:6px; color:#8fe6ad; font-size:.7rem; }
.phone-top small i{ width:6px; height:6px; border-radius:50%; background:#5bd68a; box-shadow:0 0 8px #5bd68a; }
.chat{ flex:1; overflow-y:auto; padding:16px 8px; display:flex; flex-direction:column; gap:10px; scrollbar-width:none; }
.chat::-webkit-scrollbar{ display:none; }
.msg{ max-width:86%; padding:10px 13px; border-radius:16px; font-size:.84rem; line-height:1.42; animation:msgIn .45s var(--ease) both; }
@keyframes msgIn{ from{ opacity:0; transform:translateY(12px) scale(.97); } to{ opacity:1; transform:none; } }
.msg.user{ align-self:flex-end; background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:#14110a; border-bottom-right-radius:5px; font-weight:500; }
.msg.agent{ align-self:flex-start; background:var(--black-3); border:1px solid var(--line); border-bottom-left-radius:5px; }
.msg.typing{ display:flex; gap:5px; padding:14px; }
.msg.typing i{ width:6px; height:6px; border-radius:50%; background:var(--gold); animation:typing 1.1s infinite; }
.msg.typing i:nth-child(2){ animation-delay:.18s; } .msg.typing i:nth-child(3){ animation-delay:.36s; }
@keyframes typing{ 0%,60%,100%{ opacity:.25; transform:none; } 30%{ opacity:1; transform:translateY(-4px); } }
.chat-input{ padding:10px 6px 6px; border-top:1px solid var(--line); min-height:74px; display:flex; align-items:center; }
.send-chip{
  width:100%; display:flex; align-items:center; gap:10px; text-align:left; padding:10px 10px 10px 14px; border-radius:16px;
  border:1px dashed var(--gold-dim); background:rgba(212,175,55,.07); font-size:.8rem; line-height:1.35; color:var(--white);
  animation:chipPulse 1.9s ease-in-out infinite; transition:background .25s, border-color .25s;
}
.send-chip:hover{ background:rgba(212,175,55,.16); border-color:var(--gold); }
.send-chip small{ display:block; color:var(--gold); font-size:.64rem; letter-spacing:1px; text-transform:uppercase; font-weight:800; margin-bottom:2px; }
.send-chip .arrow{ margin-left:auto; flex:0 0 32px; height:32px; border-radius:50%; background:var(--gold); color:#14110a; display:flex; align-items:center; justify-content:center; font-weight:800; }
@keyframes chipPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(212,175,55,.35); } 50%{ box-shadow:0 0 0 9px rgba(212,175,55,0); } }

.systems-col .eyebrow{ margin-bottom:16px; }
.systems{ display:flex; flex-direction:column; gap:14px; }
.sys{
  position:relative; overflow:hidden; display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:16px;
  border:1px solid var(--line); background:var(--black-2); opacity:.5; transition:opacity .6s, border-color .6s, box-shadow .6s;
}
.sys .ic{ flex:0 0 42px; height:42px; border-radius:12px; background:rgba(212,175,55,.09); display:flex; align-items:center; justify-content:center; }
.sys .ic svg{ width:21px; height:21px; stroke:var(--gold); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sys b{ display:block; font-size:.9rem; }
.sys span.st{ font-size:.8rem; color:var(--muted); transition:color .5s; }
.sys .check{ margin-left:auto; flex:0 0 24px; height:24px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-style:normal; font-size:.8rem; font-weight:800; color:transparent; transition:all .4s; }
.sys.on{ opacity:1; border-color:var(--gold-dim); box-shadow:0 0 44px -14px rgba(212,175,55,.7); }
.sys.on span.st{ color:var(--gold-light); }
.sys.on .check{ background:#5bd68a; border-color:#5bd68a; color:#07130b; }
.sys.flash::after{ content:''; position:absolute; inset:0; background:linear-gradient(100deg, transparent 30%, rgba(212,175,55,.28) 50%, transparent 70%); transform:translateX(-100%); animation:shimmer 1s 1; }
.demo-end{ display:none; margin-top:16px; padding:20px; border-radius:16px; border:1px solid var(--gold-dim); background:linear-gradient(160deg,#1a160c,var(--black-2)); }
.demo-end.show{ display:block; animation:msgIn .6s var(--ease) both; }
.demo-end p{ font-size:.95rem; margin-bottom:14px; }
.demo-end-actions{ display:flex; flex-wrap:wrap; gap:10px; }
.demo-end .btn{ padding:11px 20px; font-size:.85rem; }

/* ===== Calculator ===== */
.calc{ padding:110px 0; background:var(--black-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.calc-grid{ margin-top:56px; display:grid; grid-template-columns:1.05fr .95fr; gap:34px; align-items:stretch; }
.calc-controls{ background:var(--black-3); border:1px solid var(--line); border-radius:22px; padding:34px; display:flex; flex-direction:column; justify-content:space-between; gap:28px; }
.calc-row label{ display:flex; justify-content:space-between; align-items:baseline; gap:14px; font-size:.9rem; color:var(--muted); font-weight:600; margin-bottom:14px; }
.calc-row output{ font-family:var(--serif); font-size:1.55rem; color:var(--gold-light); white-space:nowrap; }
.rng{ -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:6px; outline:none; cursor:pointer;
  background:linear-gradient(90deg, var(--gold) var(--p,50%), rgba(212,175,55,.16) var(--p,50%)); }
.rng::-webkit-slider-thumb{ -webkit-appearance:none; width:26px; height:26px; border-radius:50%; background:var(--gold-light); border:4px solid #14110a; box-shadow:0 0 0 1px var(--gold), 0 0 18px rgba(212,175,55,.65); cursor:grab; transition:transform .2s; }
.rng::-webkit-slider-thumb:active{ transform:scale(1.18); cursor:grabbing; }
.rng::-moz-range-thumb{ width:20px; height:20px; border-radius:50%; background:var(--gold-light); border:4px solid #14110a; box-shadow:0 0 0 1px var(--gold), 0 0 18px rgba(212,175,55,.65); cursor:grab; }
.rng:focus-visible{ box-shadow:0 0 0 3px rgba(212,175,55,.35); }
.calc-result{
  border-radius:22px; border:1px solid var(--gold-dim); padding:38px 34px; display:flex; flex-direction:column; justify-content:center; gap:22px;
  background:radial-gradient(520px circle at 85% 0%, rgba(212,175,55,.2), transparent 60%), linear-gradient(160deg,#1a160c,var(--black-2));
}
.calc-label{ font-size:.74rem; letter-spacing:2px; text-transform:uppercase; color:var(--muted); font-weight:700; margin-bottom:6px; }
.calc-big{ font-family:var(--serif); font-size:clamp(3.2rem,6.5vw,5.2rem); line-height:1; color:var(--gold); font-variant-numeric:tabular-nums; }
.calc-two{ display:grid; grid-template-columns:1fr 1fr; gap:18px; padding-top:22px; border-top:1px solid var(--line); }
.calc-mid{ font-family:var(--serif); font-size:1.9rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.calc-note{ font-size:.78rem; color:var(--muted); }
.calc-result .btn{ align-self:flex-start; }

/* ===== Industry explorer ===== */
.v2 .industries{ padding-bottom:60px; }
.v2 .ind-grid{ margin-top:44px; height:380px; }
.v2 .ind-tile{ cursor:pointer; outline:none; }
.v2 .ind-tile:hover{ flex:1.5; }
.v2 .ind-tile.active{ flex:2.6; border-color:var(--gold); box-shadow:0 0 50px -18px rgba(212,175,55,.7); }
.v2 .ind-tile.active::before{ opacity:.95; transform:scale(1.06); }
.v2 .ind-tile:focus-visible{ border-color:var(--gold-light); }
.ind-detail{
  margin-top:18px; display:grid; grid-template-columns:1.25fr .75fr; gap:36px; align-items:center;
  border:1px solid var(--line); border-radius:20px; background:var(--black-2); padding:30px 34px;
}
.ind-detail.swap{ animation:msgIn .5s var(--ease) both; }
.ind-detail .eyebrow{ font-size:.7rem; margin-bottom:8px; }
.ind-detail h3{ font-family:var(--serif); font-weight:400; font-size:1.9rem; }
.ind-detail ul{ display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.ind-detail li{ display:flex; gap:12px; align-items:flex-start; font-size:.98rem; }
.ind-detail li::before{ content:''; flex:0 0 8px; height:8px; margin-top:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 10px var(--gold); }
.ind-related{ display:flex; flex-direction:column; gap:10px; }
.ind-rel{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; border-radius:12px; border:1px solid var(--line); font-size:.9rem; font-weight:600; transition:border-color .3s, color .3s, transform .3s var(--ease); }
.ind-rel small{ display:block; color:var(--muted); font-size:.72rem; font-weight:500; margin-top:2px; }
.ind-rel:hover{ border-color:var(--gold); color:var(--gold-light); transform:translateX(4px); }
.ind-rel .go{ color:var(--gold); }

/* ===== Mobile sticky call to action ===== */
.sticky-cta{ display:none; }

@media (max-width:980px){
  .demo-grid{ grid-template-columns:1fr; gap:40px; }
  .calc-grid{ grid-template-columns:1fr; }
  .ind-detail{ grid-template-columns:1fr; gap:24px; }
}
@media (max-width:720px){
  .v2-flag{ display:none; }
  .light-switch{ display:none; }
  .demo{ padding:90px 0 80px; }
  .demo-stage{ grid-template-columns:1fr; }
  .phone{ height:500px; width:100%; max-width:340px; margin:0 auto; }
  .calc{ padding:90px 0; }
  .calc-controls, .calc-result{ padding:26px 22px; }
  .calc-two{ grid-template-columns:1fr; }
  .calc-result .btn{ align-self:stretch; }
  .v2 .ind-grid{ flex-direction:row; height:190px; overflow-x:auto; scroll-snap-type:x mandatory; margin-left:-28px; margin-right:-28px; padding:0 28px; scrollbar-width:none; }
  .v2 .ind-grid::-webkit-scrollbar{ display:none; }
  .v2 .ind-tile, .v2 .ind-tile:hover, .v2 .ind-tile.active{ flex:0 0 62vw; min-height:0; scroll-snap-align:center; }
  .ind-detail{ padding:24px 22px; }
  .sticky-cta{ display:block; position:fixed; left:12px; right:12px; bottom:12px; z-index:850; transform:translateY(160%); transition:transform .5s var(--ease); }
  .sticky-cta.show{ transform:none; }
  .sticky-cta .btn{ width:100%; box-shadow:0 14px 40px -8px rgba(0,0,0,.95); }
}
@media (prefers-reduced-motion:reduce){
  .rotator.in, .rotator.out, .send-chip, .msg{ animation:none; }
  .hero-dark{ transition:none; }
}
