:root{
  --primary:#2563EB;
  --secondary:#3B82F6;
  --accent:#60A5FA;
  --bg:#FFFFFF;
  --bg-alt:#F8FAFC;
  --text-1:#0F172A;
  --text-2:#475569;
  --text-3:#64748B;
  --line:#E2E8F0;
  --navy:#0B1224;
  --navy-2:#11192F;
  --radius:18px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.12);
  --shadow-glow: 0 0 0 1px rgba(37,99,235,.08), 0 20px 50px rgba(37,99,235,.18);
  --ff-head:'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--text-1);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:var(--ff-head); margin:0; color:var(--text-1); letter-spacing:-0.02em;}
p{margin:0;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}
section{position:relative;}
:focus-visible{outline:2px solid var(--primary); outline-offset:3px; border-radius:6px;}

.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--primary); margin-bottom:14px;
}
.eyebrow::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--primary);}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(28px,4vw,40px); font-weight:800; line-height:1.15;}
.section-head .sub{margin-top:14px; font-size:17px; color:var(--text-2); line-height:1.6;}

/* ============ BUTTONS ============ */
.btn{
  position:relative; overflow:hidden; isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-weight:600; font-size:15px;
  border:1px solid transparent; transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px) scale(.99);}
.btn-primary{background:var(--primary); color:#fff; box-shadow:0 1px 2px rgba(37,99,235,.15), 0 8px 20px rgba(37,99,235,.28);}
.btn-primary:hover{background:#1d4fd1; box-shadow:0 1px 2px rgba(37,99,235,.2), 0 14px 30px rgba(37,99,235,.38); transform:translateY(-2px);}
.btn-ghost{background:transparent; color:var(--text-1); border-color:var(--line);}
.btn-ghost:hover{border-color:var(--primary); color:var(--primary); transform:translateY(-2px); background:#F5F8FF;}
.btn-light{background:#fff; color:var(--primary); }
.btn-light:hover{transform:translateY(-2px); box-shadow:var(--shadow-md);}
.btn-on-navy{background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.16);}
.btn-on-navy:hover{background:rgba(255,255,255,.16); transform:translateY(-2px);}
.btn .ripple{
  position:absolute; border-radius:50%; background:rgba(255,255,255,.55);
  transform:scale(0); animation:ripple .55s ease-out; pointer-events:none;
}
.btn-ghost .ripple, .btn-light .ripple{background:rgba(37,99,235,.18);}
@keyframes ripple{to{transform:scale(2.6); opacity:0;}}
.btn-sm{padding:9px 18px; font-size:13.5px;}

/* ============ PRODUCT DETAIL ============ */
.pd-page{
  padding:140px 0 100px;
  background:
    radial-gradient(circle at 85% 0%, rgba(96,165,250,.18), transparent 42%),
    linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 46%);
}
.pd-page .wrap{max-width:1180px;}

/* Breadcrumbs */
.pd-crumbs{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:13px; font-weight:600; color:var(--text-3); margin-bottom:30px;
}
.pd-crumbs a{color:var(--text-3); transition:color .2s ease;}
.pd-crumbs a:hover{color:var(--primary);}
.pd-crumbs .pd-crumb-sep{color:var(--line);}
.pd-crumbs .pd-crumb-current{color:var(--text-1);}

/* Hero */
.pd-hero{
  display:grid; grid-template-columns:minmax(0, 1.02fr) minmax(0, .98fr);
  gap:56px; align-items:center;
}
.pd-hero-copy{min-width:0; max-width:560px;}
.pd-meta{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px;}
.pd-chip{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 13px; border-radius:999px;
  background:#EFF6FF; color:var(--primary);
  font-size:11.5px; font-weight:800; letter-spacing:.11em; text-transform:uppercase;
}
.pd-chip::before{content:''; width:6px; height:6px; border-radius:50%; background:currentColor;}
.pd-chip-soon{background:#FEF3C7; color:#B45309;}
.pd-chip-live{background:#ECFDF3; color:#15803D;}
.pd-hero-copy h1{
  font-size:clamp(32px, 4.4vw, 52px); font-weight:800; line-height:1.06; margin-bottom:18px;
}
.pd-lede{font-size:17px; line-height:1.72; color:var(--text-2);}
.pd-actions{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:30px;}
.pd-actions .btn{flex-shrink:0;}

/* Hero visual */
.pd-hero-visual{
  position:relative; min-width:0;
  border-radius:26px; overflow:hidden;
  border:1px solid rgba(37,99,235,.12);
  background:linear-gradient(145deg, #E7F0FF 0%, #F8FBFF 100%);
  box-shadow:var(--shadow-lg);
  aspect-ratio:4/3;
  display:flex; align-items:center; justify-content:center;
}
.pd-hero-visual img{width:100%; height:100%; object-fit:contain; padding:38px;}

/* Shared section rhythm */
.pd-section{margin-top:88px;}
.pd-section-tight{margin-top:44px;}
.pd-hero-fallback{font-family:var(--ff-head); font-size:72px; font-weight:800; color:var(--primary); opacity:.3;}
.pd-section-head{max-width:640px; margin-bottom:34px;}
.pd-section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.pd-section-head h2{font-size:clamp(24px, 3vw, 34px); font-weight:800; line-height:1.18;}
.pd-section-head p{margin-top:12px; font-size:15.5px; line-height:1.68; color:var(--text-2);}

/* Highlights */
.pd-highlights{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:18px;}
.pd-highlight{
  display:flex; align-items:flex-start; gap:14px;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:22px; box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pd-highlight:hover{transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(37,99,235,.28);}
.pd-highlight-ic{
  flex-shrink:0; width:32px; height:32px; border-radius:10px;
  background:#EFF6FF; color:var(--primary);
  display:flex; align-items:center; justify-content:center;
}
.pd-highlight p{font-size:14.5px; line-height:1.55; font-weight:600; color:var(--text-1); margin:0;}

/* Banner */
.pd-banner{
  border-radius:24px; overflow:hidden;
  border:1px solid rgba(37,99,235,.12);
  background:linear-gradient(140deg, #DCEAFE 0%, #F8FBFF 100%);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  padding:26px;
}
.pd-banner img{width:100%; height:auto; max-height:460px; object-fit:contain; border-radius:12px;}

/* Overview */
.pd-overview{
  display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, .85fr);
  gap:48px; align-items:start;
}
.pd-overview-copy{min-width:0;}
.pd-overview-solo{grid-template-columns:1fr; max-width:840px;}
.pd-overview-copy .pd-section-head{margin-bottom:20px;}
.pd-prose{font-size:15.5px; line-height:1.85; color:var(--text-2); max-width:68ch;}
.pd-prose + .pd-prose{margin-top:14px;}

/* Structured product copy (see product_extras.product_richtext) */
.pd-prose-body > *:first-child{margin-top:0;}
.pd-prose-head{
  font-size:17px; font-weight:800; color:var(--text-1);
  margin:34px 0 12px; line-height:1.4;
}
.pd-prose-head + .pd-prose{margin-top:0;}
.pd-list{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  gap:10px 22px; margin:14px 0 0;
}
.pd-list li{
  display:flex; align-items:flex-start; gap:9px;
  font-size:14.5px; line-height:1.5; color:var(--text-2); font-weight:500;
}
.pd-list li svg{flex-shrink:0; color:var(--primary); margin-top:4px;}
.pd-list + .pd-prose{margin-top:16px;}

.pd-overview-media{
  min-width:0; border-radius:20px; overflow:hidden;
  border:1px solid rgba(37,99,235,.12);
  background:linear-gradient(145deg, #EAF2FF 0%, #FFFFFF 100%);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  padding:22px;
  /* Long product copy scrolls past the visual, so pin it alongside. */
  position:sticky; top:106px; align-self:start;
}
.pd-overview-media img{
  width:100%; height:auto; object-fit:contain; border-radius:10px;
  max-height:calc(100vh - 190px);
}

/* Related products */
.pd-related-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px;}
.pd-related-card{
  position:relative; display:flex; align-items:center; gap:16px;
  background:#fff; border:1px solid var(--line); border-radius:18px;
  padding:18px; box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pd-related-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(37,99,235,.3);}
.pd-related-thumb{
  flex-shrink:0; width:60px; height:60px; border-radius:14px; overflow:hidden;
  background:linear-gradient(145deg, #EAF1FF, #F6FAFF);
  display:flex; align-items:center; justify-content:center;
}
.pd-related-thumb img{width:100%; height:100%; object-fit:contain; padding:8px;}
.pd-related-copy{min-width:0;}
.pd-related-cat{
  font-size:10.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--primary);
}
.pd-related-copy h3{font-size:16px; font-weight:700; margin-top:4px;}
.pd-related-copy h3 a{color:var(--text-1);}
.pd-related-copy h3 a::after{content:''; position:absolute; inset:0;}
.pd-related-card:hover h3 a{color:var(--primary);}

/* CTA strip */
.pd-cta{
  display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  background:linear-gradient(135deg, var(--navy) 0%, #1a3a8f 100%);
  border-radius:24px; padding:40px 44px;
  box-shadow:0 24px 60px rgba(11,18,36,.22);
  margin-top:88px;
}
.pd-cta-copy{min-width:0; max-width:560px;}
.pd-cta-label{
  font-size:11.5px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; color:var(--accent);
}
.pd-cta-copy h2{font-size:clamp(20px, 2.4vw, 28px); font-weight:800; color:#fff; margin-top:10px;}
.pd-cta-copy p{font-size:14.5px; line-height:1.65; color:rgba(255,255,255,.7); margin-top:10px;}
.pd-cta-actions{display:flex; gap:12px; flex-wrap:wrap; flex-shrink:0;}

@media (max-width: 1024px){
  .pd-hero{grid-template-columns:1fr; gap:36px;}
  .pd-hero-copy{max-width:none;}
  .pd-hero-visual{aspect-ratio:16/10; order:-1;}
  .pd-overview{grid-template-columns:1fr; gap:32px;}
  .pd-overview-media{position:static; order:-1;}
  .pd-overview-media img{max-height:520px;}
  .pd-section{margin-top:68px;}
  .pd-cta{margin-top:68px;}
}
@media (max-width: 680px){
  .pd-page{padding:120px 0 76px;}
  .pd-hero-visual img{padding:24px;}
  .pd-banner{padding:16px; border-radius:18px;}
  .pd-overview-media{padding:14px;}
  .pd-section{margin-top:52px;}
  .pd-cta{margin-top:52px; padding:28px 22px; flex-direction:column; align-items:flex-start;}
  .pd-cta-actions{width:100%;}
  .pd-cta-actions .btn{width:100%;}
  .pd-actions{width:100%;}
  .pd-actions .btn{width:100%;}
  .pd-related-card{padding:16px;}
}

/* ============ NAV ============ */
header.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(255,255,255,.82); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:box-shadow .3s ease, border-color .3s ease, padding .3s ease;
}
header.nav.scrolled{box-shadow:0 1px 0 rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06); border-color:var(--line);}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:0px; max-width:1180px; margin:0 auto; height:90px;}
header.nav.scrolled .nav-inner{padding:2px; height:90px;}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--ff-head); font-weight:800; font-size:20px; color:var(--text-1); letter-spacing:-0.03em;}
.brand img{height:150px; width:auto;}
.brand .e{color:var(--primary); margin:0 -0.5px;}
.nav-links{display:flex; align-items:center; gap:34px; font-size:14.5px; font-weight:600; color:var(--text-2);}
.nav-links a{position:relative; padding:6px 0; transition:color .2s ease;}
.nav-links a::after{content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--primary); transition:width .25s ease; border-radius:2px;}
.nav-links a:hover{color:var(--text-1);}
.nav-links a:hover::after{width:100%;}
.nav-right{display:flex; align-items:center; gap:18px;}
.burger{display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px;}
.burger span{width:22px; height:2px; background:var(--text-1); border-radius:2px; transition:transform .25s ease, opacity .25s ease;}
.mobile-menu{display:none; flex-direction:column; gap:2px; background:#fff; border-top:1px solid var(--line); padding:10px 24px 20px;}
.mobile-menu a{padding:13px 4px; font-weight:600; color:var(--text-2); border-bottom:1px solid var(--line); font-size:15px;}
.mobile-menu .btn{margin-top:14px; width:100%;}


@media (max-width: 900px){
  .nav-links{display:none;}
  .nav-right .btn-primary{display:none;}
  .burger{display:flex;}
  body.menu-open .mobile-menu{display:flex;}
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress{position:fixed; top:0; left:0; height:3px; width:0%; background:linear-gradient(90deg,var(--primary),var(--accent)); z-index:200; transition:width .12s linear;}

.nav-links a.active{color:var(--text-1);}
.nav-links a.active::after{width:100%;}
.mobile-menu a.active{color:var(--primary);}

/* ============ REVEAL ============ */
[data-reveal]{opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);}
[data-reveal].in{opacity:1; transform:translateY(0);}
[data-reveal="scale"]{transform:translateY(16px) scale(.97);}
[data-reveal="scale"].in{transform:translateY(0) scale(1);}

/* ============ HERO ============ */
.hero{padding:148px 0 100px; background:
  radial-gradient(900px 480px at 84% -8%, rgba(96,165,250,.16), transparent 60%),
  radial-gradient(700px 420px at 0% 10%, rgba(37,99,235,.07), transparent 60%),
  var(--bg);
  overflow:hidden;
}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; perspective:1200px;}
.hero h1{font-size:clamp(34px,4.6vw,54px); font-weight:800; line-height:1.08; letter-spacing:-0.025em;}
.hero h1 .hl{color:var(--primary);}
.hero .lead{margin-top:22px; font-size:18px; color:var(--text-2); max-width:520px; line-height:1.65;}
.hero-cta{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
.trust-row{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:56px; max-width:560px;}
.trust-card{
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 14px;
  box-shadow:var(--shadow-sm); transition:transform .25s ease, box-shadow .25s ease;
}
.trust-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-md);}
.trust-card .num{font-family:var(--ff-head); font-weight:800; font-size:22px; color:var(--primary); letter-spacing:-0.02em;}
.trust-card .lab{font-size:11.5px; color:var(--text-3); margin-top:4px; font-weight:600; line-height:1.3;}

/* Hero visual */
.hero-visual{position:relative; height:480px; transition:transform .4s cubic-bezier(.2,.7,.2,1); will-change:transform;}
.hv-blob{position:absolute; border-radius:50%; filter:blur(40px); opacity:.55; animation:drift 9s ease-in-out infinite;}
.hv-blob.a{width:260px; height:260px; background:radial-gradient(circle, rgba(96,165,250,.55), transparent 70%); top:-30px; right:10px;}
.hv-blob.b{width:220px; height:220px; background:radial-gradient(circle, rgba(37,99,235,.4), transparent 70%); bottom:-10px; left:-10px; animation-delay:-3s;}
@keyframes drift{0%,100%{transform:translate(0,0);}50%{transform:translate(-12px,14px);}}

.hv-core{position:absolute; inset:0; display:flex; align-items:center; justify-content:center;}
/* The hero logo carries its intrinsic width/height attributes so the browser can
   reserve space before the image loads (avoids layout shift on the largest
   element above the fold). height:auto lets it scale to the container instead of
   honouring the literal pixel height and squashing the 3:2 artwork. */
.hv-core img{height:auto;}
.hv-ring{position:absolute; width:190px; height:190px; border-radius:50%; border:1.5px solid rgba(37,99,235,.34); animation:ringPulse 3.2s cubic-bezier(.4,0,.6,1) infinite;}
.hv-ring.r2{animation-delay:1.05s;}
.hv-ring.r3{animation-delay:2.1s;}
@keyframes ringPulse{0%{transform:scale(.6); opacity:.55;}100%{transform:scale(1.65); opacity:0;}}
.hv-logo{position:relative; width:158px; height:auto; z-index:2; animation:logoFloat 5s ease-in-out infinite, logoGlow 4s ease-in-out infinite;}
@keyframes logoFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-12px);}}
@keyframes logoGlow{0%,100%{filter:drop-shadow(0 10px 22px rgba(37,99,235,.22));}50%{filter:drop-shadow(0 22px 42px rgba(37,99,235,.42));}}

.float-card{
  position:absolute; display:flex; align-items:center; gap:9px;
  background:rgba(255,255,255,.85); backdrop-filter:blur(10px);
  border:1px solid rgba(226,232,240,.9); border-radius:13px; padding:10px 13px;
  box-shadow:0 14px 30px rgba(15,23,42,.1); font-size:12.5px; font-weight:700; color:var(--text-1);
  animation:floaty 6s ease-in-out infinite;
}
.float-card .ic{width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:#EFF4FF; color:var(--primary);}
.float-card.fc1{top:6%; left:0; animation-delay:0s;}
.float-card.fc2{top:18%; right:2%; animation-delay:-2s;}
.float-card.fc3{bottom:20%; left:4%; animation-delay:-4s;}
.float-card.fc4{bottom:4%; right:8%; animation-delay:-1.2s;}
.float-card.fc5{bottom:44%; right:-2%; animation-delay:-3s;}
@keyframes floaty{0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);}}

/* ============ SERVICES / SOLUTIONS GRID ============ */
.section{padding:104px 0;}
.section.alt{background:var(--bg-alt);}
.grid-6{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:#DCE6FB;}
.card .ic-wrap{
  width:48px; height:48px; border-radius:13px; background:linear-gradient(145deg,#EAF1FF,#F5F9FF);
  display:flex; align-items:center; justify-content:center; color:var(--primary); margin-bottom:18px;
}
.card h3{font-size:18.5px; font-weight:700; margin-bottom:9px;}
.card p{font-size:14.5px; color:var(--text-2); line-height:1.6;}

.sol-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px 26px;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.sol-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:#DCE6FB;}
.sol-card .ic-wrap{width:44px; height:44px; border-radius:12px; background:var(--text-1); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.sol-card h3{font-size:17.5px; font-weight:700; margin-bottom:13px;}
.sol-card ul{display:flex; flex-direction:column; gap:8px;}
.sol-card li{font-size:13.5px; color:var(--text-2); display:flex; align-items:flex-start; gap:8px;}
.sol-card li svg{flex-shrink:0; margin-top:3px; color:var(--secondary);}

/* ============ TILT + SPOTLIGHT (interactive cards) ============ */
.tilt{position:relative;}
.tilt::before{
  content:''; position:absolute; inset:0; border-radius:inherit; z-index:0; pointer-events:none;
  background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(37,99,235,.12), transparent 55%);
  opacity:0; transition:opacity .35s ease;
}
.tilt:hover::before{opacity:1;}
.tilt-dark::before{background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.16), transparent 55%);}
.tilt > *{position:relative; z-index:1;}

/* ============ AI PREMIUM SECTION ============ */
.ai-section{
  position:relative; padding:120px 0; overflow:hidden;
  background:linear-gradient(165deg, var(--navy) 0%, #122253 56%, #1d3a8f 100%);
  color:#fff;
}
.ai-section .dotgrid{position:absolute; inset:0; opacity:.18; background-image:radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.4px); background-size:26px 26px; mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);}
.ai-section .glow{position:absolute; width:520px; height:520px; border-radius:50%; filter:blur(70px); opacity:.35; background:radial-gradient(circle, var(--accent), transparent 70%);}
.ai-section .glow.g1{top:-180px; right:-120px;}
.ai-section .glow.g2{bottom:-200px; left:-140px; background:radial-gradient(circle, var(--secondary), transparent 70%);}
.ai-section .wrap{position:relative; z-index:2;}
.ai-section .eyebrow{color:var(--accent);}
.ai-section .eyebrow::before{background:var(--accent);}
.ai-section .section-head h2{color:#fff;}
.ai-section .section-head .sub{color:#fff;}
.ai-section .desc{max-width:700px; margin-top:18px; font-size:16.5px; color:rgba(255,255,255,.72); line-height:1.65;}

.ai-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:54px;}
.ai-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:16px;
  padding:24px 20px; backdrop-filter:blur(8px); transition:transform .3s ease, background .3s ease, border-color .3s ease;
}
.ai-card:hover{transform:translateY(-6px); background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.24);}
.ai-card .ic-wrap{width:42px; height:42px; border-radius:11px; background:rgba(96,165,250,.18); color:var(--accent); display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.ai-card h3{color:#fff; font-size:15.5px; font-weight:700; margin-bottom:8px;}
.ai-card p{color:rgba(255,255,255,.62); font-size:13px; line-height:1.55;}

.ai-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:64px; padding-top:48px; border-top:1px solid rgba(255,255,255,.14);}
.ai-stat{text-align:center;}
.ai-stat .num{font-family:var(--ff-head); font-weight:800; font-size:clamp(30px,3.6vw,42px); color:#fff; letter-spacing:-0.02em;}
.ai-stat .lab{margin-top:8px; font-size:13px; color:rgba(255,255,255,.6); font-weight:600;}

/* ============ WHY / PROCESS ============ */
.why-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.why-card{display:flex; gap:16px; padding:8px 0;}
.why-card .ic-wrap{width:44px; height:44px; border-radius:12px; background:#EFF4FF; color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.why-card h3{font-size:16.5px; font-weight:700; margin-bottom:6px;}
.why-card p{font-size:14px; color:var(--text-2); line-height:1.55;}

.pipeline-head{text-align:center; max-width:480px; margin:0 auto;}
.pipeline-head h3{font-size:20px; font-weight:800;}
.pipeline-head p{margin-top:8px; font-size:14px; color:var(--text-2); line-height:1.6;}

.pipeline{position:relative; margin:44px 0 0; display:grid; grid-template-columns:repeat(5,1fr); gap:0;}
.pipeline-line{position:absolute; top:31px; left:10%; right:10%; height:3px; background:var(--line); border-radius:3px; overflow:hidden; z-index:0;}
.pipeline-line .fill{position:absolute; inset:0; width:0; background:linear-gradient(90deg,var(--primary),var(--accent)); border-radius:3px; transition:width 1.7s cubic-bezier(.16,.7,.2,1);}
.pipeline.animate .pipeline-line .fill{width:100%;}

.pipe-step{position:relative; z-index:1; text-align:center; padding:0 12px;}
.pipe-badge{
  width:62px; height:62px; border-radius:50%; background:#fff; border:2px solid var(--line); color:var(--text-3);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px; position:relative;
  transition:background .5s ease, border-color .5s ease, color .5s ease, transform .5s ease, box-shadow .5s ease;
  transition-delay:0s;
}
.pipeline.animate .pipe-step:nth-child(1) .pipe-badge{transition-delay:.05s;}
.pipeline.animate .pipe-step:nth-child(2) .pipe-badge{transition-delay:.35s;}
.pipeline.animate .pipe-step:nth-child(3) .pipe-badge{transition-delay:.65s;}
.pipeline.animate .pipe-step:nth-child(4) .pipe-badge{transition-delay:.95s;}
.pipeline.animate .pipe-step:nth-child(5) .pipe-badge{transition-delay:1.25s;}
.pipeline.animate .pipe-badge{background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-2px); box-shadow:0 10px 22px rgba(37,99,235,.28);}
.pipe-badge .idx{
  position:absolute; top:-5px; right:-5px; width:21px; height:21px; border-radius:50%;
  background:var(--text-1); color:#fff; font-size:10px; font-weight:800; font-family:var(--ff-head);
  display:flex; align-items:center; justify-content:center; border:2px solid #fff;
}
.pipe-step h3{font-size:15.5px; font-weight:700; margin-bottom:7px;}
.pipe-step p{font-size:12.5px; color:var(--text-2); line-height:1.55; max-width:165px; margin:0 auto;}

.testi-carousel{display:flex; align-items:center; gap:18px; margin-top:48px;}
.testi-arrow{
  flex-shrink:0; width:46px; height:46px; border-radius:50%; background:#fff; border:1px solid var(--line);
  color:var(--text-2); display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.testi-arrow:hover{background:var(--primary); color:#fff; border-color:var(--primary); transform:translateY(-2px); box-shadow:var(--shadow-md);}
.testi-viewport{flex:1; min-width:0; overflow:hidden;}
.testi-track{display:flex; transition:transform .55s cubic-bezier(.2,.7,.2,1);}
.testi-slide{flex:0 0 100%; min-width:0; padding:2px;}
.testi-spot{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:46px 52px; text-align:center; max-width:680px; margin:0 auto;}
.testi-spot p.q{font-size:17px; color:var(--text-1); line-height:1.65; font-weight:500;}
.testi-spot p.q::before{content:"\201C"; color:var(--accent); font-family:Georgia,'Times New Roman',serif; font-weight:700; font-size:1.3em; line-height:0; vertical-align:-0.32em; margin-right:1px;}
.testi-spot p.q::after{content:"\201D"; color:var(--accent); font-family:Georgia,'Times New Roman',serif; font-weight:700; font-size:1.3em; line-height:0; vertical-align:-0.32em; margin-left:1px;}
.testi-foot{display:flex; align-items:center; justify-content:center; gap:11px; margin-top:24px;}
.avatar{width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--ff-head); font-weight:700; font-size:13.5px; color:#fff; background:linear-gradient(135deg,var(--primary),var(--accent)); flex-shrink:0;}
.testi-foot .name{font-size:14.5px; font-weight:700; color:var(--text-1); text-align:left;}
.testi-foot .role{font-size:12.5px; color:var(--text-3); text-align:left;}
.testi-dots{display:flex; align-items:center; justify-content:center; gap:9px; margin-top:28px;}
.testi-dots .dot{width:8px; height:8px; border-radius:50%; background:var(--line); border:none; padding:0; transition:background .25s ease, transform .25s ease, width .25s ease;}
.testi-dots .dot.active{background:var(--primary); width:22px; border-radius:5px;}

/* ============ CONTACT ============ */
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:48px; align-items:flex-start;}
.contact-cards{display:flex; flex-direction:column; gap:14px; margin-top:34px;}
.social-row{display:flex; align-items:center; gap:16px; margin-top:26px;}
.social-label{font-size:12px; font-weight:700; color:var(--text-3); text-transform:uppercase; letter-spacing:.07em;}
.social-icons{display:flex; gap:10px;}
.social-btn{
  width:38px; height:38px; border-radius:50%; background:#fff; border:1px solid var(--line); color:var(--text-2);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.social-btn:hover{background:var(--primary); color:#fff; border-color:var(--primary); transform:translateY(-3px); box-shadow:var(--shadow-md);}
.cc{display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; transition:transform .25s ease, box-shadow .25s ease;}
.cc:hover{transform:translateY(-3px); box-shadow:var(--shadow-md);}
.cc .ic-wrap{width:42px; height:42px; border-radius:11px; background:#EFF4FF; color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.cc .lab{font-size:11.5px; color:var(--text-3); font-weight:700; text-transform:uppercase; letter-spacing:.06em;}
.cc .val{font-size:14.5px; font-weight:600; color:var(--text-1); margin-top:2px;}

.form-card{background:#fff; border:1px solid var(--line); border-radius:22px; padding:38px; box-shadow:var(--shadow-md);}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:13px; font-weight:700; color:var(--text-1); margin-bottom:8px;}
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:11px; font-size:14.5px;
  font-family:var(--ff-body); color:var(--text-1); background:var(--bg-alt); transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--primary); background:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.1);}
.field textarea{resize:vertical; min-height:104px;}
.form-success{display:none; align-items:center; gap:10px; background:#EFFAF1; border:1px solid #BBE5C5; color:#15803D; padding:13px 16px; border-radius:11px; font-size:14px; font-weight:600; margin-bottom:18px;}
.form-success.show{display:flex;}

/* ============ FOOTER ============ */
footer{background:var(--navy); color:rgba(255,255,255,.66); padding:76px 0 0;}
.foot-grid{display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:56px; border-bottom:1px solid rgba(255,255,255,.1);}
.foot-brand img{height:150px; width:auto; }
.foot-brand{display:flex; align-items:center; gap:9px; font-family:var(--ff-head); font-weight:800; font-size:19px; color:#fff;  letter-spacing:-0.03em;}
.foot-brand .mark-img{height:32px; width:auto; filter:drop-shadow(0 0 5px rgba(255,255,255,.4)) drop-shadow(0 0 16px rgba(96,165,250,.5));}
.foot-brand .e{color:var(--accent); margin:0 -0.5px;}
.foot-social{display:flex; gap:10px; margin-top:18px;}
.foot-social a{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); color:rgba(255,255,255,.72);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.foot-social a:hover{background:var(--accent); color:var(--navy); border-color:var(--accent); transform:translateY(-3px);}
footer .tagline{font-size:13px; color:rgba(255,255,255,.42); margin-bottom:16px;}
footer p.about{font-size:13.5px; line-height:1.65; max-width:280px;}
footer h4{color:#fff; font-size:13.5px; font-weight:700; margin-bottom:18px; letter-spacing:.02em;}
footer .foot-links{display:flex; flex-direction:column; gap:11px;}
footer .foot-links a{font-size:13.5px; transition:color .2s ease;}
footer .foot-links a:hover{color:#fff;}
.foot-bottom{display:flex; align-items:center; justify-content:space-between; padding:24px 0; font-size:12.5px; flex-wrap:wrap; gap:10px;}
.foot-bottom .legal{display:flex; gap:22px;}
.foot-bottom a:hover{color:#fff;}

/* ============ MAGNETIC BUTTONS ============ */
.magnetic{transition:transform .25s cubic-bezier(.2,.7,.2,1), background .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;}

/* ============ FLOATING CTA ============ */
.float-cta{
  position:fixed; bottom:26px; right:26px; z-index:90; display:flex; align-items:center; gap:6px;
  background:#fff; border:1px solid var(--line); border-radius:999px; padding:6px 6px 6px 16px;
  box-shadow:var(--shadow-lg); opacity:0; transform:translateY(16px) scale(.95); pointer-events:none;
  transition:opacity .35s ease, transform .35s ease;
}
.float-cta.show{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}
.float-cta-btn{display:flex; align-items:center; gap:8px; background:var(--primary); color:#fff; padding:11px 18px; border-radius:999px; font-size:13.5px; font-weight:700; white-space:nowrap; transition:background .25s ease, transform .25s ease;}
.float-cta-btn:hover{background:#1d4fd1; transform:translateY(-1px);}
.float-cta-btn svg{width:15px; height:15px; flex-shrink:0;}
.float-cta-close{
  width:24px; height:24px; border-radius:50%; border:none; background:var(--bg-alt); color:var(--text-3);
  font-size:16px; line-height:1; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease;
}
.float-cta-close:hover{background:var(--line); color:var(--text-1);}


/* ============ PRODUCT CATALOG (home) ============ */
.products-section{padding:100px 0; background:var(--bg-alt);}

/* Toolbar: filters + search */
.catalog-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:24px;
}
.catalog-filters{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  min-width:0; max-width:100%;
}
.catalog-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px; border-radius:999px; border:1.5px solid var(--line);
  background:#fff; color:var(--text-2); font-size:14px; font-weight:600;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.catalog-chip:hover{border-color:var(--primary); color:var(--primary); transform:translateY(-1px);}
.catalog-chip-count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; padding:0 6px; border-radius:999px;
  background:var(--bg-alt); color:var(--text-3);
  font-size:11.5px; font-weight:700; line-height:1;
  transition:background .2s ease, color .2s ease;
}
.catalog-chip.active{
  background:var(--primary); color:#fff; border-color:var(--primary);
  box-shadow:0 4px 14px rgba(37,99,235,.26);
}
.catalog-chip.active .catalog-chip-count{background:rgba(255,255,255,.22); color:#fff;}

.catalog-search{
  position:relative; display:flex; align-items:center; flex-shrink:0;
  width:260px; max-width:100%;
}
.catalog-search svg{
  position:absolute; left:15px; color:var(--text-3); pointer-events:none;
}
.catalog-search input{
  width:100%; padding:11px 16px 11px 40px;
  border:1.5px solid var(--line); border-radius:999px; background:#fff;
  font-family:var(--ff-body); font-size:14px; color:var(--text-1);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.catalog-search input::placeholder{color:var(--text-3);}
.catalog-search input:focus{outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(37,99,235,.1);}
.catalog-search input::-webkit-search-cancel-button{cursor:pointer;}

.catalog-status{
  font-size:13px; color:var(--text-3); font-weight:600; margin-bottom:24px; min-height:19px;
}

/* `hidden` must win over the display rules below (JS toggles it). */
.catalog-grid[hidden], .pcard[hidden], .catalog-empty[hidden], .catalog-more[hidden]{display:none;}

/* Grid */
.catalog-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:24px;
  align-items:stretch;
}

/* Card */
.pcard{
  position:relative; display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line); border-radius:20px;
  overflow:hidden; box-shadow:var(--shadow-sm);
  transition:transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease, opacity .5s ease;
}
.pcard:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:rgba(37,99,235,.3);}
.pcard:focus-within{border-color:var(--primary); box-shadow:var(--shadow-md);}

.pcard-media{
  position:relative; aspect-ratio:16/10; flex-shrink:0;
  background:linear-gradient(145deg, #EAF1FF 0%, #F6FAFF 100%);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.pcard-media img{
  width:100%; height:100%; object-fit:contain; padding:22px;
  transition:transform .45s cubic-bezier(.2,.7,.2,1);
}
.pcard:hover .pcard-media img{transform:scale(1.05);}
.pcard-media-fallback{
  font-family:var(--ff-head); font-size:44px; font-weight:800; color:var(--primary); opacity:.35;
}
.pcard-badge{
  position:absolute; top:12px; right:12px; z-index:2;
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 11px; border-radius:999px;
  font-size:10.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.pcard-badge::before{content:''; width:5px; height:5px; border-radius:50%; background:currentColor;}
.pcard-badge-live{background:rgba(255,255,255,.88); color:#15803D; box-shadow:0 1px 3px rgba(15,23,42,.1);}
.pcard-badge-soon{background:#F59E0B; color:#fff;}

.pcard-body{display:flex; flex-direction:column; flex:1; padding:22px 24px 20px; min-width:0;}
.pcard-kicker{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:11px;
  font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
}
.pcard-cat{
  padding:4px 10px; border-radius:999px; background:#EFF6FF; color:var(--primary);
}
.pcard-eyebrow{color:var(--text-3);}
.pcard-title{font-size:20px; font-weight:800; line-height:1.25; margin-bottom:9px;}
.pcard-title a{color:var(--text-1); transition:color .2s ease;}
.pcard-title a::after{content:''; position:absolute; inset:0; z-index:1;}
.pcard:hover .pcard-title a{color:var(--primary);}
.pcard-desc{
  font-size:14.5px; line-height:1.62; color:var(--text-2);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.pcard-tags{display:flex; flex-direction:column; gap:8px; margin-top:16px;}
.pcard-tags li{
  display:flex; align-items:flex-start; gap:8px;
  font-size:13.5px; font-weight:500; color:var(--text-2); line-height:1.45;
}
.pcard-tags li svg{flex-shrink:0; color:var(--primary); margin-top:3px;}

.pcard-foot{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:auto; padding:15px 24px; border-top:1px solid var(--line);
  background:#FCFDFF;
}
.pcard-cta{
  display:inline-flex; align-items:center; gap:7px;
  font-size:14px; font-weight:700; color:var(--primary);
}
.pcard-cta svg{transition:transform .25s ease;}
.pcard:hover .pcard-cta svg{transform:translateX(4px);}
.pcard-ext{
  position:relative; z-index:2;
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--line); color:var(--text-3);
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pcard-ext:hover{background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-2px);}

/* Empty state + load more */
.catalog-empty{
  text-align:center; padding:56px 24px;
  background:#fff; border:1px dashed var(--line); border-radius:20px;
}
.catalog-empty-icon{
  width:52px; height:52px; margin:0 auto 18px; border-radius:16px;
  background:#EFF6FF; color:var(--primary);
  display:flex; align-items:center; justify-content:center;
}
.catalog-empty h3{font-size:20px; font-weight:800; margin-bottom:8px;}
.catalog-empty p{font-size:14.5px; color:var(--text-2); max-width:420px; margin:0 auto;}
.catalog-empty-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:22px;}
.catalog-more{display:flex; justify-content:center; margin-top:34px;}

@media (max-width: 1024px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{height:380px; max-width:480px; margin:0 auto;}
  .grid-6{grid-template-columns:repeat(2,1fr);}
  .ai-grid{grid-template-columns:repeat(3,1fr);}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .testi-spot{padding:40px 36px;}
  .contact-grid{grid-template-columns:1fr; gap:40px;}
  .foot-grid{grid-template-columns:1fr 1fr 1fr;}
  .catalog-toolbar{align-items:stretch;}
  .catalog-search{width:100%;}
}
@media (max-width: 680px){
  .nav-inner {height: 100px;}
  .btn.btn-primary{color:white; }
  .wrap{padding:0 18px;}
  .section{padding:76px 0;}
  .hero{padding:140px 0 64px;}
  .trust-row{grid-template-columns:repeat(2,1fr); max-width:none;}
  .grid-6{grid-template-columns:1fr;}
  .ai-grid{grid-template-columns:repeat(2,1fr);}
  .ai-stats{grid-template-columns:repeat(2,1fr);}
  .why-grid{grid-template-columns:1fr;}
  .testi-carousel{gap:8px;}
  .testi-arrow{width:36px; height:36px;}
  .testi-spot{padding:30px 18px;}
  .testi-spot p.q{font-size:15px;}
  .testi-foot{flex-direction:column; text-align:center;}
  .testi-foot .name, .testi-foot .role{text-align:center;}
  .form-row{grid-template-columns:1fr;}
  .catalog-grid{grid-template-columns:1fr; gap:18px;}
  .catalog-toolbar{flex-direction:column; align-items:stretch; gap:14px;}
  .catalog-filters{
    flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px;
    min-width:0; width:100%;
    scrollbar-width:none; -ms-overflow-style:none;
  }
  .catalog-chip{flex:0 0 auto;}
  .catalog-filters::-webkit-scrollbar{display:none;}
  .catalog-chip{padding:8px 14px; font-size:13px;}
  .catalog-empty{padding:40px 20px;}
  .catalog-empty-actions .btn{width:100%;}
  .pcard-body{padding:18px 20px 16px;}
  .pcard-foot{padding:14px 20px;}
  .float-cta{left:14px; right:14px; bottom:14px; padding:6px 6px 6px 14px;}
  .float-cta-btn{flex:1; justify-content:center;}
  .foot-grid{grid-template-columns:1fr 1fr; gap:36px 24px;}
  .foot-bottom{flex-direction:column; align-items:flex-start;}
  .pipeline{grid-template-columns:1fr; gap:28px; justify-items:center;}
  .pipeline-line{top:0; bottom:0; left:31px; right:auto; width:3px; height:auto;}
  .pipeline-line .fill{width:100%; height:0;}
  .pipeline.animate .pipeline-line .fill{height:100%; width:100%;}
  .pipe-step{display:flex; align-items:flex-start; gap:16px; text-align:left; width:100%; max-width:320px; padding:0;}
  .pipe-badge{margin:0; flex-shrink:0;}
  .pipe-step p{max-width:none;}
}


/* ============================================================
   RESPONSIVE REFINEMENTS
   ------------------------------------------------------------
   Appended last so these win on source order. Everything here is
   inside a media query or scoped to touch/small viewports, so the
   desktop layout above is left exactly as designed.
   ============================================================ */

/* Anchor links (#services, #products, #contact) scroll the target to y=0,
   but the nav is position:fixed - so the section heading lands underneath it
   and the user sees the middle of the section. Offsetting by the nav height
   puts the heading back in view. Applies at every width. */
html{scroll-padding-top:104px;}

/* ---------- Laptops / small desktops ---------- */
@media (max-width: 1024px){
  /* .hero-visual is a grid item carrying `margin:0 auto`. Auto margins override
     grid's default stretch alignment, so the item falls back to its fit-content
     width - and every child it has (.hv-blob, .hv-core, .float-card) is
     absolutely positioned, so fit-content resolves to 0. The box collapsed to
     zero width, .hv-core{inset:0} collapsed with it, and the centred logo
     (max-width:100%) rendered at 0x0 and vanished on phones and tablets.
     A definite width gives the auto margins something real to centre. */
  .hero-visual{width:100%;}

  .nav-inner, header.nav.scrolled .nav-inner{height:80px;}
  /* The logo PNG is mostly transparent padding - the wordmark itself is only
     ~32% of the canvas height. So these values are canvas heights, and the
     visible mark ends up roughly a third of the number (120px -> ~38px of ink,
     matching the desktop 150px -> ~48px). The canvas overflowing the nav bar is
     fine and is what the desktop layout already does: the overflow is
     transparent pixels. */
  .brand img{height:auto; max-height:120px;}
  .foot-brand img{height:auto; max-height:128px;}
  html{scroll-padding-top:92px;}
}

/* ---------- Tablets ---------- */
@media (max-width: 900px){
  .nav-inner, header.nav.scrolled .nav-inner{height:72px;}
  .brand img{max-height:106px;}
  html{scroll-padding-top:84px;}

  /* The burger was a 34x28 hit area. WCAG 2.5.5 and Google's mobile-usability
     report both want 44px minimum; the bars stay their original size, only the
     tappable box grows. */
  .burger{
    width:44px; height:44px; padding:0;
    align-items:center; justify-content:center;
  }
}

/* Tablet portrait: three footer columns get cramped well before 680px. */
@media (max-width: 860px){
  .foot-grid{grid-template-columns:1fr 1fr; gap:36px 28px;}
}

/* ---------- Phones ---------- */
@media (max-width: 680px){
  /* The nav was 90-100px tall with a 150px logo overflowing it, eating most of
     the first screen on a phone. */
  .nav-inner, header.nav.scrolled .nav-inner{height:62px;}
  .brand img{max-height:88px;}
  .foot-brand img{max-height:104px;}
  html{scroll-padding-top:74px;}

  /* Hero cleared the old taller nav; with a 62px nav this much padding just
     pushes the headline off the first screen. */
  .hero{padding:92px 0 56px;}
  .hero .lead{font-size:16.5px; margin-top:18px;}
  .hero-cta{flex-wrap:wrap; gap:10px;}
  .hero-cta .btn{flex:1 1 auto; justify-content:center;}

  /* iOS Safari zooms the whole page in whenever a focused field's text is
     under 16px, which throws the layout off mid-form. 16px is the threshold,
     not a style preference - this keeps the contact form usable on iPhone.
     Selectors mirror the base rules' specificity so they actually win. */
  .field input, .field select, .field textarea,
  .catalog-search input{font-size:16px;}

  /* Comfortable tap targets on the controls people actually use. */
  .catalog-chip{min-height:44px;}
  .catalog-search input{min-height:46px;}
  .pcard-ext{min-height:44px; display:inline-flex; align-items:center;}
  .mobile-menu a{padding:15px 4px;}
  .field input, .field select{min-height:46px;}
  .float-cta-close{width:32px; height:32px; flex-shrink:0;}

  /* Stop the floating CTA sitting on top of the footer's last row. */
  .foot-bottom{padding-bottom:78px;}

  /* Micro-labels set at 10-11px read fine on a desktop monitor but fall under
     the threshold Google's mobile-usability check calls "text too small to
     read". Nudged only on phones; the uppercase/letter-spaced look is kept. */
  .pcard-badge{font-size:11.5px;}
  .pcard-cat, .pcard-eyebrow{font-size:12px;}
  .pipe-badge .idx, .idx{font-size:11.5px;}
}

/* ---------- Small phones (iPhone SE, older Androids) ---------- */
@media (max-width: 380px){
  .wrap{padding:0 14px;}
  .nav-inner, header.nav.scrolled .nav-inner{height:58px;}
  .brand img{max-height:76px;}
  html{scroll-padding-top:70px;}
  .hero{padding:84px 0 48px;}
  .hero h1{font-size:30px;}
  .trust-row{grid-template-columns:1fr 1fr; gap:10px;}
  .ai-stats{grid-template-columns:1fr 1fr;}
  .foot-grid{grid-template-columns:1fr; gap:30px;}
  .float-cta{padding:6px 6px 6px 12px;}
  .float-cta span{font-size:12.5px;}
  .testi-spot{padding:24px 14px;}
}

/* ---------- Landscape phones ---------- */
/* A phone on its side has ~350px of height. The hero's vertical padding and
   480px visual would fill the screen with whitespace before any content. */
@media (max-height: 520px) and (orientation: landscape){
  .hero{padding:80px 0 40px;}
  .hero-visual{height:300px;}
  .mobile-menu{max-height:calc(100vh - 62px); overflow-y:auto;}
}

/* ---------- Touch devices of any size ---------- */
/* Hover-only affordances never fire on touch, and :hover can stick after a tap
   on iOS. Card lifts and the magnetic-cursor transform are desktop niceties. */
@media (hover: none){
  .trust-card:hover, .card:hover, .why-card:hover, .pcard:hover{transform:none;}
  .hero-visual{transform:none !important;}
}
