/* ── M3 AI Solutions — style.css ── */
/* Zero-JS, SEO-optimized corporate site */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ── tokens ── */
:root {
  --c-bg:        #0a0a0f;
  --c-bg-alt:    #111118;
  --c-bg-card:   #16161e;
  --c-surface:   #1e1e28;
  --c-border:    #2a2a38;
  --c-text:      #e8e8ef;
  --c-text-dim:  #8888a0;
  --c-text-mute: #5c5c72;
  --c-accent:    #6ee7b7;
  --c-accent2:   #38bdf8;
  --c-accent3:   #c084fc;
  --c-white:     #ffffff;
  --f-display:   'Instrument Serif', Georgia, serif;
  --f-body:      'DM Sans', system-ui, sans-serif;
  --ease:        cubic-bezier(.22,1,.36,1);
  --max-w:       1240px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
}

/* ── reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-family:var(--f-body);color:var(--c-text);background:var(--c-bg);line-height:1.65;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul,ol{list-style:none}

/* ── utility ── */
.container{max-width:var(--max-w);margin:0 auto;padding:0 var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── page grain overlay ── */
body::before{
  content:'';position:fixed;inset:0;z-index:9999;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity:.45;
}

/* ── header / nav ── */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(10,10,15,.82);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--c-border);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.nav__logo{display:flex;align-items:center;gap:.65rem;font-weight:700;font-size:1.15rem;letter-spacing:-.02em}
.nav__logo .logo-mark{
  width:36px;height:36px;border-radius:8px;
  background:linear-gradient(135deg,var(--c-accent),var(--c-accent2));
  display:grid;place-items:center;font-size:.85rem;font-weight:700;color:var(--c-bg);
}
.nav__links{display:flex;gap:2rem}
.nav__links a{font-size:.875rem;font-weight:500;color:var(--c-text-dim);transition:color .25s}
.nav__links a:hover{color:var(--c-accent)}
.nav__cta{
  font-size:.8125rem;font-weight:600;padding:.55rem 1.25rem;border-radius:6px;
  background:var(--c-accent);color:var(--c-bg);transition:opacity .25s;
}
.nav__cta:hover{opacity:.85}

/* mobile nav */
.nav__toggle{display:none;background:none;border:none;color:var(--c-text);cursor:pointer}
@media(max-width:768px){
  .nav__toggle{display:block}
  .nav__links,.nav__cta{display:none}
  .nav.open .nav__links{display:flex;flex-direction:column;position:absolute;top:72px;left:0;right:0;background:var(--c-bg-alt);padding:1.5rem var(--gutter);border-bottom:1px solid var(--c-border)}
  .nav.open .nav__cta{display:inline-block;position:absolute;top:calc(72px + 10rem);right:var(--gutter)}
}

/* ── hero ── */
.hero{
  padding:clamp(5rem,14vh,9rem) 0 clamp(4rem,10vh,7rem);
  position:relative;
}
.hero::before{
  content:'';position:absolute;top:-120px;right:-200px;width:680px;height:680px;
  background:radial-gradient(circle,rgba(110,231,183,.08) 0%,transparent 70%);
  pointer-events:none;
}
.hero::after{
  content:'';position:absolute;top:60px;left:-180px;width:500px;height:500px;
  background:radial-gradient(circle,rgba(56,189,248,.06) 0%,transparent 70%);
  pointer-events:none;
}
.hero__eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;
  color:var(--c-accent);margin-bottom:1.25rem;
}
.hero__eyebrow span{width:6px;height:6px;border-radius:50%;background:var(--c-accent);animation:pulse 2s ease infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.hero__title{
  font-family:var(--f-display);font-weight:400;
  font-size:clamp(2.6rem,6vw,4.5rem);
  line-height:1.08;letter-spacing:-.03em;
  max-width:780px;
}
.hero__title em{font-style:italic;color:var(--c-accent)}
.hero__sub{
  margin-top:1.5rem;font-size:clamp(1rem,1.8vw,1.2rem);
  color:var(--c-text-dim);max-width:560px;line-height:1.7;
}
.hero__actions{display:flex;gap:1rem;margin-top:2.5rem;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.875rem;font-weight:600;padding:.75rem 1.75rem;border-radius:8px;
  transition:all .3s var(--ease);cursor:pointer;border:none;
}
.btn--primary{background:var(--c-accent);color:var(--c-bg)}
.btn--primary:hover{box-shadow:0 0 28px rgba(110,231,183,.25);transform:translateY(-1px)}
.btn--ghost{background:transparent;color:var(--c-text);border:1px solid var(--c-border)}
.btn--ghost:hover{border-color:var(--c-accent);color:var(--c-accent)}

/* ── stats ribbon ── */
.stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--c-border);border-radius:12px;overflow:hidden;
  margin-top:clamp(3rem,6vh,5rem);
}
.stats__item{background:var(--c-bg-card);padding:1.75rem 1.5rem;text-align:center}
.stats__num{font-family:var(--f-display);font-size:clamp(1.5rem,3vw,2.25rem);color:var(--c-white)}
.stats__label{font-size:.8rem;color:var(--c-text-mute);margin-top:.25rem}
@media(max-width:600px){.stats{grid-template-columns:repeat(2,1fr)}}

/* ── section generics ── */
section{padding:clamp(4rem,10vh,7rem) 0}
.section__eyebrow{
  font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.15em;
  color:var(--c-accent2);margin-bottom:.75rem;
}
.section__title{
  font-family:var(--f-display);font-weight:400;
  font-size:clamp(1.9rem,4vw,3rem);line-height:1.15;letter-spacing:-.025em;
  max-width:620px;
}
.section__desc{color:var(--c-text-dim);max-width:540px;margin-top:1rem;font-size:.95rem}

/* ── solutions (product cards) ── */
.solutions{background:var(--c-bg-alt)}
.solutions__grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:3rem}
@media(max-width:768px){.solutions__grid{grid-template-columns:1fr}}

.product-card{
  position:relative;border-radius:14px;overflow:hidden;
  background:var(--c-bg-card);border:1px solid var(--c-border);
  padding:2.5rem 2rem;transition:border-color .35s,box-shadow .35s;
}
.product-card:hover{border-color:var(--c-accent);box-shadow:0 0 40px rgba(110,231,183,.06)}
.product-card__badge{
  display:inline-block;font-size:.65rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;padding:.3rem .7rem;border-radius:4px;margin-bottom:1.25rem;
}
.product-card--rank .product-card__badge{background:rgba(110,231,183,.12);color:var(--c-accent)}
.product-card--trvoo .product-card__badge{background:rgba(192,132,252,.12);color:var(--c-accent3)}
.product-card__name{
  font-family:var(--f-display);font-size:1.7rem;line-height:1.2;margin-bottom:.75rem;
}
.product-card__tagline{color:var(--c-text-dim);font-size:.925rem;margin-bottom:1.5rem;line-height:1.65}
.product-card__features{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.75rem}
.product-card__features li{
  display:flex;align-items:flex-start;gap:.6rem;font-size:.85rem;color:var(--c-text-dim);
}
.product-card__features li::before{
  content:'';flex-shrink:0;width:5px;height:5px;margin-top:.45rem;border-radius:50%;
}
.product-card--rank .product-card__features li::before{background:var(--c-accent)}
.product-card--trvoo .product-card__features li::before{background:var(--c-accent3)}

/* tech stack pills */
.tech-stack{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:auto}
.tech-stack__pill{
  font-size:.7rem;font-weight:500;padding:.25rem .6rem;border-radius:4px;
  background:var(--c-surface);color:var(--c-text-mute);border:1px solid var(--c-border);
}

/* ── capabilities ── */
.capabilities__grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:3rem;
}
@media(max-width:900px){.capabilities__grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.capabilities__grid{grid-template-columns:1fr}}
.cap-card{
  padding:2rem 1.5rem;border-radius:12px;
  background:var(--c-bg-card);border:1px solid var(--c-border);
  transition:border-color .3s;
}
.cap-card:hover{border-color:var(--c-accent2)}
.cap-card__icon{
  width:42px;height:42px;border-radius:10px;display:grid;place-items:center;
  font-size:1.15rem;margin-bottom:1rem;
}
.cap-card__icon--1{background:rgba(110,231,183,.1);color:var(--c-accent)}
.cap-card__icon--2{background:rgba(56,189,248,.1);color:var(--c-accent2)}
.cap-card__icon--3{background:rgba(192,132,252,.1);color:var(--c-accent3)}
.cap-card__title{font-weight:600;font-size:.95rem;margin-bottom:.5rem}
.cap-card__desc{font-size:.825rem;color:var(--c-text-dim);line-height:1.6}

/* ── tech section ── */
.tech{background:var(--c-bg-alt)}
.tech__row{display:flex;flex-wrap:wrap;gap:3rem;margin-top:2.5rem}
.tech__col{flex:1;min-width:260px}
.tech__col h3{font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--c-accent);margin-bottom:1rem}
.tech__list{display:flex;flex-direction:column;gap:.55rem}
.tech__list li{
  font-size:.85rem;color:var(--c-text-dim);display:flex;align-items:center;gap:.5rem;
}
.tech__list li::before{content:'→';color:var(--c-text-mute);font-size:.75rem}

/* ── about ── */
.about__content{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;margin-top:2.5rem}
@media(max-width:768px){.about__content{grid-template-columns:1fr}}
.about__text{font-size:.925rem;color:var(--c-text-dim);line-height:1.75}
.about__text p+p{margin-top:1rem}
.about__visual{
  aspect-ratio:1;border-radius:16px;
  background:linear-gradient(135deg,var(--c-bg-card),var(--c-surface));
  border:1px solid var(--c-border);display:grid;place-items:center;
  position:relative;overflow:hidden;
}
.about__visual::before{
  content:'M3';font-family:var(--f-display);font-size:6rem;color:var(--c-border);
  position:absolute;
}
.about__visual::after{
  content:'';position:absolute;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(110,231,183,.12),transparent 70%);
}

/* ── CTA banner ── */
.cta-banner{
  margin:0 auto clamp(3rem,6vh,5rem);max-width:var(--max-w);padding:0 var(--gutter);
}
.cta-banner__inner{
  background:linear-gradient(135deg,var(--c-bg-card) 0%,var(--c-surface) 100%);
  border:1px solid var(--c-border);border-radius:16px;
  padding:clamp(2.5rem,5vh,4rem) clamp(2rem,4vw,3.5rem);
  text-align:center;position:relative;overflow:hidden;
}
.cta-banner__inner::before{
  content:'';position:absolute;top:-60px;left:50%;transform:translateX(-50%);
  width:500px;height:300px;
  background:radial-gradient(ellipse,rgba(110,231,183,.08),transparent 70%);
  pointer-events:none;
}
.cta-banner__title{
  font-family:var(--f-display);font-size:clamp(1.6rem,3.5vw,2.5rem);
  line-height:1.2;position:relative;
}
.cta-banner__sub{color:var(--c-text-dim);margin-top:.75rem;font-size:.95rem;position:relative}
.cta-banner .btn{margin-top:1.75rem;position:relative}

/* ── footer ── */
.site-footer{
  border-top:1px solid var(--c-border);padding:3rem 0 2rem;
}
.footer__top{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;flex-wrap:wrap}
.footer__brand{max-width:300px}
.footer__brand p{font-size:.8rem;color:var(--c-text-mute);margin-top:.75rem;line-height:1.65}
.footer__cols{display:flex;gap:3.5rem}
@media(max-width:600px){.footer__cols{flex-direction:column;gap:1.5rem}}
.footer__col h4{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--c-text-dim);margin-bottom:.75rem}
.footer__col a{display:block;font-size:.84rem;color:var(--c-text-mute);padding:.25rem 0;transition:color .2s}
.footer__col a:hover{color:var(--c-accent)}
.footer__bottom{
  margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--c-border);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;
}
.footer__copy{font-size:.75rem;color:var(--c-text-mute)}
.footer__badges{display:flex;gap:.75rem}
.footer__badges span{
  font-size:.65rem;padding:.25rem .55rem;border-radius:4px;
  border:1px solid var(--c-border);color:var(--c-text-mute);
}
