/* ============================================================
   M TECH MEDIA — Design tokens
   Dark futuristic / glassmorphism, built from the brand's own
   infinity-loop mark and six-pillar taxonomy.
============================================================ */
:root{
  --void:        #05060c;
  --void-2:      #0a0c1a;
  --panel:       #10122354;
  --panel-solid: #12142a;
  --indigo-deep: #171a45;
  --indigo-core: #34349c;
  --indigo-bright:#5457d6;
  --cyan:        #4fe3ff;
  --cyan-dim:    #4fe3ff66;
  --gold:        #d8b26a;
  --fog:         #c9cce6;
  --fog-dim:     #8b8fb8;
  --white:       #f3f4fb;
  --line:        #ffffff17;
  --line-bright: #ffffff2e;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--void);
  color:var(--fog);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--white); margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
  border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Atmosphere ---------- */
.bg-mesh{
  position:fixed; inset:0; z-index:-2; background:var(--void);
  overflow:hidden;
}
.bg-mesh::before, .bg-mesh::after{
  content:''; position:absolute; border-radius:50%; filter:blur(110px);
  opacity:0.5;
}
.bg-mesh::before{
  width:640px; height:640px; top:-220px; left:-160px;
  background:radial-gradient(circle at 30% 30%, var(--indigo-bright), transparent 70%);
}
.bg-mesh::after{
  width:560px; height:560px; bottom:-180px; right:-140px;
  background:radial-gradient(circle at 60% 60%, var(--cyan-dim), transparent 70%);
}
.grain{
  position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Layout shells ---------- */
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
.eyebrow{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--cyan); display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--cyan); display:inline-block; }
.section{ padding:110px 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(28px,4vw,42px); margin-top:14px; line-height:1.15; }
.section-head .lead{ margin-top:16px; color:var(--fog-dim); font-size:17px; }

/* ---------- Glass ---------- */
.glass{
  background:linear-gradient(155deg, #ffffff0f, #ffffff03);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 30px 60px -30px #00000090, inset 0 1px 0 #ffffff14;
}
.tilt{ transform-style:preserve-3d; transition:transform .35s var(--ease), box-shadow .35s var(--ease); will-change:transform; }
.tilt:hover{ box-shadow:0 40px 80px -30px #000000a0, 0 0 0 1px var(--line-bright), inset 0 1px 0 #ffffff1c; }

/* ---------- Nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  border-bottom:1px solid transparent;
  transition:background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled{
  background:#05060cbf; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:34px; width:auto; }
.brand-text{ font-family:var(--font-display); font-weight:600; color:var(--white); font-size:17px; line-height:1.1; }
.brand-text span{ display:block; font-family:var(--font-mono); font-size:10px; letter-spacing:.16em; color:var(--cyan); font-weight:400; margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:14px; color:var(--fog-dim); position:relative; padding:4px 0; transition:color .2s;
}
.nav-links a:hover, .nav-links a.active{ color:var(--white); }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:linear-gradient(90deg,var(--cyan),var(--indigo-bright)); border-radius:2px;
}
.nav-cta{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.04em;
  padding:10px 20px; border-radius:100px; border:1px solid var(--line-bright);
  background:#ffffff08; color:var(--white); transition:border-color .2s, background .2s, transform .2s;
}
.nav-cta:hover{ border-color:var(--cyan); background:#ffffff14; transform:translateY(-1px); }

.nav-toggle{ display:none; background:none; border:1px solid var(--line-bright); border-radius:8px; width:40px; height:40px; align-items:center; justify-content:center; color:var(--white); }
.nav-toggle svg{ width:18px; height:18px; }

@media (max-width:880px){
  .nav-links{
    position:fixed; inset:64px 16px auto 16px; flex-direction:column; align-items:stretch; gap:0;
    background:#0a0c1af0; border:1px solid var(--line); border-radius:16px; padding:8px;
    backdrop-filter:blur(16px); transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:14px 12px; border-bottom:1px solid var(--line); font-size:15px; }
  .nav-links a:last-of-type{ border-bottom:none; }
  .nav-links a.active::after{ display:none; }
  .nav-links .nav-cta{ margin:10px 12px 4px; text-align:center; }
  .nav-toggle{ display:flex; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px; padding:14px 26px; border-radius:100px;
  font-size:14.5px; font-weight:600; border:1px solid transparent; transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn-primary{
  background:linear-gradient(135deg, var(--indigo-bright), var(--indigo-core));
  color:var(--white); box-shadow:0 14px 34px -12px #4b4dd680;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 18px 44px -12px #6567ea9c; }
.btn-ghost{
  border-color:var(--line-bright); color:var(--white); background:#ffffff06;
}
.btn-ghost:hover{ border-color:var(--cyan); background:#ffffff10; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Pills / chips ---------- */
.chip{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; color:var(--cyan);
  border:1px solid var(--cyan-dim); background:#4fe3ff0f; padding:6px 12px; border-radius:100px;
  display:inline-flex; align-items:center; gap:6px;
}

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--line); padding:64px 0 28px; margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer-grid h4{ font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--fog-dim); font-family:var(--font-mono); margin-bottom:16px; font-weight:500; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid ul a{ color:var(--fog); font-size:14.5px; transition:color .2s; }
.footer-grid ul a:hover{ color:var(--cyan); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; margin-top:56px; padding-top:24px; border-top:1px solid var(--line); font-size:13px; color:var(--fog-dim); flex-wrap:wrap; gap:12px; }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:28px; }
.footer-brand span{ font-family:var(--font-display); color:var(--white); font-weight:600; }
.footer-desc{ color:var(--fog-dim); font-size:14px; max-width:280px; }

@media (max-width:880px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal]{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in{ opacity:1; transform:translateY(0); }

/* ---------- Misc shared ---------- */
.divider{ height:1px; background:linear-gradient(90deg, transparent, var(--line-bright), transparent); }
.mono{ font-family:var(--font-mono); }
.text-cyan{ color:var(--cyan); }
.text-gold{ color:var(--gold); }
.stat{ font-family:var(--font-display); font-size:clamp(30px,3.4vw,44px); color:var(--white); }
.stat-label{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; color:var(--fog-dim); text-transform:uppercase; margin-top:6px; }

.page-hero{ padding:168px 0 70px; }
.page-hero .eyebrow{ margin-bottom:18px; }
.page-hero h1{ font-size:clamp(34px,5.4vw,58px); line-height:1.08; max-width:820px; }
.page-hero .lead{ margin-top:20px; max-width:620px; color:var(--fog-dim); font-size:17.5px; }

.crumb{ font-family:var(--font-mono); font-size:12px; color:var(--fog-dim); letter-spacing:.05em; }
.crumb .text-cyan{ margin:0 8px; }

/* ---------- Mobile responsive overrides ---------- */
/* Inline grid-template-columns used throughout for two/three-column
   layouts collapse to a single column below the tablet breakpoint. */
@media (max-width:880px){
  [style*="grid-template-columns"]{ grid-template-columns:1fr !important; }
  .section{ padding:72px 0; }
  .page-hero{ padding-top:132px; }
  .section-head{ margin-bottom:36px; }
  .wrap{ padding:0 20px; }
  .svc-group{ padding:48px 0; }
}
@media (max-width:520px){
  .page-hero h1{ font-size:clamp(28px,8vw,36px); }
  .stat{ font-size:26px; }
}
