/* ===========================================================================
   MEK Tech — site styles  ·  v3: Light / Clean / Professional (product studio)
   Single family: Plus Jakarta Sans (ties to Cambium). Navy ink + green accent,
   soft shadows, generous whitespace. Product pages can deepen the green theme.
   =========================================================================== */

:root {
  /* palette — light professional --------------------------------------- */
  --bg:        #FFFFFF;
  --bg-soft:   #F4F7FB;   /* alternating section background */
  --surface:   #FFFFFF;   /* cards */
  --ink:       #15233C;   /* headings */
  --body:      #46566F;   /* body text */
  --muted:     #7E8CA3;   /* captions / tertiary */
  --line:      #E7ECF3;
  --line-2:    #DBE3ED;

  --brand:     #14315C;   /* navy — primary brand + buttons */
  --brand-700: #0E2547;
  --brand-deep:#0E2547;
  --green:     #2EA02E;   /* accent (Cambium) */
  --green-700: #1E8A28;   /* green text/links on white */
  --green-50:  #EAF6EA;
  --amber:     #C9A23A;   /* secondary accent (DataGate) */
  --amber-700: #9C7C22;

  --accent:      var(--brand);
  --accent-deep: var(--brand-deep);

  --shadow-sm:  0 1px 2px rgba(18,33,60,.05), 0 4px 12px rgba(18,33,60,.05);
  --shadow:     0 2px 6px rgba(18,33,60,.06), 0 18px 40px -18px rgba(18,33,60,.20);
  --shadow-lift:0 4px 10px rgba(18,33,60,.08), 0 30px 60px -24px rgba(18,33,60,.28);

  /* type --------------------------------------------------------------- */
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t--1: clamp(0.80rem, 0.77rem + 0.13vw, 0.875rem);
  --t-0:  clamp(1.0rem, 0.96rem + 0.2vw, 1.12rem);
  --t-1:  clamp(1.18rem, 1.08rem + 0.5vw, 1.45rem);
  --t-2:  clamp(1.55rem, 1.3rem + 1.1vw, 2.1rem);
  --t-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --t-4:  clamp(2.6rem, 1.95rem + 3.2vw, 4.6rem);

  --maxw: 1160px;
  --pad: clamp(1.15rem, 0.6rem + 2.6vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 18px;
  --radius-sm: 12px;
}
:root { --brand-700: #0E2547; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.62;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); position: relative; }
.section.soft { background: var(--bg-soft); }

/* type ----------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: var(--t-4); letter-spacing: -0.03em; }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-1); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.accent { color: var(--green-700); }
.lede { font-size: var(--t-1); color: var(--body); line-height: 1.55; max-width: 46ch; font-weight: 400; }

.eyebrow { font-size: var(--t--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content:""; width: 1.6rem; height: 2px; background: var(--green); border-radius:2px; }

.secthead { max-width: 52ch; margin-bottom: 3rem; }
.secthead .eyebrow { margin-bottom: 1rem; }
.secthead h2 { margin-bottom: .9rem; }
.secthead p { color: var(--body); font-size: var(--t-0); }

/* buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: var(--t-0);
  padding: .85em 1.55em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .25s, background .2s, color .2s, border-color .2s;
  white-space: nowrap; touch-action: manipulation;
}
.btn .arr { transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-green { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: #166D20; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green:active { transform: translateY(0); }

/* numbered step card (reuses .fcard) */
.fcard .f-ic.num { font-weight: 800; font-size: 1.25rem; color: var(--green-700); font-family: var(--display); }

/* how-it-works stepper — numbered nodes on a connecting line */
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.8rem); padding: 0; margin: 0; }
.steps::before { content:""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px; background: color-mix(in srgb, var(--green) 32%, var(--line)); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-node { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--green-50); border: 2px solid color-mix(in srgb, var(--green) 34%, transparent); display: grid; place-items: center; margin-bottom: 1.4rem; box-shadow: 0 0 0 8px var(--bg-soft); transition: transform .25s ease, box-shadow .25s; }
.step-node svg { width: 26px; height: 26px; color: var(--green-700); }
.step-num { position: absolute; top: -5px; right: -5px; width: 25px; height: 25px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--display); font-weight: 800; font-size: .82rem; display: grid; place-items: center; box-shadow: 0 2px 7px rgba(30,138,40,.45); }
.step h3 { font-size: var(--t-1); margin-bottom: .5rem; }
.step p { color: var(--body); font-size: var(--t--1); line-height: 1.6; max-width: 34ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 1.2rem; align-items: start; }
  .step-node { margin-bottom: 0; box-shadow: none; grid-row: 1 / span 2; align-self: start; }
}
/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; }
.split + .split { margin-top: var(--section); }
.split .media { background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.split .media.navy { background: var(--bg-soft); }
.split .media img, .split .media svg { width: 56%; }
.split h2 { font-size: var(--t-2); margin-bottom: 1rem; }
.split p { color: var(--body); margin-bottom: 1rem; }
.split .feat { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.split .feat li { list-style: none; display: flex; gap: .65rem; align-items: flex-start; color: var(--body); font-size: var(--t-0); }
.split .feat li svg { width: 20px; height: 20px; color: var(--green-700); flex: none; margin-top: 3px; }
.split .price { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: 1.3rem; font-weight: 600; color: var(--muted); }
.split .price b { font-family: var(--display); font-weight: 800; font-size: var(--t-2); color: var(--ink); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .media { order: -1; } }

/* header --------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(255,255,255,.82); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18,33,60,.3); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-size: 1.18rem; }
.brand .glyph { width: 28px; height: 28px; flex: none; }
.brand .glyph circle { fill: none; stroke: var(--brand); stroke-width: 1.7; }
.brand .glyph .core { fill: var(--green); stroke: none; }
.brand span { font-weight: 600; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-weight: 600; font-size: var(--t--1); letter-spacing: .01em; color: var(--body); position: relative; padding: .3rem 0; transition: color .2s; }
.nav a::after { content:""; position:absolute; left:0; bottom:-3px; width:0; height:2px; background: var(--green); transition: width .25s ease; border-radius:2px; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav .navcta { background: var(--brand); color: #fff; border-radius: 999px; padding: .55rem 1.15rem; font-weight: 700; }
.nav .navcta::after { display: none; }
.nav .navcta:hover { background: var(--brand-700); color: #fff; }
.menu-btn { display: none; }

/* hero ----------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--section); overflow: hidden; }
.hero::before { content:""; position:absolute; top:-30%; right:-12%; width:640px; max-width:70%; aspect-ratio:1; border-radius:50%; background: radial-gradient(circle, rgba(46,160,46,.10), transparent 62%); pointer-events:none; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.hero h1 { margin: 1.4rem 0 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta { display: flex; gap: 1.5rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); flex-wrap: wrap; color: var(--muted); font-size: var(--t--1); font-weight: 600; }
.hero-meta .dot { color: var(--green-700); }

.hero-aside { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-aside::before { content:""; position:absolute; width:64%; aspect-ratio:1; border-radius:50%; background: radial-gradient(circle, rgba(46,160,46,.12), transparent 66%); }
.hero-aside > * { position: relative; z-index: 1; }
.rings { width: min(100%, 420px); aspect-ratio: 1; }
.rings circle { fill: none; stroke: var(--brand); opacity: .16; }
.rings .r-mid { stroke: var(--green); opacity: .4; }
.rings .r-core { fill: var(--green); stroke: none; opacity: 1; }
.rings .spin { transform-origin: center; animation: spin 70s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .95rem; box-shadow: var(--shadow); font-size: var(--t--1); font-weight: 700; color: var(--ink); display:flex; align-items:center; gap:.5rem; }
.chip .ic { width: 18px; height: 18px; color: var(--green-700); }
.chip-1 { top: 7%; left: -3%; }
.chip-2 { bottom: 9%; right: -2%; }

/* products ------------------------------------------------------------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2vw, 1.7rem); }
.product { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.7rem, 1rem + 2vw, 2.6rem); display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .3s, border-color .25s; }
.product.live:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.product-top { display:flex; align-items:center; justify-content: space-between; gap: 1rem; }
.product .ic { width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); }
.product.soon .ic { background: #FBF4DE; }
.product .ic img, .product .ic svg { width: 34px; height: 34px; }
.tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; }
.tag.on { color: var(--green-700); background: var(--green-50); }
.tag.off { color: var(--amber-700); background: #FBF4DE; }
.product h3 { color: var(--ink); }
.product p { color: var(--body); font-size: var(--t-0); }
.product .more { margin-top: auto; font-weight: 700; font-size: var(--t-0); color: var(--brand); display: inline-flex; align-items: center; gap: .45rem; }
.product .more .arr { transition: transform .22s; }
.product.live:hover .more .arr { transform: translateX(5px); }
.product.soon { opacity: .96; }
.product.soon .more { color: var(--muted); }

/* about / the firm ----------------------------------------------------- */
.firm { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.fcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,1rem+1.5vw,2.3rem); box-shadow: var(--shadow-sm); overflow: hidden; text-align: center; transition: transform .25s ease, box-shadow .3s, border-color .25s; }
.fcard::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.fcard:hover::before { transform: scaleX(1); }
.fcard .f-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--green-50); border: 1.5px solid color-mix(in srgb, var(--green) 26%, transparent); color: var(--green-700); display:grid; place-items:center; margin: 0 auto 1.3rem; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.fcard:hover .f-ic { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: scale(1.05); }
.fcard .f-ic svg { width: 26px; height: 26px; }
.fcard h3 { font-size: var(--t-1); margin-bottom: .5rem; }
.fcard p { color: var(--body); font-size: var(--t--1); line-height: 1.6; }

/* cta band ------------------------------------------------------------- */
.cta-band { background: var(--brand); border-radius: clamp(20px, 2.5vw, 30px); padding: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; top:-40%; left:50%; transform:translateX(-50%); width:120%; aspect-ratio:2; background: radial-gradient(circle at 50% 0, rgba(46,160,46,.35), transparent 60%); pointer-events:none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band .accent { color: #6FE07A; }
.cta-band p { color: #C4D0E2; margin: 1.1rem auto 0; max-width: 46ch; position: relative; font-size: var(--t-1); }
.cta-band .hero-cta { justify-content: center; margin-top: 2.2rem; position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #EAF6EA; }

/* footer --------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-block: clamp(3rem,5vw,4.5rem); }
.foot-brand .brand { font-size: 1.28rem; margin-bottom: 1rem; }
.foot-brand p { color: var(--muted); max-width: 34ch; font-size: var(--t--1); }
.foot-col h4 { font-size: var(--t--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.foot-col a, .foot-col span { display: block; padding: .32rem 0; color: var(--body); font-weight: 500; }
.foot-col a:hover { color: var(--brand); }
.foot-col span.muted { color: var(--muted); }
.foot-bottom { display:flex; flex-wrap: wrap; justify-content: space-between; gap:.6rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t--1); }

/* reveal --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.13s}.d3{animation-delay:.21s}.d4{animation-delay:.29s}.d5{animation-delay:.37s}.d6{animation-delay:.45s}
@media (prefers-reduced-motion: reduce) { .reveal{animation:none;opacity:1;transform:none} .rings .spin{animation:none} html{scroll-behavior:auto} .btn,.product{transition:none} }

/* prose (privacy/legal) ----------------------------------------------- */
.prose { max-width: 70ch; }
.prose h1 { font-size: var(--t-3); margin-bottom: .4rem; }
.prose .updated { color: var(--muted); font-size: var(--t--1); margin-bottom: 2.4rem; display:block; }
.prose h2 { font-size: var(--t-1); color: var(--ink); margin: 2.4rem 0 .7rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.2rem 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.page-hero { padding-block: clamp(3rem,2rem+5vw,6rem) clamp(1.5rem,3vw,3rem); }
.back-link { font-weight:600; font-size: var(--t--1); color: var(--muted); display:inline-flex; align-items:center; gap:.4rem; margin-bottom: 1.6rem; }
.back-link:hover { color: var(--brand); }

/* responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { order: -1; min-height: 220px; }
  .rings { width: min(64%, 280px); }
  .products { grid-template-columns: 1fr; }
  .firm { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.5rem var(--pad); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .menu-btn span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

.theme-cambium { --accent: var(--green); --accent-deep: var(--green-700); }
