/* M2X Lab — landing page styles (v2: navy/orange "matte glass" palette, approved via preview v21) */

:root{
  --navy:#0D2234;
  --navy-deep:#081620;
  --orange:#E4572E;
  --orange-dark:#c1481f;
  --ink:#12181f;
  --ink-dim:#4a5560;
  --warm-dim:#c7d0d8;
  --border:rgba(255,255,255,.16);
  --radius:18px;
  --radius-sm:12px;
  --maxw:1120px;
  --edge-pad:20px;
  --serif:'Fraunces',Georgia,serif;
  --sans:'Hanken Grotesk',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;background:#0a1c2c}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  background:#0a1c2c;
}
/* colour wash the whole site's glass sits on top of — painted directly on the content
   wrapper (not body/html) so it always exactly matches the page's real content height,
   no matter what scroll container the page ends up embedded in (plain browser tab,
   iframe-based preview, etc.) — an absolutely/fixed-positioned overlay on body or html
   can end up sized to the wrong box in those cases and get cut off partway down the page */
.page{
  background:
    radial-gradient(65% 55% at 15% 0%, rgba(10,26,40,.9), transparent 62%),
    radial-gradient(45% 40% at 90% 15%, rgba(228,87,46,.22), transparent 60%),
    radial-gradient(80% 70% at 30% 100%, rgba(9,22,34,.95), transparent 68%),
    linear-gradient(180deg,#132c40, #0d2234 55%, #0a1c2c 100%);
}
h1,h2,h3{font-family:var(--serif);line-height:1.15;margin:0 0 .5em;font-weight:600;letter-spacing:-0.01em;color:#fff}
p{margin:0 0 1em}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.skip-link{position:absolute;left:-999px;top:0;background:#fff;color:#111;padding:10px 16px;z-index:100}
.skip-link:focus{left:12px;top:12px}

/* shared glass surfaces */
.glass{
  background:rgba(25,55,90,.2);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(140,175,210,.28);
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 20px 40px -24px rgba(4,10,18,.45);
}
.glass-dark{
  background:rgba(13,34,52,.38);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,.16);
}

/* header — floating plaque that spans the full screen width on any device */
.header-dock{position:sticky;top:0;z-index:40;padding:16px var(--edge-pad) 0}
.site-header{border-radius:16px;overflow:hidden;background:rgba(13,34,52,.9);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.22),
    inset 0 -1px 1px rgba(0,0,0,.2),
    0 22px 44px -18px rgba(4,10,18,.7),
    0 4px 14px rgba(4,10,18,.35);
}
.header-row{display:flex;align-items:center;justify-content:space-between;height:72px;padding:0 20px;max-width:none;margin:0}
#why,#work,#faq,#contact{scroll-margin-top:104px}
.logo{display:flex;align-items:baseline;gap:3px;text-decoration:none;font-family:var(--serif);font-weight:600;font-size:27px}
.logo-mark{color:var(--orange);
  text-shadow:
    0 -1px 0 rgba(0,0,0,.35),
    0 1px 0 rgba(255,180,140,.9),
    0 2px 2px rgba(0,0,0,.35),
    0 5px 12px rgba(228,87,46,.55);
}
.logo-word{color:#fff;
  text-shadow:
    0 -1px 0 rgba(0,0,0,.4),
    0 1px 0 rgba(255,255,255,.75),
    0 2px 2px rgba(0,0,0,.4),
    0 6px 14px rgba(0,0,0,.5);
}
.logo-footer{font-size:21px}
.header-tagline{font-family:var(--serif);font-style:italic;font-weight:500;font-size:15px;color:var(--warm-dim);letter-spacing:.01em;white-space:nowrap}
.primary-nav{display:flex;align-items:center;gap:10px}
.primary-nav a{text-decoration:none;font-family:var(--sans);font-weight:500;font-size:14.5px;color:#f0f2f5;white-space:nowrap}
.primary-nav > a:not(.nav-cta){display:inline-flex;align-items:center;padding:9px 16px;border-radius:11px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 1px rgba(0,0,0,.14),
    0 3px 8px -2px rgba(4,10,18,.4);
  transition:background .15s ease;
}
.primary-nav > a:not(.nav-cta):hover{background:rgba(255,255,255,.14)}
.nav-cta{background:rgba(228,87,46,.9);color:#fff !important;padding:11px 22px;border-radius:11px;font-weight:600;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -2px 3px rgba(0,0,0,.18),
    0 8px 18px -6px rgba(228,87,46,.58),
    0 2px 6px rgba(193,72,31,.36);
}
.lang-switch{position:relative;margin-left:6px}
.lang-current{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--warm-dim);letter-spacing:.02em;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:11px;padding:9px 12px;cursor:pointer;font-family:var(--sans);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 1px rgba(0,0,0,.14),0 3px 8px -2px rgba(4,10,18,.4);
  transition:background .15s ease,color .15s ease;
}
.lang-current:hover{color:#fff;background:rgba(255,255,255,.14)}
.lang-switch.is-open .lang-current{color:#fff;background:rgba(255,255,255,.14)}
.lang-caret{flex:none;color:currentColor;transition:transform .15s ease}
.lang-switch.is-open .lang-caret{transform:rotate(180deg)}
.lang-menu{position:absolute;top:100%;right:0;margin-top:10px;display:flex;flex-direction:column;gap:2px;min-width:112px;background:rgba(9,24,38,.98);backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:6px;box-shadow:0 20px 40px -16px rgba(4,10,18,.7);z-index:30}
.lang-menu[hidden]{display:none}
.lang-menu a{font-size:13px;font-weight:600;color:var(--warm-dim);text-decoration:none;padding:8px 12px;border-radius:8px;white-space:nowrap;display:flex;align-items:center;justify-content:space-between;gap:12px}
.lang-menu a:hover{color:#fff;background:rgba(255,255,255,.08)}
.lang-menu a.is-current{color:#fff;background:rgba(228,87,46,.22);font-weight:700}
.lang-menu a.is-current::after{content:"\2713";font-size:11px;opacity:.9}
@media (max-width: 900px){
  .lang-switch{margin:14px 0 0}
}
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:4px;width:38px;height:38px;background:none;border:0;cursor:pointer}
.nav-toggle span{display:block;height:2px;background:#fff;border-radius:2px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 22px;border-radius:11px;font-weight:600;font-size:14.5px;font-family:var(--sans);text-decoration:none;border:1px solid transparent;cursor:pointer;transition:transform .15s ease,opacity .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:rgba(228,87,46,.9);color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -2px 3px rgba(0,0,0,.18),
    0 8px 18px -6px rgba(228,87,46,.58),
    0 2px 6px rgba(193,72,31,.36);
}
.btn-secondary{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.32);color:#fff;backdrop-filter:blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -2px 3px rgba(0,0,0,.16),
    0 8px 18px -8px rgba(4,10,18,.55),
    0 2px 6px rgba(4,10,18,.3);
}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.28)}
.btn-lg{padding:14px 30px;font-size:16px}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 14px}

/* hero — aspect-ratio locked (not a fixed px height) so the box keeps the same proportions,
   and the ship photo the same apparent zoom/position, on any window width or device */
.hero{position:relative;color:#fff;overflow:hidden;aspect-ratio:2.5/1;min-height:460px;max-height:760px}
.hero-photo{position:absolute;inset:0;background-image:url('../img/hero-ship.jpg');background-repeat:no-repeat;background-size:contain;background-position:60% 100%;opacity:.86;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 26%, #000 64%, transparent 100%), linear-gradient(to right, transparent 0%, #000 36%, #000 64%, transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to bottom, transparent 0%, #000 26%, #000 64%, transparent 100%), linear-gradient(to right, transparent 0%, #000 36%, #000 64%, transparent 100%);
  mask-composite:intersect;
}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(180deg, rgba(9,20,31,.15) 0%, rgba(9,20,31,.05) 30%, transparent 60%)}
.hero-inner{position:absolute;top:32px;left:var(--edge-pad);width:40%;max-width:512px;padding:44px 30px;border-radius:18px;
  background:rgba(13,34,52,.4);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 20px 40px -20px rgba(4,10,18,.7);
  z-index:5;
}
.eyebrow{font-family:var(--sans);font-size:13px;font-weight:600;color:var(--orange);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.hero h1{font-size:clamp(26px,2.8vw,36px);color:#fff;margin:0 0 10px;text-shadow:0 2px 14px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5)}
.hero .lede{font-size:16px;color:var(--warm-dim);font-family:var(--sans);margin:0 0 14px;max-width:none;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hero-inner .btn{padding:10px 20px;font-size:14.5px}
.fact-row{list-style:none;font-family:var(--sans);font-size:13px;color:var(--warm-dim);border-top:1px solid rgba(255,255,255,.22);padding:10px 0 0;margin:0;display:flex;flex-wrap:wrap;gap:4px 14px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.fact-row li{display:flex;flex-direction:column;gap:1px}
.fact-row strong{color:#fff;font-weight:600;font-size:13px}
.fact-row span{font-size:12px;color:var(--warm-dim)}

/* bridge */
.bridge{padding:60px 0}
.bridge-inner{max-width:800px;padding:44px 48px;border-radius:22px;color:#fff;margin:0 auto}
.bridge .eyebrow{margin-bottom:10px}
.bridge h2{font-size:clamp(24px,3.2vw,32px);color:#fff}
.bridge p{color:var(--warm-dim);font-size:17px;font-family:var(--sans);margin:0 0 22px}

/* why */
.why{padding:60px 0 90px}
.why h2{font-size:clamp(24px,3.2vw,32px);max-width:640px;padding-left:4px;color:#fff}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:32px}
.why-card{border-radius:var(--radius);padding:28px;color:#fff}
.why-card::before{content:"";display:block;width:28px;height:3px;background:var(--orange);border-radius:2px;margin-bottom:16px}
.why-num{display:none}
.why-card h3{font-size:18.5px;font-family:var(--serif);font-weight:600;color:#fff}
.why-card p{color:var(--warm-dim);margin:0;font-size:15px;font-family:var(--sans)}

/* work / tabs */
.work{padding:80px 0}
.work h2{font-size:clamp(24px,3.4vw,34px);max-width:640px;color:#fff}
.tab-list{display:flex;gap:8px;margin:32px 0 28px}
.tab-btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);padding:10px 20px;border-radius:999px;font-weight:600;font-size:14px;font-family:var(--sans);cursor:pointer;color:var(--warm-dim)}
.tab-btn.is-active{background:rgba(228,87,46,.9);color:#fff;border-color:rgba(255,255,255,.18)}
.tab-panel[hidden]{display:none}

.product-feature-card{border-radius:var(--radius);padding:36px;display:grid;grid-template-columns:1.3fr 1fr;gap:32px;align-items:center}
.product-feature-card + .product-feature-card{margin-top:28px}
.product-feature-card p{color:var(--warm-dim)}
.product-feature-shot{display:flex;justify-content:center}
.product-feature-shot img{width:100%;max-width:420px;height:auto;aspect-ratio:1200/834;display:block;border-radius:12px;border:1px solid rgba(255,255,255,.16);box-shadow:0 20px 40px -20px rgba(4,10,18,.8)}
.badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px;margin-bottom:14px;font-family:var(--sans)}
.badge-live{background:rgba(70,200,150,.18);color:#7fe3bb;border:1px solid rgba(70,200,150,.3)}
.badge-demo{background:rgba(228,87,46,.18);color:#ff9d78;border:1px solid rgba(228,87,46,.32)}
.badge-dev{background:rgba(255,196,84,.18);color:#ffcf6b;border:1px solid rgba(255,196,84,.32)}
.feature-placeholder{width:100%;max-width:420px;aspect-ratio:1200/834;border-radius:12px;border:1px dashed rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;text-align:center;padding:20px}
.feature-placeholder-label{color:var(--warm-dim);font-size:13px;font-family:var(--sans)}
.check-list{list-style:none;margin:18px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.check-list li{padding-left:26px;position:relative;color:var(--warm-dim);font-size:15px}
.check-list li::before{content:"";position:absolute;left:0;top:6px;width:14px;height:14px;border-radius:50%;background:var(--orange)}

.demo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.demo-card{border-radius:var(--radius);padding:24px;display:flex;flex-direction:column}
.demo-card h3{font-size:18px;font-family:var(--serif)}
.demo-card p{color:var(--warm-dim);font-size:14.5px}
.link-arrow{font-weight:600;text-decoration:none;color:var(--orange);font-size:14px;font-family:var(--sans)}
.demo-note{font-size:12.5px;color:var(--warm-dim);opacity:.75;margin-top:10px}

/* services */
.services{padding:60px 0 90px}
.services h2{font-size:clamp(24px,3.2vw,32px);max-width:640px;padding-left:4px;color:#fff}
.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-top:32px}
.service-card{border-radius:var(--radius);padding:28px;color:#fff}
.service-card::before{content:"";display:block;width:28px;height:3px;background:var(--orange);border-radius:2px;margin-bottom:16px}
.service-card h3{font-size:18.5px;font-family:var(--serif);font-weight:600;color:#fff}
.service-card p{color:var(--warm-dim);margin:0;font-size:15px;font-family:var(--sans)}
.services-cta{margin-top:36px;justify-content:center}

/* cta band */
.cta-band{padding:72px 0;text-align:center}
.cta-band .cta-row{justify-content:center}
.cta-band-inner{max-width:640px;margin:0 auto;padding:48px;border-radius:24px}
.cta-band h2{font-size:clamp(24px,3.4vw,32px)}
.cta-band p{color:var(--warm-dim);max-width:520px;margin:0 auto 26px}

/* faq */
.faq{padding:80px 0}
.faq h2{font-size:clamp(24px,3.4vw,34px);color:#fff}
.faq-list{margin-top:28px;display:flex;flex-direction:column;gap:10px;max-width:760px}
details{border-radius:var(--radius-sm);padding:16px 20px}
details summary{cursor:pointer;font-weight:600;list-style:none;color:#fff;font-family:var(--sans)}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+";float:right;color:var(--orange);font-weight:800}
details[open] summary::after{content:"–"}
details p{margin:12px 0 0;color:var(--warm-dim)}

/* footer — same floating plaque treatment as header, full screen width */
.footer-dock{padding:0 var(--edge-pad) 26px}
.site-footer{border-radius:16px;overflow:hidden;background:rgba(13,34,52,.36);
  padding:15px 0 8px;color:var(--warm-dim);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.22),
    inset 0 -1px 1px rgba(0,0,0,.2),
    0 22px 44px -18px rgba(4,10,18,.7),
    0 4px 14px rgba(4,10,18,.35);
}
.footer-grid{display:flex;justify-content:space-between;flex-wrap:wrap;gap:32px;padding:0 26px;align-items:start;max-width:1120px;margin:0 auto}
.footer-grid > div:first-child{flex:0 1 340px}
.footer-tagline{font-size:13px;max-width:32ch;margin-top:3px;line-height:1.35}
.footer-col{flex:0 0 auto}
.footer-col h4{color:#fff;font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px;font-family:var(--sans);font-weight:600}
.footer-col a{display:block;text-decoration:none;font-size:13px;margin-bottom:2px;color:var(--warm-dim)}
.footer-bottom.wrap{max-width:1120px;border-top:1px solid rgba(255,255,255,.14);margin:11px auto 0;padding:6px 26px 0;font-size:11.5px}
.footer-bottom p{margin:0}

/* sticky mobile cta */
.sticky-cta{display:none;position:fixed;left:0;right:0;bottom:0;z-index:50;padding:12px 16px;background:rgba(8,22,32,.92);backdrop-filter:blur(6px);border-top:1px solid rgba(255,255,255,.14)}
.sticky-cta .btn{width:100%}

/* responsive */

/* tablet / narrow-desktop band: aspect-ratio:2.5 would make the hero too short for the
   card at these widths, so pin a fixed height instead — identical on every browser at a
   given width, just a different fixed number than the wide-desktop band */
@media (max-width: 1024px){
  .hero{aspect-ratio:auto;min-height:0;max-height:none;height:560px}
}

/* the tagline is the first thing to give up its spot */
@media (max-width: 1180px){
  .header-tagline{display:none}
}

@media (max-width: 900px){
  .why-grid,.demo-grid,.service-grid{grid-template-columns:1fr 1fr}
  .product-feature-card{grid-template-columns:1fr}
  .product-feature-shot{order:-1}
}

/* shrink the nav's own padding/gaps before dropping to the hamburger menu */
@media (max-width: 880px){
  .header-row{padding:0 14px}
  .primary-nav{gap:6px}
  .primary-nav > a:not(.nav-cta){padding:9px 12px}
  .nav-cta{padding:11px 16px}
}

@media (max-width: 720px){
  .primary-nav{position:fixed;inset:88px var(--edge-pad) auto var(--edge-pad);border-radius:16px;flex-direction:column;align-items:stretch;gap:0;padding:8px 18px;display:none;overflow-y:auto;max-height:calc(100vh - 110px);
    background:rgba(13,34,52,.94);
    backdrop-filter:blur(22px) saturate(160%);
    -webkit-backdrop-filter:blur(22px) saturate(160%);
    border:1px solid rgba(255,255,255,.16);
    box-shadow:0 22px 44px -18px rgba(4,10,18,.7);
  }
  .primary-nav.is-open{display:flex}
  .primary-nav > a:not(.nav-cta){background:none;border:none;box-shadow:none;width:100%;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.14);border-radius:0}
  .primary-nav .nav-cta{margin-top:14px;text-align:center}
  .nav-toggle{display:flex}
  .why-grid,.demo-grid,.service-grid{grid-template-columns:1fr}
  .lang-current{padding:14px 0;width:100%;justify-content:space-between;background:none;border:none;box-shadow:none;border-radius:0}
  .lang-menu{position:static;margin-top:0;gap:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:none;box-shadow:none;padding:0 0 6px 0}
  .lang-menu a{padding:10px 12px;border-radius:8px}
  .lang-menu a.is-current{background:rgba(228,87,46,.22)}
  .hero{height:600px}
  .hero-inner{width:calc(100% - 2*var(--edge-pad));max-width:none}
  .hero-inner,.bridge-inner,.cta-band-inner{padding:28px 24px}
  .footer-grid{flex-direction:column;flex-wrap:nowrap;gap:20px}
  /* flex-basis is a HEIGHT in a column-direction flex container, not a width — without this
     override the brand block tries to be 340px tall and leaves a big empty gap */
  .footer-grid > div:first-child{flex-basis:auto}
  .sticky-cta{display:block}
  body{padding-bottom:70px}
}
@media (max-width: 420px){
  .cta-row{flex-direction:column}
  .cta-row .btn{width:100%}
}
