/* ==========================================================================
   1ERP — redesign stylesheet (Inter, blue palette, responsive)
   Breakpoints: desktop (default) / tablet <=1024px / mobile <=640px
   ========================================================================== */

:root{
  --navy:#012e47;
  --blue:#0069a5;
  --blue-dark:#015276;
  --blue-deep:#015683;
  --blue-grad-top:#0a7cc2;
  --blue-grad-bot:#01293f;
  --lightblue:#e7f2f9;
  --chip:#cfe8fb;
  --slate:#475568;
  --border:#e6eef5;
  --bg-soft:#f4f8fc;
  --eyebrow-dark:#5bb8e8;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:90px}
html,body{overflow-x:hidden;max-width:100%}
body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--slate);
  background:#fff;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
/* Let grid/flex items shrink below their content's intrinsic width
   (prevents wide images from forcing horizontal overflow). */
.hero-grid>*,.about-grid>*,.product>*,.team-card>*,
.footer-grid>*,.service-grid>*,.t-grid>*,.hero-visual,.product-visual{min-width:0}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

.container{max-width:1440px;margin:0 auto;padding:0 80px}  /* matches Figma 1280 content + 80 gutters */

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:600;font-size:16px;border-radius:10px;
  padding:15px 28px;cursor:pointer;border:none;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-deep);transform:translateY(-2px);box-shadow:0 10px 22px -8px rgba(0,105,165,.55)}
.btn-ghost{background:#fff;color:var(--navy);border:1.5px solid var(--border)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn .arrow{font-size:18px;line-height:1}
.see-video{gap:10px}
.see-video .play{display:inline-flex;align-items:center}
.see-video .play svg{width:20px;height:20px;display:block}

/* ---------- shared section heading ---------- */
.eyebrow{
  font-size:13px;font-weight:700;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--blue);
}
.eyebrow.light{color:var(--eyebrow-dark)}
.section-head h2{
  font-size:38px;font-weight:800;color:var(--navy);line-height:1.15;margin-top:12px;
}
.section-head h2.on-dark{color:#fff}
.section-head.center{text-align:center;margin-bottom:54px;display:flex;flex-direction:column;align-items:center}
.section-head .eyebrow{margin-bottom:0}
section{padding:100px 0}

/* ============================ NAVBAR ============================ */
.navbar{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--border);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:80px}
.brand{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:800;font-size:24px;color:var(--navy);letter-spacing:-.5px;
}
.brand.on-dark{color:#fff}
.brand-dot{width:12px;height:12px;border-radius:50%;background:var(--blue);display:inline-block}
.logo-img{height:38px;width:auto;display:block}
.logo-white{filter:brightness(0) invert(1)}
.footer .logo-img{height:30px}
.nav-links{display:flex;gap:34px}
.nav-links a{font-weight:500;font-size:15px;color:var(--navy);transition:color .15s}
.nav-links a:hover{color:var(--blue)}
.nav-cta{padding:12px 22px;font-size:15px}
.menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px}
.menu-toggle span{width:24px;height:2px;background:var(--navy);border-radius:2px;transition:.25s}
.menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-menu{
  display:none;flex-direction:column;background:#fff;
  border-bottom:1px solid var(--border);overflow:hidden;
  max-height:0;transition:max-height .3s ease;
}
.mobile-menu.open{display:flex}
.mobile-menu a{padding:16px 40px;font-weight:600;color:var(--navy);border-top:1px solid var(--border)}

/* ============================ HERO ============================ */
.hero{position:relative;overflow:hidden;padding:76px 0}
.hero .container{max-width:1720px}      /* hero fills more on wide screens, like the design */
.hero-grid{display:grid;grid-template-columns:minmax(0,600px) 1fr;gap:48px;align-items:center}
.hero-copy{position:relative;z-index:2}
.hero-copy h1{
  font-size:52px;line-height:1.1;font-weight:800;color:var(--navy);letter-spacing:-1px;
}
.hero-copy h1 .accent{color:var(--blue)}
.hero-sub{margin-top:22px;font-size:18px;max-width:540px;color:var(--slate)}
.hero-ctas{display:flex;gap:16px;margin-top:30px;flex-wrap:wrap}
.hero-stats{display:flex;align-items:center;gap:28px;margin-top:44px;flex-wrap:wrap}
.stat{display:flex;flex-direction:column}
.stat-num{font-size:22px;font-weight:800;color:var(--navy)}
.stat-label{font-size:13px;color:var(--slate);margin-top:4px}
.stat-div{width:1px;height:42px;background:var(--border)}

/* Navy diagonal panel is anchored to the visual column (so it can never reach
   the copy), and bleeds off the right edge. The dashboard sits on top of it. */
.hero-visual{position:relative;display:block}
.hero-visual::before{
  content:"";position:absolute;z-index:0;
  top:-260px;bottom:-260px;left:-30px;right:-50vw;
  background-color:#012e47;
  background-image:linear-gradient(130deg,#0a6fa8 0%,#012e47 72%);
  background-repeat:no-repeat;
  background-size:760px 100%;
  background-position:left top;
  /* matches Figma path M0 0 H680 V759 H165 L0 0Z: wider at top, diagonal slants down-right */
  clip-path:polygon(0 0, 100% 0, 100% 100%, 150px 100%);
}
/* ---- Hero dashboard: built from real layers (animatable), not an image ---- */
.dash-scale{position:relative;width:100%}
.dash{
  position:absolute;top:0;right:0;z-index:1;width:600px;
  background:#fff;border-radius:16px;overflow:hidden;display:flex;
  box-shadow:0 30px 60px -18px rgba(1,46,71,.55);
  transform-origin:top right;            /* right edge pinned to the column; JS scales to fit (no reflow, no overflow) */
  animation:dashIn .85s ease both;
}
@keyframes dashIn{from{opacity:0}to{opacity:1}}
.dash-side{width:26%;background:#012e47;padding:18px 12px;display:flex;flex-direction:column}
.dash-brand{display:flex;align-items:center;gap:7px;color:#fff;font-weight:700;font-size:14px;margin-bottom:14px;padding-left:6px}
.dash-brand .dot{width:9px;height:9px;border-radius:50%;background:#0a9be0}
.dash-nav{display:flex;flex-direction:column;gap:4px}
.dn{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;color:#9fb6c8;font-size:12.5px;font-weight:500}
.dn .dn-ic{width:15px;height:15px;border-radius:4px;background:#143b56;flex:none}
.dn.active{background:#0069a5;color:#fff}
.dn.active .dn-ic{background:#7fc4ec}
.dash-main{flex:1;min-width:0;padding:18px 18px 8px;display:flex;flex-direction:column;gap:13px}
.dash-top{display:flex;justify-content:space-between;align-items:flex-start}
.dash-top h4{font-size:16px;font-weight:700;color:#012e47;line-height:1.2}
.dash-top p{font-size:11px;color:#8aa0b2;margin-top:3px}
.dash-avatar{width:30px;height:30px;border-radius:50%;background:#0069a5;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.dash-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.kpi{background:#f6fafd;border:1px solid #eef3f8;border-radius:10px;padding:10px 11px;display:flex;flex-direction:column;gap:4px}
.kpi-l{font-size:10px;color:#8aa0b2}
.kpi-n{font-size:21px;font-weight:800;color:#012e47;line-height:1}
.kpi-d{font-size:10px;font-weight:600}
.kpi-d.up{color:#16a34a}
.kpi-d.down{color:#e0533d}
.dash-charts{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.chart{background:#fff;border:1px solid #eef3f8;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:9px}
.chart-t{font-size:11px;font-weight:600;color:#012e47}
.bars{display:flex;align-items:flex-end;gap:6px;height:60px}
.bars i{flex:1;background:#cfe2f3;border-radius:3px}
.bars i.hi{background:#0069a5}
.spark{width:100%;height:60px;display:block;transform-origin:bottom;transform:scaleY(0);transition:transform 1.5s cubic-bezier(.2,.7,.2,1) .15s}
.spark.rise{transform:scaleY(1)}
@media (prefers-reduced-motion:reduce){.spark{transition:none;transform:none}}
.bars i{height:0;transition:height 1.1s cubic-bezier(.2,.7,.2,1)}
.dash-table{display:flex;flex-direction:column;margin-top:2px}
.dt-head,.dt-row{display:grid;grid-template-columns:1.55fr 1fr .65fr;align-items:center;padding:9px 2px}
.dt-head{font-size:10px;color:#8aa0b2;font-weight:600;border-bottom:1px solid #e9eff5}
.dt-row{font-size:11.5px;color:#012e47;border-bottom:1px solid #f1f5f9}
.dt-row:last-child{border-bottom:none}
.dt-head .prog,.dt-row .prog{text-align:right;font-weight:600}
.s-pill{justify-self:start;font-size:10px;font-weight:600;padding:3px 9px;border-radius:100px}
.s-pill.live{background:#e7f7ee;color:#16a34a}
.s-pill.prog{background:#e7f2f9;color:#015683}
.s-pill.test{background:#fbeedd;color:#c0791f}
.s-pill.queue{background:#eef1f4;color:#8a97a6}
@media (prefers-reduced-motion:reduce){.dash{animation:none}}

/* ============================ ABOUT ============================ */
.about-grid{display:grid;grid-template-columns:380px 1fr;gap:64px;align-items:center}
.about-visual img{border-radius:20px;width:100%}
.about-text h2{font-size:38px;font-weight:800;color:var(--navy);line-height:1.15;margin:12px 0 18px}
.about-text .body{font-size:16px;color:var(--slate);max-width:560px}
.about-tagline{margin-top:22px;font-size:26px;font-weight:800;color:var(--blue)}

/* ============================ SERVICES ============================ */
.services{background:var(--bg-soft)}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.service-tile{
  background:linear-gradient(180deg,var(--blue-grad-top),var(--blue-grad-bot));
  border-radius:22px;padding:32px 28px;color:#fff;
  box-shadow:0 18px 28px -12px rgba(1,46,71,.45);
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;flex-direction:column;gap:16px;
}
.service-tile:hover{transform:translateY(-8px);box-shadow:0 26px 40px -14px rgba(1,46,71,.55)}
.service-badge{
  width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;
}
.service-badge svg{width:26px;height:26px}
.service-tile h3{font-size:18px;font-weight:700;line-height:1.3;min-height:3.9em}  /* reserve 3 lines so all bodies align */
.service-tile p{font-size:14px;color:rgba(255,255,255,.85);line-height:1.55}

/* ============================ PRODUCTS ============================ */
.products .container{max-width:1600px}   /* a bit wider so product visuals read larger */
.product{
  display:grid;grid-template-columns:1fr 1.08fr;gap:64px;align-items:center;
  margin-top:80px;
}
.product.reverse{grid-template-columns:1.08fr 1fr}
.product:first-of-type{margin-top:8px}
.product.reverse .product-text{order:2}
.product.reverse .product-visual{order:1}
.product-name{font-size:30px;font-weight:800;color:var(--blue)}
.product-tagline{font-size:18px;font-weight:600;color:var(--navy);margin-top:14px}
.product-desc{font-size:16px;color:var(--slate);margin-top:16px;line-height:1.6}
.pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.pill{
  background:var(--lightblue);color:var(--blue-deep);
  font-size:13px;font-weight:600;padding:8px 14px;border-radius:100px;
}
.see-video{margin-top:26px}
.product-visual{position:relative;display:flex;justify-content:center}
.product-visual::before{
  content:"";position:absolute;inset:-11%;z-index:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,105,165,.55),rgba(0,105,165,.2) 52%,transparent 80%);
  filter:blur(46px);
}
.product-visual img{
  position:relative;z-index:1;width:100%;border-radius:18px;border:1px solid var(--border);
  box-shadow:0 24px 50px -10px rgba(1,46,71,.28);
}

/* ---- AI Connect: built, animatable chat mockup (not an image) ---- */
.mock-scale{position:relative;width:100%}
.aiwin{
  position:absolute;top:0;right:0;z-index:1;width:660px;
  background:#fff;border-radius:16px;border:1px solid var(--border);overflow:hidden;
  box-shadow:0 24px 50px -10px rgba(1,46,71,.28), 0 0 90px rgba(0,105,165,.5);
  transform-origin:top right;
}
.aiwin-top{display:flex;align-items:center;gap:9px;padding:13px 18px;border-bottom:1px solid #eef3f8}
.aiwin-top .wd{width:9px;height:9px;border-radius:50%;background:#cdd9e5}
.aiwin-brand{display:flex;align-items:center;gap:7px;margin-left:6px;font-weight:700;font-size:14px;color:#012e47}
.aiwin-logo{width:18px;height:18px;border-radius:5px;background:#0069a5}
.aiwin-body{display:flex;min-height:386px}
.aiwin-side{width:30%;background:#012e47;padding:18px 14px;display:flex;flex-direction:column;gap:7px}
.aiwin-ws{font-size:10px;font-weight:600;letter-spacing:.06em;color:#5b88a5;margin-bottom:4px}
.ain{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;color:#9fc0d6;font-size:13px;font-weight:500}
.ain-ic{width:15px;height:15px;border-radius:4px;background:#1d4d68;flex:none}
.ain.active{background:#0069a5;color:#fff}
.ain.active .ain-ic{background:rgba(255,255,255,.85)}
.aiwin-chat{flex:1;min-width:0;display:flex;flex-direction:column;padding:18px}
.aic-thread{flex:1;display:flex;flex-direction:column;gap:14px}
.aic-user{align-self:flex-end;max-width:80%;background:#0069a5;color:#fff;font-size:13px;line-height:1.45;padding:11px 14px;border-radius:14px;border-bottom-right-radius:4px}
.aic-resp{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#012e47}
.aic-ai{width:22px;height:22px;border-radius:50%;background:#e7f2f9;color:#0069a5;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.aic-results{background:#f7fafd;border:1px solid var(--border);border-radius:12px;padding:4px 14px}
.aicr-row{display:grid;grid-template-columns:1.4fr 1fr .8fr;align-items:center;padding:9px 0;border-bottom:1px solid #eef3f8;font-size:12.5px;color:#012e47}
.aicr-row:last-child{border-bottom:none}
.aicr-row .r{text-align:right;font-weight:700}
.aicr-head{font-size:10px;font-weight:600;letter-spacing:.04em;color:#8aa3b5}
.aicr-head .r{font-weight:600}
.aic-input{display:flex;align-items:center;gap:10px;margin-top:14px;border:1px solid #dce7f0;border-radius:12px;padding:7px 7px 7px 16px}
.aic-field{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;display:flex;align-items:center}
.aic-ph{color:#90a4b5}
.aic-typed{color:#012e47}
.aic-caret{width:1.5px;height:15px;background:#0069a5;display:inline-block;margin-left:1px;opacity:0}
.aic-caret.on{animation:aicBlink .9s step-end infinite}
@keyframes aicBlink{50%{opacity:0}0%,100%{opacity:1}}
.aic-send{width:34px;height:34px;flex:none;border:none;border-radius:9px;background:#0069a5;display:flex;align-items:center;justify-content:center;cursor:pointer}
.aic-send svg{width:16px;height:16px}
/* chat reveal states (animated in on scroll) */
.aic-user,.aic-resp,.aic-results{opacity:0;transform:translateY(10px);transition:opacity .45s ease,transform .45s ease}
.aic-user.show,.aic-resp.show,.aic-results.show{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.aic-user,.aic-resp,.aic-results{opacity:1;transform:none}}

/* ---- Smart Templates: built, animatable Excel mockup ---- */
.xlwin{
  position:absolute;top:0;left:0;z-index:1;width:680px;
  background:#fff;border-radius:16px;border:1px solid var(--border);overflow:hidden;
  box-shadow:0 24px 50px -10px rgba(1,46,71,.28), 0 0 90px rgba(0,105,165,.5);transform-origin:top left;
}
.xl-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #eef3f8}
.xl-brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px;color:#012e47}
.xl-logo{width:22px;height:22px;border-radius:6px;background:#0069a5;display:flex;align-items:center;justify-content:center}
.xl-actions{display:flex;gap:8px}
.xlbtn{display:flex;align-items:center;gap:6px;border:none;background:#f1f6fb;color:#015683;font-size:12px;font-weight:600;padding:7px 11px;border-radius:8px;cursor:pointer;transition:background .2s,box-shadow .2s,color .2s}
.xlbtn svg{width:14px;height:14px}
.xlbtn.active{background:#0069a5;color:#fff;box-shadow:0 6px 14px -4px rgba(0,105,165,.55)}
.xlbtn.active svg{stroke:#fff}
.xl-formula{display:flex;align-items:center;border-bottom:1px solid #e4e9f0;font-size:12px;background:#f7f9fb}
.xl-namebox{width:56px;text-align:center;padding:7px 0;border-right:1px solid #d9dfe6;font-weight:600;color:#012e47;background:#fff;transition:.2s}
.xl-fx{padding:0 12px;color:#9aa7b5;font-weight:600}
.xl-ftext{color:#33506a;white-space:nowrap;overflow:hidden}
.xl-row{display:grid;grid-template-columns:34px 116px 1.5fr 1.15fr 1fr .85fr}
.xl-row>span{padding:0 10px;min-height:38px;display:flex;align-items:center;border-bottom:1px solid #e4e9f0;border-right:1px solid #e4e9f0;font-size:12.5px;color:#012e47;white-space:nowrap;overflow:hidden}
.xl-row>span.r{justify-content:flex-end;font-weight:700}
.xl-colhead>span{min-height:0;padding:5px 0;justify-content:center;background:#eef1f4;color:#8a97a6;font-weight:600;font-size:10px;border-color:#d9dfe6}
.xl-rownum{justify-content:center!important;padding:0!important;background:#eef1f4;color:#8a97a6;font-weight:600;font-size:10px;border-color:#d9dfe6!important}
.xl-titles>span{font-weight:700;color:#3a4d5e;font-size:11px}
.xl-cellsel{outline:2px solid #0069a5;outline-offset:-2px;background:rgba(0,105,165,.07)}
.xl-pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;padding:3px 9px;border-radius:100px}
.xl-pill.ready{background:#e7f6ee;color:#1a8a4f}
.xl-pill.up{background:#e7f2f9;color:#015683}
.xl-pill .d{width:6px;height:6px;border-radius:50%;background:currentColor}
.cv{opacity:0;transform:translateY(3px);transition:opacity .35s ease,transform .35s ease}
.cv.show{opacity:1;transform:none}
.xl-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid #eef3f8}
.xl-sync{display:flex;align-items:center;gap:7px;font-size:11px;color:#6b8294}
.xl-dot{width:8px;height:8px;border-radius:50%;background:#c0ccd6;transition:.3s}
.xl-sync.live .xl-dot{background:#1a8a4f}
.xl-dl{border:none;background:#0069a5;color:#fff;font-size:12px;font-weight:600;padding:9px 14px;border-radius:9px;cursor:pointer;transition:box-shadow .2s,transform .2s}
.xl-dl.active{box-shadow:0 8px 18px -4px rgba(0,105,165,.6);transform:translateY(-1px)}
.xl-tabs{display:flex;gap:2px;align-items:flex-end;background:#eef1f4;border-top:1px solid #dde3ea;padding-left:10px}
.xl-tab{padding:7px 14px;font-size:10.5px;font-weight:500;color:#8a97a6}
.xl-tab.active{background:#fff;color:#012e47;font-weight:600;border-top:2px solid #0069a5;border-top-left-radius:4px;border-top-right-radius:4px}

/* ---- FusionFX: built, animated rate-sync mockup ---- */
.fxwin{
  position:absolute;top:0;right:0;z-index:1;width:680px;
  background:linear-gradient(135deg,#0a4f7a 0%,#012e47 78%);
  border-radius:18px;border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 50px -10px rgba(1,46,71,.4), 0 0 90px rgba(0,105,165,.5);transform-origin:top right;
  display:flex;align-items:center;padding:48px 40px;
}
.fx-card{flex:1;min-width:0;background:#fff;border-radius:14px;padding:20px 22px;box-shadow:0 10px 24px -8px rgba(0,0,0,.28)}
.fx-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.06em;color:#0069a5;padding-bottom:12px;margin-bottom:4px;border-bottom:1px solid #e6eef5}
.fx-badge{display:inline-flex;align-items:center;gap:4px;background:#e7f7ee;color:#16a34a;font-size:10px;font-weight:600;padding:3px 8px;border-radius:100px;letter-spacing:0}
.fx-badge svg{width:10px;height:10px}
.fx-rate{display:flex;align-items:center;padding:11px 0;font-size:14px}
.fx-rate+.fx-rate{border-top:1px solid #f1f5f9}
.fx-cur{font-weight:600;color:#012e47;width:46px;flex:none}
.fx-val{flex:1;color:#475568;font-weight:500}
.fx-tr{font-weight:700;font-size:13px;width:14px;text-align:right}
.fx-tr.up{color:#16a34a}.fx-tr.down{color:#e0533d}.fx-tr.flat{color:#9aa7b5}
.fx-ck{color:#0069a5;font-weight:700;width:14px;text-align:right}
.fx-conn{position:relative;width:120px;flex:none;display:flex;align-items:center;justify-content:center;align-self:stretch}
.fx-line{position:absolute;top:50%;left:6px;right:6px;height:2px;background:rgba(255,255,255,.22)}
.fx-line::after{content:"";position:absolute;right:-1px;top:-4px;border-left:8px solid rgba(255,255,255,.5);border-top:5px solid transparent;border-bottom:5px solid transparent}
.fx-packet{position:absolute;top:50%;left:0;width:7px;height:7px;border-radius:50%;background:#5bb8e8;transform:translate(-50%,-50%);box-shadow:0 0 9px #5bb8e8;animation:fxflow 1.9s linear infinite}
.fx-packet.d2{animation-delay:.63s}
.fx-packet.d3{animation-delay:1.26s}
@keyframes fxflow{0%{left:0;opacity:0}12%{opacity:1}88%{opacity:1}100%{left:100%;opacity:0}}
.fx-sync{position:relative;z-index:2;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.32);display:flex;align-items:center;justify-content:center}
.fx-sync svg{width:20px;height:20px;animation:fxspin 2.4s linear infinite}
@keyframes fxspin{to{transform:rotate(360deg)}}
.fx-conn-label{position:absolute;left:0;right:0;text-align:center;top:calc(50% + 30px);font-size:10px;color:rgba(255,255,255,.72)}
@media (prefers-reduced-motion:reduce){.fx-sync svg{animation:none}.fx-packet{display:none}}

/* ============================ TEAM ============================ */
.team-card{
  display:grid;grid-template-columns:300px 1fr;gap:40px;align-items:center;
  background:#fff;border:1px solid var(--border);border-radius:24px;padding:36px;
  box-shadow:0 18px 40px -20px rgba(1,46,71,.25);max-width:980px;margin:0 auto;
}
.team-photo img{border-radius:18px;width:100%;object-fit:cover}
.team-info h3{font-size:28px;font-weight:800;color:var(--navy)}
.team-role{color:var(--blue);font-weight:600;margin-top:6px}
.team-bio{margin-top:18px;font-size:15.5px;color:var(--slate);line-height:1.65}

/* ============================ TESTIMONIALS ============================ */
.testimonials{background:var(--navy)}
.t-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.t-card{
  position:relative;background:#fff;border-radius:16px;padding:28px 26px;
  box-shadow:0 10px 22px -8px rgba(0,0,0,.25);overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;flex-direction:column;gap:16px;
}
.t-card:hover{transform:translateY(-6px);box-shadow:0 18px 30px -10px rgba(0,0,0,.3)}
.t-icon{
  width:52px;height:52px;border-radius:26px;background:var(--chip);
  display:flex;align-items:center;justify-content:center;
}
.t-icon svg{width:26px;height:26px}
.t-quote{font-size:15px;color:var(--slate);line-height:1.6}
.t-by{font-size:14px;font-weight:600;color:var(--navy)}
.t-mark{
  position:absolute;top:8px;right:24px;font-size:64px;font-weight:800;
  color:rgba(0,105,165,.3);line-height:1;font-family:Georgia,serif;
}

/* ============================ EVENTS ============================ */
.events{background:#fff}
.carousel{overflow:hidden;width:100%}
.carousel-track{display:flex;transition:transform .45s ease}
.carousel-slide{min-width:100%;display:flex;justify-content:center;padding:4px}
.event-card{
  width:100%;max-width:840px;background:#fff;border:1px solid var(--border);
  border-radius:20px;padding:40px;box-shadow:0 14px 34px -18px rgba(1,46,71,.25);
}
.event-card h3{font-size:28px;font-weight:800;color:var(--blue)}
.event-desc{margin-top:14px;font-size:16px;color:var(--slate);line-height:1.6}
.event-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;flex-wrap:wrap}
.event-date{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:var(--slate)}
.event-date svg{width:18px;height:18px}
.carousel-dots{display:flex;justify-content:center;gap:9px;margin-top:30px}
.dot{width:8px;height:8px;border-radius:50%;border:none;background:#d3dde6;cursor:pointer;padding:0;transition:.2s}
.dot.active{width:10px;height:10px;background:var(--blue)}
.events-empty{text-align:center;color:var(--slate);font-size:17px}

/* ============================ CONTACT ============================ */
.contact{background:var(--bg-soft)}
.contact-intro{max-width:620px;margin:8px auto 0;font-size:16px;color:var(--slate);text-align:center}
.contact-form{
  max-width:860px;margin:0 auto;background:#fff;border:1px solid var(--border);
  border-radius:20px;padding:40px;display:flex;flex-direction:column;gap:20px;
}
.form-row{display:flex;gap:20px}
.form-row input{flex:1}
.contact-form input,.contact-form textarea{
  width:100%;font-family:inherit;font-size:15px;color:var(--navy);
  border:1px solid #d8e2ec;border-radius:10px;padding:14px 16px;background:#fff;
  resize:vertical;
}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#90a0ae}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--blue)}
.form-send{display:flex;justify-content:center}

/* ============================ FOOTER ============================ */
.footer{background:var(--navy);color:#c4d4e0;padding:72px 0 28px}
.footer-grid{display:grid;grid-template-columns:1.6fr .8fr 1fr .8fr;gap:40px}
.f-brand .brand{margin-bottom:18px}
.f-desc{font-size:14px;color:#9fb3c4;line-height:1.7;max-width:340px}
.f-col h4{color:#fff;font-size:15px;font-weight:700;margin-bottom:18px}
.f-col a{display:block;color:#c4d4e0;font-size:14px;margin-bottom:14px;transition:color .15s}
.f-col a:hover{color:#fff}
.socials{display:flex;gap:20px;align-items:center}
.social{color:#c4d4e0;transition:color .18s, transform .18s}
.social svg{width:22px;height:22px;display:block}
.social:hover{color:#fff;transform:translateY(-2px)}
.footer-bottom{margin-top:44px}
.footer-divider{height:1px;background:rgba(255,255,255,.12);margin-bottom:24px}
.footer-bottom p{text-align:center;font-size:12px;color:#9fb3c4}

/* ============================ TABLET ============================ */
@media (max-width:1024px){
  .container{padding:0 48px}
  section{padding:72px 0}
  .nav-links{display:none}
  .nav-cta{display:none}
  .menu-toggle{display:flex}
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .hero-copy h1{font-size:40px}
  .hero-visual{justify-content:center}
  .hero-visual::before{display:none}
  .about-grid{grid-template-columns:300px 1fr;gap:40px}
  .about-text h2,.section-head h2{font-size:30px}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .product,.product.reverse{grid-template-columns:1fr;gap:32px}
  .product.reverse .product-text{order:1}
  .product.reverse .product-visual{order:2}
  .product-visual{max-width:560px;margin:0 auto;width:100%}
  .t-grid{grid-template-columns:1fr;max-width:560px;margin:0 auto}
  .footer-grid{grid-template-columns:1fr 1fr;gap:36px}
}

/* ============================ MOBILE ============================ */
@media (max-width:640px){
  .container{padding:0 24px}
  section{padding:56px 0}
  .btn{padding:14px 22px;font-size:15px}
  .hero{padding:48px 0}
  /* Figma mobile order: headline -> dashboard -> body -> buttons -> stats band */
  .hero-grid{display:flex;flex-direction:column;gap:0;align-items:stretch}
  .hero-copy{display:contents}
  .hero-copy h1{order:1;font-size:32px;margin:0}
  .hero-visual{order:2;margin:26px 0 2px}
  .hero-sub{order:3;font-size:16px;margin-top:18px}
  .hero-ctas{order:4;flex-direction:column;align-items:stretch;margin-top:24px}
  .hero-ctas .btn{justify-content:center}
  .hero-stats{order:5;margin-top:26px;gap:0;flex-wrap:nowrap;justify-content:space-between;
    background:#eef5fb;border-radius:14px;padding:18px 4px;align-items:stretch}
  .hero-stats .stat{flex:1 1 0;min-width:0;padding:0 12px;justify-content:center}
  .hero-stats .stat:first-child .stat-num{color:var(--blue)}
  .stat-num{font-size:15px}
  .stat-label{font-size:11px;margin-top:6px}
  .stat-div{width:1px;height:auto;align-self:stretch;background:#d6e3ef;flex:none}
  .hero-backdrop{display:none}
  .dash{box-shadow:0 18px 40px -16px rgba(1,46,71,.4)}
  .section-head.center{margin-bottom:36px}
  .section-head h2,.about-text h2{font-size:26px}
  .about-grid{grid-template-columns:1fr;gap:28px}
  .about-visual{max-width:300px;margin:0 auto}
  .about-text{text-align:center}
  .about-text .body{margin-left:auto;margin-right:auto}
  .about-tagline{font-size:22px}
  .service-grid{grid-template-columns:1fr}
  .product{margin-top:48px}
  /* Figma mobile order: name -> tagline -> visual -> description -> pills -> video */
  .product,.product.reverse{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .product .product-text{display:contents}
  .product .product-name{order:1;font-size:24px}
  .product .product-tagline{order:2}
  .product .product-visual{order:3;margin:18px 0 4px}
  .product .product-desc{order:4}
  .product .pills{order:5;gap:8px}
  .product .see-video{order:6;align-self:flex-start;width:auto}
  .team-card{grid-template-columns:1fr;padding:24px;gap:24px;text-align:center}
  .team-photo{max-width:240px;margin:0 auto}
  .team-info h3{font-size:24px}
  .event-card{padding:26px}
  .event-card h3{font-size:22px}
  .event-foot{flex-direction:column;align-items:flex-start}
  .event-reg{width:100%;justify-content:center}
  .contact-form{padding:24px}
  .form-row{flex-direction:column;gap:20px}
  .footer{padding:48px 0 24px}
  .footer-grid{grid-template-columns:1fr;gap:32px}
}
