/* ═══════════════════════════════════════════════════════
   PLATFORM 3D & AR — platform-3d-ar.css
   Hero controlled by hero.css.
   ═══════════════════════════════════════════════════════ */

/* BUTTONS */
.btn-primary {
  display:inline-flex;align-items:center;font-family:var(--f-sans);
  font-size:13.5px;font-weight:500;letter-spacing:-.01em;
  padding:11px 28px;border-radius:var(--r-sm);
  background:var(--navy);color:#fff;border:none;
  box-shadow:0 1px 2px rgba(12,31,61,.2),0 4px 16px rgba(12,31,61,.16);
  transition:background .2s,transform .1s;text-decoration:none;line-height:1;min-height:44px;--amber:#f59e0b;}
.btn-primary:hover{background:var(--navy-mid);--amber:#f59e0b;}.btn-primary:active{transform:scale(.98)}
.btn-white {
  display:inline-flex;align-items:center;font-family:var(--f-sans);
  font-size:13.5px;font-weight:500;letter-spacing:-.01em;
  padding:12px 28px;border-radius:var(--r-sm);
  background:#fff;color:var(--navy);border:none;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  transition:opacity .18s,transform .1s;text-decoration:none;line-height:1;min-height:44px;
}
.btn-white:hover{opacity:.93}.btn-white:active{transform:scale(.98)}

/* SECTION HEADER */
.section-header{margin-bottom:44px}
.section-tag{font-family:var(--f-mono);font-size:9px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--amber);display:block;margin-bottom:12px}
.section-tag--light{color:var(--amber)}
.section-header h2{font-family:var(--f-serif);font-weight:400;font-size:clamp(28px,3.2vw,42px);line-height:1.1;letter-spacing:-.02em;color:var(--ink-900);margin-bottom:14px}
.section-header p{font-size:14px;font-weight:300;line-height:1.6;color:var(--ink-500);max-width:480px}

/* CODE BLOCKS */
.threed-code-block{background:var(--navy);border-radius:var(--r-md);padding:20px 24px;overflow-x:auto;--amber:#f59e0b;}
.threed-code-block--compact{padding:16px 20px}
.threed-code-line{font-family:var(--f-mono);font-size:13px;line-height:1.9;color:rgba(255,255,255,.8);white-space:nowrap}
.threed-code-line .ck{color:rgba(255,255,255,.95);font-weight:500}
.threed-code-line .cv{color:#fbbf24}

/* SLIDER / BROWSER CHROME */
.slider-shell{border-radius:var(--r-xl);overflow:hidden;border:1px solid var(--warm-200);box-shadow:var(--shadow-lg);background:var(--white)}
.browser-chrome{display:flex;align-items:center;gap:10px;padding:9px 14px;background:var(--warm-50);border-bottom:1px solid var(--warm-200)}
.chrome-dots{display:flex;gap:5px}.chrome-dots i{width:9px;height:9px;border-radius:50%;display:block}
.chrome-dots i:nth-child(1){background:#f97275}.chrome-dots i:nth-child(2){background:#fbbf24}.chrome-dots i:nth-child(3){background:#34d399}
.chrome-url{flex:1;background:var(--white);border:1px solid var(--warm-200);border-radius:5px;padding:4px 11px;font-family:var(--f-mono);font-size:10px;color:var(--ink-400);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chrome-tag{font-family:var(--f-mono);font-size:9px;font-weight:500;padding:2px 7px;border-radius:3px;background:var(--green-soft);color:var(--green);border:1px solid rgba(21,128,61,.15);letter-spacing:.06em}
.slide-viewport{aspect-ratio:16/9;position:relative;overflow:hidden;background:linear-gradient(155deg,var(--warm-50) 0%,var(--warm-100) 100%)}
.slide-viewport iframe{position:absolute;inset:0;width:100%;height:100%;border:none;display:block}
.slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .5s cubic-bezier(.4,0,.2,1);pointer-events:none}
.slide.on{opacity:1;pointer-events:all}
.sl-btn{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:var(--white);border:1px solid var(--warm-200);box-shadow:0 2px 12px rgba(0,0,0,.10);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;transition:border-color .18s,box-shadow .18s,transform .18s}
#dPrev{left:-60px}#dNext{right:-60px}
.sl-btn:hover{border-color:var(--navy);box-shadow:0 4px 20px rgba(12,31,61,.15);transform:translateY(-50%) scale(1.08)}
.sl-btn svg{width:18px;height:18px;color:var(--ink-700);stroke-width:1.8}
.sl-controls{display:none}
.sl-label{font-family:var(--f-mono);font-size:10px;color:var(--ink-400);min-width:160px;text-align:center;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:900px){
  #dPrev,#dNext{display:none}
  .sl-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:14px}
  .sl-mob-btn{width:40px;height:40px;border-radius:50%;background:var(--white);border:1px solid var(--warm-200);box-shadow:0 2px 8px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .15s,border-color .15s,box-shadow .15s,transform .1s}
  .sl-mob-btn:hover{background:var(--warm-50);border-color:var(--warm-300)}.sl-mob-btn:active{transform:scale(.95)}
  .sl-mob-btn svg{width:16px;height:16px;color:var(--ink-700);stroke-width:2}.sl-label{display:none}
}

/* ── 2. SIGNAL BAND ── */
.threed-rail{background:var(--navy);--amber:#f59e0b;}
.threed-rail-grid{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:stretch}
.threed-rail-item{padding:48px 40px;display:flex;flex-direction:column;gap:12px}
.threed-rail-num{font-family:var(--f-serif);font-weight:400;font-size:clamp(26px,2.8vw,38px);line-height:1;letter-spacing:-.03em;color:var(--white);display:block}
.threed-rail-label{font-size:12px;font-weight:300;line-height:1.55;color:rgba(255,255,255,.5);display:block;min-height:4em}
.threed-rail-div{width:1px;background:rgba(255,255,255,.1);align-self:stretch}
body.hc .threed-rail{background:#00102a;--amber:#f59e0b;}body.hc .threed-rail-num{color:#fff}body.hc .threed-rail-label{color:rgba(255,255,255,.75)}
@media(max-width:1024px){.threed-rail-grid{grid-template-columns:1fr 1fr}.threed-rail-div{display:none}.threed-rail-item{padding:36px 32px}.threed-rail-item:nth-child(1),.threed-rail-item:nth-child(5){border-right:1px solid rgba(255,255,255,.1)}.threed-rail-item:nth-child(1),.threed-rail-item:nth-child(3){border-bottom:1px solid rgba(255,255,255,.1)}.threed-rail-label{min-height:auto}}
@media(max-width:768px){.threed-rail-grid{grid-template-columns:1fr}.threed-rail-item{padding:28px 20px;border-right:none!important;border-bottom:1px solid rgba(255,255,255,.1)!important}.threed-rail-item:last-child{border-bottom:none!important}}

/* ── 3. PROBLEM ── */
.threed-problem{background:var(--white);padding:104px 0}
.threed-problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.threed-problem-card{background:var(--off-white);border:1px solid var(--warm-200);border-radius:var(--r-lg);padding:32px 28px}
.threed-problem-card h3{font-family:var(--f-serif);font-weight:400;font-size:20px;line-height:1.2;color:var(--ink-900);margin-bottom:12px}
.threed-problem-card p{font-size:14px;font-weight:300;line-height:1.6;color:var(--ink-600);margin:0}

/* ── 4. CONNECTED WORKFLOW ── */
.threed-workflow{background:var(--warm-50);padding:104px 0}
.threed-workflow-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.threed-workflow-item{background:var(--white);border:1px solid var(--warm-200);border-radius:var(--r-lg);padding:28px 24px}
.threed-workflow-label{font-family:var(--f-mono);font-size:10px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--navy);display:block;margin-bottom:12px}
.threed-workflow-item p{font-size:13px;font-weight:300;line-height:1.6;color:var(--ink-600);margin:0}

/* ── 5. ARCHITECTURE ── */
.threed-arch{background:var(--white);padding:104px 0}
.threed-arch-diagram{margin:48px 0 64px;text-align:center}
.threed-arch-diagram svg{max-width:100%;height:auto}
.threed-arch-details{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.threed-arch-item h3{font-family:var(--f-serif);font-weight:400;font-size:18px;line-height:1.2;color:var(--ink-900);margin-bottom:12px}
.threed-arch-item p{font-size:13px;font-weight:300;line-height:1.6;color:var(--ink-600);margin:0}

/* ── 6. CHAIN-DRIVEN TEXTURES ── */
.threed-chains{background:var(--off-white);padding:104px 0}
.threed-chains-comparison{display:grid;grid-template-columns:1fr auto 1fr;gap:0;margin-top:48px;margin-bottom:64px}
.threed-chain-col{padding:0 24px}
.threed-chain-context{font-family:var(--f-mono);font-size:9px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--amber);display:block;margin-bottom:16px}
.threed-chain-desc{font-size:13px;font-weight:300;line-height:1.6;color:var(--ink-600);margin:16px 0 0}
.threed-chain-divider{width:1px;background:var(--warm-200);display:flex;align-items:center;justify-content:center;position:relative}
.threed-chain-same{position:absolute;background:var(--off-white);padding:16px 12px;font-family:var(--f-mono);font-size:9px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-400);text-align:center;line-height:1.6}
.threed-chains-capabilities{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.threed-cap-item{padding:20px 24px;background:var(--white);border:1px solid var(--warm-200);border-radius:var(--r-md)}
.threed-cap-cmd{font-family:var(--f-mono);font-size:13px;font-weight:500;color:var(--navy);display:block;margin-bottom:8px}
.threed-cap-item p{font-size:12px;font-weight:300;line-height:1.55;color:var(--ink-600);margin:0}

/* ── 7. PARAMETRIC ── */
.threed-parametric{background:var(--white);padding:104px 0}
.threed-parametric-flow{display:grid;grid-template-columns:1fr 80px 1fr;gap:0;align-items:stretch;margin-top:48px;margin-bottom:64px}
.threed-parametric-step-label{font-family:var(--f-mono);font-size:9px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-400);display:block;margin-bottom:12px}
.threed-parametric-payload{min-width:0;display:flex;flex-direction:column}
.threed-parametric-payload .threed-code-block{flex:1}
.threed-parametric-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 0}
.threed-parametric-arrow svg{width:48px;height:24px}
.threed-parametric-arrow-label{font-family:var(--f-mono);font-size:8px;font-weight:400;color:var(--ink-400);text-align:center;line-height:1.4;margin-top:8px;max-width:80px}
.threed-parametric-viewer{min-width:0;display:flex;flex-direction:column}
.threed-parametric-model{border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--warm-200);box-shadow:var(--shadow-md);background:#1a1a1e;flex:1;min-height:300px}
.threed-parametric-model iframe{width:100%;height:100%;border:none;display:block}
.threed-parametric-explain{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:48px}
.threed-parametric-point h3{font-family:var(--f-serif);font-weight:400;font-size:18px;line-height:1.2;color:var(--ink-900);margin-bottom:10px}
.threed-parametric-point p{font-size:13px;font-weight:300;line-height:1.6;color:var(--ink-600);margin:0}
.threed-parametric-creative{
  max-width:640px;margin:0 auto 48px;text-align:center;
  padding:32px;background:var(--off-white);border:1px solid var(--warm-200);border-radius:var(--r-lg);
}
.threed-parametric-creative p{
  font-size:14px;font-weight:300;line-height:1.65;color:var(--ink-600);margin:0;
  font-style:italic;
}
.threed-parametric-industries{text-align:center}
.threed-parametric-label{font-family:var(--f-mono);font-size:9px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-400);display:block;margin-bottom:16px}
.threed-parametric-tags{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.threed-parametric-tag{font-family:var(--f-mono);font-size:10px;font-weight:500;letter-spacing:.04em;color:var(--navy);background:var(--off-white);border:1px solid var(--warm-200);border-radius:var(--r-sm);padding:6px 14px}

/* ── 8. SURROUND + DEMOS ── */
.threed-demos{background:var(--navy);padding:104px 0;--amber:#f59e0b;}
.threed-demos .section-header{margin-bottom:48px}
.threed-demos-h2{color:var(--white)!important}
.threed-demos-sub{color:rgba(255,255,255,.7)!important}
.threed-demo-slider{position:relative;width:100%;max-width:920px;margin:0 auto}
.threed-demo-slider .slider-shell{border-color:rgba(255,255,255,.12)}
.threed-demo-slider .slide-viewport{aspect-ratio:16/10}
.threed-demo-slider .sl-btn{background:var(--white);border-color:rgba(255,255,255,.2)}
.threed-demo-slider .sl-btn:hover{border-color:var(--white)}
.threed-demo-slider .sl-label{color:rgba(255,255,255,.6)}
.threed-api-ref{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:48px 0 0}
.threed-api-item{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:var(--r-lg);padding:20px 24px;min-width:0}
.threed-api-item p{font-size:12px;font-weight:300;line-height:1.5;color:rgba(255,255,255,.6);margin:12px 0 0}
.threed-api-item .threed-code-block{padding:16px 18px}
.threed-api-item .threed-code-line{font-size:11px}

/* ── 9. DEPLOYMENT ── */
.threed-deploy-ref{background:var(--warm-50);padding:80px 0}
.threed-deploy-ref-content{text-align:center;max-width:640px;margin:0 auto}
.threed-deploy-ref-content h2{font-family:var(--f-serif);font-weight:400;font-size:clamp(28px,3.2vw,36px);line-height:1.1;letter-spacing:-.02em;color:var(--ink-900);margin-bottom:16px}
.threed-deploy-ref-content p{font-size:14px;font-weight:300;line-height:1.6;color:var(--ink-600);margin-bottom:32px}
.threed-deploy-ref-cta{display:flex;justify-content:center}

/* ── 10. CTA ── */
.threed-cta-section{background:var(--navy);padding:104px 52px;text-align:center;position:relative;overflow:hidden;--amber:#f59e0b;}
.threed-cta-section::before{content:'';position:absolute;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(30,74,128,.3),transparent 65%);top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}
.threed-cta-section::after{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,1) 1px,transparent 1px);background-size:40px 40px;opacity:.07;mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,black 20%,transparent 70%);-webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,black 20%,transparent 70%);pointer-events:none}
.threed-cta-inner{position:relative;z-index:1;max-width:640px;margin:0 auto}
.threed-cta-inner h2{font-family:var(--f-serif);font-weight:400;font-size:clamp(30px,4vw,52px);line-height:1.05;letter-spacing:-.02em;color:var(--white);margin-bottom:20px}
.threed-cta-inner p{font-size:16px;font-weight:300;line-height:1.55;color:rgba(255,255,255,.8);max-width:520px;margin:0 auto 40px}
.threed-cta-buttons{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

/* HC */
body.hc .threed-code-block{background:#00102a;--amber:#f59e0b;}body.hc .threed-code-line{color:#fff}
body.hc .threed-demos{background:#00102a;--amber:#f59e0b;}body.hc .threed-demos-h2{color:#fff!important}body.hc .threed-demos-sub{color:rgba(255,255,255,.9)!important}
body.hc .threed-cta-section{background:#00102a;--amber:#f59e0b;}body.hc .threed-cta-inner h2{color:#fff}body.hc .threed-cta-inner p{color:rgba(255,255,255,.85)}

/* RESPONSIVE */

/* Prevent horizontal scroll */
body{overflow-x:hidden}

/* Ensure minimum tap targets */
.btn-primary,.btn-white,.sl-btn,.sl-mob-btn,.ctrl-btn,.load-btn,.threed-parametric-tag{min-height:44px;min-width:44px}

@media(max-width:1024px){
  .threed-problem-grid{grid-template-columns:1fr}
  .threed-workflow-grid{grid-template-columns:repeat(2,1fr)}
  .threed-arch-details{grid-template-columns:1fr}
  .threed-chains-comparison{grid-template-columns:1fr}
  .threed-chain-divider{width:100%;height:1px;background:var(--warm-200);margin:24px 0}
  .threed-chain-same{position:static;padding:8px 0}
  .threed-chains-capabilities{grid-template-columns:repeat(2,1fr)}
  .threed-parametric-flow{grid-template-columns:1fr;gap:24px}
  .threed-parametric-arrow svg{transform:rotate(90deg)}
  .threed-parametric-model{min-height:360px;max-width:560px}
  .threed-parametric-explain{grid-template-columns:1fr}
  .threed-api-ref{grid-template-columns:1fr}
}

@media(max-width:768px){
  .threed-problem{padding:64px 0}
  .threed-workflow{padding:64px 0}
  .threed-workflow-grid{grid-template-columns:1fr}
  .threed-arch{padding:64px 0}
  .threed-arch-diagram{margin:32px 0 48px}
  .threed-chains{padding:64px 0}
  .threed-chains-capabilities{grid-template-columns:1fr}
  .threed-chain-col{padding:0}
  .threed-parametric{padding:64px 0}
  .threed-parametric-model{min-height:280px}
  .threed-demos{padding:64px 0}
  .threed-deploy-ref{padding:64px 0}
  .threed-cta-section{padding:64px 20px}
  .threed-cta-buttons{flex-direction:column;align-items:center}
  .section-header h2{font-size:clamp(24px,5vw,36px)}
  .threed-cta-inner h2{font-size:clamp(26px,5vw,42px)}
  .threed-deploy-ref-content h2{font-size:clamp(24px,4vw,32px)}
  .threed-rail-item{padding:32px 24px}
  .threed-problem-card,.threed-workflow-item,.threed-arch-item{padding:24px 20px}
  .threed-code-block{padding:16px}
  .threed-code-line{font-size:11px}
}

@media(max-width:640px){
  .threed-problem-card h3,.threed-change-card h3{font-size:18px}
  .threed-arch-item h3,.threed-parametric-point h3{font-size:16px}
  .threed-parametric-creative{padding:24px 20px}
  .threed-parametric-creative p{font-size:13px}
  .threed-parametric-tags{gap:8px}
  .threed-parametric-tag{font-size:9px;padding:6px 10px}
  .threed-api-ref{margin-top:32px}
  .threed-workflow-grid,.threed-chains-capabilities{gap:16px}
}

@media(max-width:480px){
  .threed-problem{padding:48px 0}
  .threed-workflow{padding:48px 0}
  .threed-arch{padding:48px 0}
  .threed-chains{padding:48px 0}
  .threed-parametric{padding:48px 0}
  .threed-demos{padding:48px 0}
  .threed-deploy-ref{padding:48px 0}
  .threed-cta-section{padding:48px 16px}
  .section-header{margin-bottom:32px}
  .section-header h2{font-size:clamp(22px,6vw,30px)}
  .threed-cta-inner h2{font-size:clamp(24px,6vw,36px)}
  .threed-rail-num{font-size:clamp(22px,5vw,32px)}
  .threed-rail-item{padding:24px 20px}
  .threed-rail-label{min-height:auto}
  .threed-parametric-model{min-height:240px}
  .threed-chains-comparison{margin-top:32px;margin-bottom:48px}
  .threed-code-line{font-size:10px;line-height:1.7}
  .threed-cap-item{padding:16px}
  .threed-cap-cmd{font-size:12px}
  .threed-cap-item p{font-size:11px}
  .btn-primary,.btn-white{width:100%;justify-content:center}
}
