/* ==========================================================================
   AR Technology — Industries page styles
   Loaded only on the Industries page template.
   ========================================================================== */

@property --ar-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes arIndAurora { 0%,100% { transform: translateX(-8%) rotate(8deg); opacity:.5; } 50% { transform: translateX(8%) rotate(12deg); opacity:.95; } }
@keyframes arShimmer { to { background-position: 300% center; } }
@keyframes arConicSpin { to { --ar-a: 360deg; } }
@keyframes arEq { 0%,100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
@keyframes arTick { 0%,100% { opacity:.28; } 50% { opacity:1; } }
@keyframes arSweepX { 0% { transform: translateX(-110%); } 100% { transform: translateX(340%); } }
@keyframes arFloatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes arGrowY { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@keyframes arGrowX { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
@keyframes arFlowDash { to { stroke-dashoffset: -300; } }
@keyframes arHoloScan { 0% { top:-20%; } 100% { top:120%; } }
@keyframes arGearSpin { to { transform: rotate(360deg); } }
@keyframes arSway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes arDropFall { 0% { transform: translateY(-120%); opacity:0; } 25% { opacity:1; } 100% { transform: translateY(240%); opacity:0; } }
@keyframes arTrafficCycle {
  0%,32%   { background:#34D399; box-shadow:0 0 12px #34D399; }
  34%,42%  { background:#F5B84D; box-shadow:0 0 12px #F5B84D; }
  44%,100% { background:#EF6B6B; box-shadow:0 0 12px #EF6B6B; }
}
@keyframes arPanelIn { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }

/* ---------- Hero ---------- */
.ar-ind-hero { position:relative; min-height:64vh; display:flex; align-items:center; overflow:hidden;
  background: radial-gradient(1200px 700px at 70% 20%, #0A1B33 0%, #050B18 45%, #030712 100%); }
.ar-ind-hero .ar-hero-canvas { position:absolute; inset:0; width:100%; height:100%; }
.ar-ind-hero-inner { position:relative; z-index:2; max-width:900px; margin:0 auto; padding:170px 28px 80px; text-align:center; }
.ar-ind-hero h1 { font-family:var(--font-head); font-weight:700; font-size:clamp(34px,5vw,58px); line-height:1.1; letter-spacing:-.02em; margin:26px 0 0; }
.ar-ind-aurora { position:absolute; top:-40%; height:95%; filter:blur(34px); pointer-events:none; }
.ar-ind-aurora.ar-aur-1 { left:14%; width:300px; background:linear-gradient(180deg, transparent, rgba(56,225,255,.20), transparent); animation:arIndAurora 12s ease-in-out infinite; }
.ar-ind-aurora.ar-aur-2 { right:14%; width:270px; background:linear-gradient(180deg, transparent, rgba(52,211,153,.16), transparent); animation:arIndAurora 15s ease-in-out infinite reverse; }
.ar-ind-grid { position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(56,225,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,225,255,.06) 1px, transparent 1px);
  background-size:64px 64px; -webkit-mask-image:radial-gradient(1000px 600px at 50% 40%, black, transparent);
  mask-image:radial-gradient(1000px 600px at 50% 40%, black, transparent); animation:arGrid 10s linear infinite; }
.ar-ind-veil { position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(3,7,18,.35) 0%, rgba(3,7,18,.1) 40%, rgba(3,7,18,.92) 100%); }
.ar-shimmer-text { background:linear-gradient(120deg, #EEF4FB, #38E1FF, #2E9BFF, #EEF4FB); background-size:300% auto;
  -webkit-background-clip:text; background-clip:text; color:transparent; animation:arShimmer 7s linear infinite; }
.ar-shimmer-green { background-image:linear-gradient(120deg, #EEF4FB, #38E1FF, #34D399, #EEF4FB); }
.ar-pill { display:inline-flex; align-items:center; gap:10px; border:1px solid rgba(56,225,255,.3); background:rgba(56,225,255,.06);
  border-radius:100px; padding:7px 16px; font-family:var(--font-mono); font-size:12px; letter-spacing:1.6px; color:var(--cyan); }
.ar-pill-dot { width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 10px var(--teal); animation:arBlink 2.2s ease-in-out infinite; }

/* ---------- Radiant border ---------- */
.ar-radiant { position:relative; }
.ar-radiant::before { content:''; position:absolute; inset:-1px; border-radius:19px; padding:1px; pointer-events:none;
  background:conic-gradient(from var(--ar-a), transparent 20%, var(--c1), var(--c2), transparent 80%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask-composite:exclude; opacity:0; transition:opacity .35s ease; }
.ar-radiant:hover::before { opacity:1; animation:arConicSpin 4s linear infinite; }

/* ---------- Sector cards ---------- */
.ar-sector-card { position:relative; overflow:hidden; cursor:pointer; text-align:start; color:var(--text); border-radius:18px; padding:26px;
  display:flex; flex-direction:column; gap:12px; backdrop-filter:blur(8px); font:inherit;
  border:1px solid var(--cardborder); background:linear-gradient(170deg, var(--cardbg), rgba(5,11,24,.6));
  transition:border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.ar-sector-card:hover { border-color:var(--glow); transform:translateY(-8px); box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 34px var(--soft); }
.ar-sector-halo { position:absolute; inset-inline-end:-36px; top:-36px; width:140px; height:140px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, var(--soft), transparent 70%); }
.ar-sector-icon { position:relative; font-size:30px; }
.ar-anim-float { animation:arFloatY 6.5s ease-in-out infinite; }
.ar-anim-sway { display:inline-block; transform-origin:bottom center; animation:arSway 4s ease-in-out infinite; }
.ar-sector-name { position:relative; font-family:var(--font-head); font-size:19px; font-weight:600; }
.ar-sector-tag { position:relative; color:var(--text3); font-size:13.5px; line-height:1.6; flex:1; }
.ar-sector-cta { position:relative; font-family:var(--font-head); font-size:13px; font-weight:600; color:var(--acc); }
.ar-sector-viz { position:relative; height:34px; border-radius:9px; overflow:hidden; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.02); }
.ar-viz-sweep { position:absolute; inset-inline-start:0; top:0; bottom:0; width:30px;
  background:linear-gradient(90deg, transparent, var(--soft), transparent); animation:arSweepX 3.4s linear infinite; animation-delay:var(--d); }
.ar-viz-eq { display:flex; align-items:flex-end; gap:3px; height:16px; }
.ar-viz-eq i { width:3px; height:100%; border-radius:2px; background:var(--acc); transform-origin:bottom; animation:arEq 1.2s ease-in-out infinite; }

/* ---------- Detail section shell ---------- */
.ar-ind-detail { position:relative; padding-top:80px; padding-bottom:100px; border-top:1px solid rgba(255,255,255,.05); overflow:hidden; }
.ar-detail-halo { position:absolute; inset-inline-end:-8%; top:10%; width:460px; height:460px; border-radius:50%; filter:blur(20px);
  pointer-events:none; background:radial-gradient(circle, var(--halo, rgba(56,225,255,.12)), transparent 68%); transition:background .6s ease; }

/* Tab rail */
.ar-tab-rail { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.ar-tab { cursor:pointer; display:inline-flex; align-items:center; gap:9px; border-radius:100px; font:inherit;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.03); color:var(--text2);
  font-family:var(--font-head); font-size:13.5px; font-weight:600; padding:11px 20px;
  transition:border-color .3s ease, background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease; }
.ar-tab:hover { transform:translateY(-2px); }
.ar-tab.is-active { border-color:var(--acc); background:var(--soft); color:var(--acc); box-shadow:0 0 22px var(--soft); }
.ar-tab-icon { font-size:15px; }

/* Panels */
.ar-sector-panel { display:none; margin-top:56px; }
.ar-sector-panel.is-active { display:block; animation:arPanelIn .55s cubic-bezier(.2,.8,.3,1) both; }
.ar-detail-split { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:56px; align-items:center; }
.ar-detail-icon { position:relative; width:58px; height:58px; border-radius:16px; display:grid; place-items:center; font-size:26px;
  background:var(--ibg); border:1px solid var(--acc); box-shadow:0 0 26px var(--soft); }
.ar-detail-icon-ring { position:absolute; inset:-6px; border:1px solid var(--acc); border-radius:19px; opacity:.6; animation:arRing 3s ease-out infinite; }
.ar-detail-code { font-family:var(--font-mono); font-size:12px; letter-spacing:2px; color:var(--acc); margin-top:18px; }
.ar-detail-copy .ar-h2 { margin-top:12px; }
.ar-detail-lead { color:var(--text2); margin-top:18px; max-width:520px; line-height:1.7; }
.ar-detail-actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:30px; }
.ar-btn-sector { text-decoration:none; font-family:var(--font-head); font-weight:600; font-size:15px; color:#04101C;
  background:linear-gradient(120deg, var(--acc), var(--acc2)); padding:15px 28px; border-radius:12px;
  box-shadow:0 0 28px var(--soft); transition:transform .2s ease; }
.ar-btn-sector:hover { transform:translateY(-3px); color:#04101C; }

/* ---------- Holographic panel ---------- */
.ar-holo-panel { position:relative; min-height:340px; border-radius:20px; overflow:hidden; padding:22px; backdrop-filter:blur(10px);
  border:1px solid var(--acc); background:rgba(5,11,24,.72);
  box-shadow:0 30px 70px rgba(0,0,0,.5), 0 0 40px var(--soft); animation:arFloatY 8s ease-in-out infinite; }
.ar-holo-scan { position:absolute; left:0; right:0; height:54px; pointer-events:none;
  background:linear-gradient(180deg, transparent, var(--soft), transparent); animation:arHoloScan 6s linear infinite; }
.ar-holo-top { position:relative; display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.ar-holo-label { font-family:var(--font-mono); font-size:10.5px; color:var(--acc); letter-spacing:1.5px; }
.ar-holo-live { width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal); animation:arBlink 1.8s ease-in-out infinite; }
.ar-holo-stats { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px; }
.ar-holo-stat { border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:12px; text-align:center; background:rgba(255,255,255,.02); }
.ar-holo-stat-v { font-family:var(--font-mono); font-size:17px; color:var(--acc); }
.ar-holo-stat-l { font-family:var(--font-mono); font-size:9px; color:var(--text3); margin-top:4px; letter-spacing:1px; }

/* --- viz: industries --- */
.ar-viz-industry { height:210px; display:flex; flex-direction:column; gap:14px; }
.ar-ind-gears { display:flex; gap:10px; align-items:center; }
.ar-gear { display:inline-block; }
.ar-gear-1 { font-size:22px; animation:arGearSpin 6s linear infinite; }
.ar-gear-2 { font-size:17px; animation:arGearSpin 4s linear infinite reverse; }
.ar-gear-line { flex:1; height:1px; background:linear-gradient(90deg, var(--acc), transparent); }
.ar-gear-label { font-family:var(--font-mono); font-size:9.5px; color:var(--acc); }
.ar-ind-svg { width:100%; height:90px; }
.ar-ind-line { stroke-dasharray:700; stroke-dashoffset:700; animation:arDash 2.6s ease forwards; }
.ar-ind-line-2 { opacity:.65; animation-delay:.4s; }
.ar-ind-cells { display:grid; grid-template-columns:repeat(8,1fr); gap:6px; }
.ar-ind-cell { aspect-ratio:1; border-radius:5px; border:1px solid rgba(56,225,255,.28); background:rgba(56,225,255,.05); animation:arTick 2.4s ease-in-out infinite; }
.ar-ind-cell.is-warn { border-color:rgba(245,184,77,.5); background:rgba(245,184,77,.08); }

/* --- viz: utilities --- */
.ar-viz-utilities { height:210px; display:flex; flex-direction:column; gap:14px; }
.ar-util-tank { position:relative; height:78px; border-radius:10px; overflow:hidden;
  border:1px solid rgba(45,212,191,.2); background:rgba(45,212,191,.04); }
.ar-drop { position:absolute; top:0; width:5px; height:12px; border-radius:0 0 3px 3px;
  background:linear-gradient(180deg, #2DD4BF, rgba(45,212,191,.2)); animation:arDropFall 2.6s linear infinite; }
.ar-leak-badge { position:absolute; inset-inline-end:10px; bottom:8px; display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:9.5px; color:var(--amber);
  border:1px solid rgba(245,184,77,.4); border-radius:6px; padding:4px 8px; animation:arBlink 1.6s ease-in-out infinite; }
.ar-util-bars { display:flex; align-items:flex-end; gap:5px; height:74px; }
.ar-util-bars i { flex:1; border-radius:3px 3px 0 0; transform-origin:bottom;
  background:linear-gradient(180deg, var(--acc), rgba(45,212,191,.08)); animation:arGrowY 1.3s cubic-bezier(.2,.8,.3,1) both; }
.ar-util-caption { font-family:var(--font-mono); font-size:9.5px; color:var(--text3); letter-spacing:1px; }

/* --- viz: cities --- */
.ar-viz-cities { position:relative; height:210px; border-radius:10px; overflow:hidden;
  background:linear-gradient(180deg, rgba(46,155,255,.06), transparent); }
.ar-skyline { position:absolute; inset-inline:0; bottom:34px; display:flex; align-items:flex-end; gap:5px; height:120px; padding:0 6px; }
.ar-building { position:relative; flex:1; border-radius:3px 3px 0 0; border:1px solid rgba(46,155,255,.3); background:rgba(46,155,255,.06); }
.ar-building i { position:absolute; left:50%; top:-9px; margin-left:-2.5px; width:5px; height:5px; border-radius:50%;
  background:var(--acc); box-shadow:0 0 8px var(--acc); animation:arTick 2.2s ease-in-out infinite; }
.ar-street { position:absolute; inset-inline:0; bottom:0; height:34px; display:flex; align-items:center; justify-content:space-between;
  padding:0 12px; border-top:1px solid rgba(255,255,255,.08); }
.ar-street-left { display:inline-flex; gap:6px; align-items:center; }
.ar-traffic-light { width:9px; height:9px; border-radius:50%; animation:arTrafficCycle 5s linear infinite; }
.ar-street-label { font-family:var(--font-mono); font-size:9px; color:var(--text3); }
.ar-street-svg { width:130px; height:12px; }
.ar-street-path { animation:arFlowDash 3.5s linear infinite; }

/* --- viz: buildings --- */
.ar-viz-buildings { height:210px; display:flex; flex-direction:column; gap:8px; justify-content:center; }
.ar-floor-row { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:9px;
  border:1px solid rgba(167,139,250,.22); background:rgba(167,139,250,.05);
  font-family:var(--font-mono); font-size:9.5px; letter-spacing:1px; color:#C4D3E5; animation:arTick 3s ease-in-out infinite; }
.ar-floor-row em { font-style:normal; color:var(--acc); min-width:30px; }
.ar-floor-row b { color:var(--acc); font-weight:400; }
.ar-floor-bar { position:relative; flex:1; height:5px; border-radius:3px; background:rgba(255,255,255,.07); overflow:hidden; }
.ar-floor-bar i { position:absolute; inset-inline-start:0; top:0; bottom:0; border-radius:3px;
  background:linear-gradient(90deg, var(--acc), var(--acc2)); transform-origin:left;
  animation:arGrowX 1.3s cubic-bezier(.2,.8,.3,1) both; }
[dir="rtl"] .ar-floor-bar i { transform-origin:right; }

/* --- viz: agriculture --- */
.ar-viz-agri { height:210px; display:flex; flex-direction:column; gap:12px; }
.ar-field { position:relative; height:96px; display:flex; align-items:flex-end; justify-content:space-around; border-bottom:1px solid rgba(52,211,153,.3); }
.ar-crop { transform-origin:bottom center; animation:arSway 3.4s ease-in-out infinite; }
.ar-irrigation-badge { position:absolute; inset-inline-start:12px; top:6px; display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:9.5px; color:var(--acc);
  border:1px solid rgba(52,211,153,.4); border-radius:6px; padding:4px 8px; }
.ar-irrigation-badge i { width:6px; height:6px; border-radius:50%; background:var(--acc); box-shadow:0 0 8px var(--acc); animation:arBlink 1.8s ease-in-out infinite; }
.ar-soil-rows { display:flex; flex-direction:column; gap:6px; }
.ar-soil-row { display:flex; align-items:center; gap:10px; font-family:var(--font-mono); font-size:9.5px; color:var(--text3); }
.ar-soil-row em { font-style:normal; min-width:54px; color:var(--acc); }
.ar-soil-row b { font-weight:400; }
.ar-soil-bar { position:relative; flex:1; height:6px; border-radius:3px; background:rgba(255,255,255,.07); overflow:hidden; }
.ar-soil-bar i { position:absolute; inset-inline-start:0; top:0; bottom:0; border-radius:3px;
  background:linear-gradient(90deg, var(--acc), #2DD4BF); transform-origin:left;
  animation:arGrowX 1.4s cubic-bezier(.2,.8,.3,1) both; }
[dir="rtl"] .ar-soil-bar i { transform-origin:right; }

/* ---------- Capabilities / benefits ---------- */
.ar-cap-split { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:40px; margin-top:70px; }
.ar-cap-label { font-family:var(--font-mono); font-size:11.5px; letter-spacing:2.2px; color:var(--acc); }
.ar-ben-label { font-family:var(--font-mono); font-size:11.5px; letter-spacing:2.2px; color:var(--teal); }
.ar-cap-list { display:flex; flex-direction:column; gap:12px; margin-top:20px; }
.ar-cap-card { border-radius:14px; padding:20px; display:flex; gap:15px; align-items:flex-start;
  border:1px solid rgba(255,255,255,.09); background:linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition:border-color .3s ease, transform .3s ease; }
.ar-cap-card:hover { border-color:var(--acc); transform:translateX(5px); }
[dir="rtl"] .ar-cap-card:hover { transform:translateX(-5px); }
.ar-cap-icon { width:42px; height:42px; flex-shrink:0; border-radius:11px; background:var(--ibg); border:1px solid var(--acc);
  display:grid; place-items:center; font-size:18px; }
.ar-cap-title { display:block; font-family:var(--font-head); font-size:16px; font-weight:600; }
.ar-cap-desc { display:block; color:var(--text3); font-size:13.5px; line-height:1.6; margin-top:5px; }
.ar-ben-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-top:20px; }
.ar-ben-card { border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:7px;
  border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.03); transition:border-color .3s ease; }
.ar-ben-card:hover { border-color:rgba(45,212,191,.5); }
.ar-ben-num { font-family:var(--font-mono); font-size:10.5px; color:var(--teal); }
.ar-ben-title { font-family:var(--font-head); font-size:14.5px; font-weight:600; line-height:1.4; }
.ar-usecase { margin-top:22px; border-radius:14px; border:1px dashed var(--acc); background:var(--soft); padding:20px; }
.ar-usecase-label { font-family:var(--font-mono); font-size:10px; letter-spacing:1.8px; color:var(--acc); }
.ar-usecase-body { color:#C4D3E5; font-size:14px; line-height:1.65; margin-top:8px; }

/* ---------- Matrix ---------- */
.ar-matrix-wrap { margin-top:44px; overflow-x:auto; border-radius:18px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.025); }
.ar-matrix { width:100%; border-collapse:collapse; min-width:760px; }
.ar-matrix th { padding:16px 12px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:1.2px; font-weight:500;
  border-bottom:1px solid rgba(255,255,255,.09); }
.ar-matrix-head-first { text-align:start; padding-inline:20px !important; color:var(--text3); letter-spacing:1.6px !important; }
.ar-matrix-row-label { padding:15px 20px; font-family:var(--font-head); font-size:14px; font-weight:600; color:var(--text);
  border-bottom:1px solid rgba(255,255,255,.05); text-align:start; }
.ar-matrix-cell { padding:15px 12px; text-align:center; border-bottom:1px solid rgba(255,255,255,.05); font-size:15px; }
.ar-matrix-cell.is-core { color:var(--teal); }
.ar-matrix-cell.is-addon { color:var(--text3); }
.ar-matrix-cell.is-none { color:var(--dim); }
.ar-matrix tbody tr { transition:background .25s ease; }
.ar-matrix tbody tr:hover { background:rgba(56,225,255,.04); }
.ar-matrix-key { margin-top:16px; font-family:var(--font-mono); font-size:10px; color:var(--dim); letter-spacing:1px; text-align:center; }

/* ---------- CTA ---------- */
.ar-cta-ripple { position:absolute; left:50%; bottom:6%; width:420px; height:420px; margin-inline-start:-210px;
  border:1px solid rgba(56,225,255,.3); border-radius:50%; pointer-events:none; animation:arRing 6s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .ar-ind-hero *, .ar-sector-viz *, .ar-holo-panel, .ar-holo-panel *, .ar-cta-ripple,
  .ar-radiant::before, .ar-detail-icon-ring, .ar-sector-icon, .ar-anim-float, .ar-anim-sway { animation:none !important; }
  .ar-sector-panel.is-active { animation:none !important; }
  .ar-ind-line, .ar-street-path, .ar-bill-path { stroke-dashoffset:0 !important; }
  .ar-floor-bar i, .ar-soil-bar i, .ar-util-bars i { animation:none !important; transform:none !important; }
}
