/* ==========================================================================
   MegAscends — Design System
   Light premium enterprise. Single shared stylesheet for all pages.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #0a1220;
  --ink-2:      #1b2739;
  --body:       #55637a;
  --muted:      #8593a8;
  --line:       #e4e9f2;
  --line-soft:  #eef2f8;
  --bg:         #ffffff;
  --bg-2:       #f6f8fc;
  --bg-3:       #eef3fb;

  --brand:      #1d4ed8;
  --brand-2:    #6d28d9;
  --brand-3:    #0891b2;
  --brand-soft: #eef4ff;
  --accent:     #f97316;

  --grad:       linear-gradient(120deg, #1d4ed8 0%, #6d28d9 55%, #0891b2 100%);
  --grad-soft:  linear-gradient(140deg, #f4f8ff 0%, #f7f4ff 50%, #f0fbff 100%);

  --sh-xs: 0 1px 2px rgba(10,18,32,.05);
  --sh-sm: 0 2px 8px rgba(10,18,32,.06);
  --sh-md: 0 10px 30px -12px rgba(10,18,32,.16);
  --sh-lg: 0 28px 70px -24px rgba(10,18,32,.24);
  --sh-brand: 0 18px 40px -16px rgba(29,78,216,.5);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --nav-h: 76px;
  --maxw: 1240px;
  --gut: 24px;

  --f-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(29,78,216,.16); color: var(--ink); }

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

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.028em;
}

.d1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.d2 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
.d3 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.022em; }
.d4 { font-size: clamp(1.18rem, 2vw, 1.4rem); letter-spacing: -.016em; font-weight: 750; }

.lead {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: var(--body);
  line-height: 1.68;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tiny { font-size: .84rem; }
.mono { font-family: var(--f-mono); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: 860px; }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section-tight { padding-block: clamp(52px, 6vw, 84px); }
.bg-soft { background: var(--bg-2); }
.bg-grad { background: var(--grad-soft); }
.bg-dark { background: var(--ink); color: rgba(255,255,255,.72); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }

.divider { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center { text-align: center; }
.hide-sm { display: inline; }
.center .lead { margin-inline: auto; }
.mw-720 { max-width: 720px; }
.mw-640 { max-width: 640px; }

/* ---------- 5. Section header ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(29,78,216,.14);
  padding: 7px 15px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(29,78,216,.15);
  animation: pulseDot 2.4s var(--ease-io) infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 3px rgba(29,78,216,.16); }
  50%     { box-shadow: 0 0 0 7px rgba(29,78,216,.02); }
}

.sec-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; }
.sec-head p { margin-top: 18px; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: 15px 28px;
  border-radius: var(--r-full);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 24px 50px -16px rgba(29,78,216,.62);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(29,78,216,.42);
  color: var(--brand);
  box-shadow: var(--sh-md);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); background: var(--ink-2); box-shadow: var(--sh-lg); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -18px rgba(0,0,0,.55); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); transform: translateY(-3px); }
.btn-sm { padding: 11px 20px; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .93rem;
  color: var(--brand);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 7. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -14px rgba(10,18,32,.24);
  height: 66px;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
  position: relative;
  overflow: hidden;
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  animation: sheen 4.5s var(--ease-io) infinite;
}
@keyframes sheen {
  0%, 62% { transform: translateX(-110%); }
  100%    { transform: translateX(110%); }
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.brand-name span { color: var(--brand); }
.brand-sub {
  display: block;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 15px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-full);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brand); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  place-items: center;
  flex: none;
}
.burger span {
  display: block;
  width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s linear;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 890;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 28px var(--gut) 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 4px;
  font-size: 1.28rem;
  font-weight: 750;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -.02em;
}
.mobile-menu a.m-link span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.mobile-menu a.m-link.active { color: var(--brand); }
.mobile-menu .m-actions { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu .m-meta { margin-top: 28px; font-size: .9rem; }
.mobile-menu .m-meta a { display: block; padding: 5px 0; color: var(--body); font-weight: 600; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 44px);
  padding-bottom: 64px;
  overflow: hidden;
  background: var(--grad-soft);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
#hero-canvas.ready { opacity: 1; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(109,40,217,.10), transparent 62%),
    radial-gradient(760px 480px at 12% 82%, rgba(8,145,178,.10), transparent 64%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 3; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn .95s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .22s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .32s; }
@keyframes riseIn { to { transform: none; } }

.hero .lead { max-width: 560px; }
.hero-actions { margin-top: 32px; }

.typed-wrap {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.1em;
}
.typed { color: var(--brand-2); }
.caret {
  display: inline-block;
  width: 3px;
  height: .82em;
  margin-left: 4px;
  background: var(--brand);
  border-radius: 2px;
  animation: blink 1s steps(2) infinite;
  transform: translateY(2px);
}
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink-2);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--r-full);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-xs);
}
.hero-badge svg { width: 14px; height: 14px; color: var(--brand); }

/* Hero visual — floating device stack */
.hero-visual { position: relative; perspective: 1400px; }
.device-stack {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.phone {
  position: relative;
  width: min(230px, 58%);
  aspect-ratio: 9 / 19;
  background: #0d1526;
  border-radius: 30px;
  padding: 8px;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255,255,255,.6);
  animation: float 7s var(--ease-io) infinite;
  transform-style: preserve-3d;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 23px;
  background: linear-gradient(165deg, #12203c, #0b1226 60%, #150f2e);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 12px 12px;
  gap: 8px;
}
.phone-notch {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 58px; height: 15px;
  background: #0d1526;
  border-radius: var(--r-full);
  z-index: 2;
}
.pill-row { display: flex; gap: 6px; align-items: center; }
.pill { height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); }
.pill.w-40 { width: 40%; } .pill.w-60 { width: 60%; } .pill.w-25 { width: 25%; }
.pill.brand { background: linear-gradient(90deg, #60a5fa, #a78bfa); }
.mini-card {
  border-radius: 10px;
  padding: 9px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 42px; }
.mini-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #60a5fa, rgba(96,165,250,.25));
  animation: barPulse 2.6s var(--ease-io) infinite;
}
.mini-bars i:nth-child(2) { animation-delay: .2s; background: linear-gradient(180deg,#a78bfa,rgba(167,139,250,.25)); }
.mini-bars i:nth-child(3) { animation-delay: .4s; }
.mini-bars i:nth-child(4) { animation-delay: .6s; background: linear-gradient(180deg,#22d3ee,rgba(34,211,238,.25)); }
.mini-bars i:nth-child(5) { animation-delay: .8s; }
@keyframes barPulse {
  0%,100% { height: 40%; opacity: .75; }
  50%     { height: 100%; opacity: 1; }
}

.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--sh-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  animation: float 6s var(--ease-io) infinite;
}
.chip-float small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; }
.chip-float .ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.chip-float .ico svg { width: 15px; height: 15px; }
.chip-1 { top: 12%; left: -4%; animation-delay: .4s; }
.chip-2 { bottom: 20%; right: -6%; animation-delay: 1.2s; }
.chip-3 { bottom: 4%; left: 4%; animation-delay: 2s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.scroll-cue .mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--line);
  border-radius: var(--r-full);
  position: relative;
  background: rgba(255,255,255,.6);
}
.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--brand);
  animation: wheel 1.8s var(--ease-io) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 9. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(52px, 7vw, 88px);
  background: var(--grad-soft);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 380px at 82% 6%, rgba(109,40,217,.12), transparent 60%),
    radial-gradient(560px 340px at 6% 92%, rgba(8,145,178,.12), transparent 62%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .lead { max-width: 660px; }

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,78,216,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000, transparent 74%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000, transparent 74%);
  pointer-events: none;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; }

/* ---------- 10. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }

.card-glow::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(29,78,216,.10), transparent 66%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }
.card > * { position: relative; z-index: 1; }

.ico-box {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 22px;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.ico-box svg { width: 25px; height: 25px; }
.card:hover .ico-box {
  background: var(--grad);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag {
  font-size: .74rem;
  font-weight: 650;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--r-full);
}
.tag-brand { color: var(--brand); background: var(--brand-soft); border-color: rgba(29,78,216,.16); }

.num-badge {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .08em;
  margin-bottom: 14px;
  display: block;
}

/* ---------- 11. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.stat { background: #fff; padding: 32px 26px; text-align: center; }
.stat .num {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- 12. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding-block: 6px;
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scrollX 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 42s; }
@keyframes scrollX { to { transform: translateX(-50%); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  box-shadow: var(--sh-xs);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { border-color: rgba(29,78,216,.4); color: var(--brand); transform: translateY(-2px); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }

/* ---------- 13. Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2), var(--brand-3));
  opacity: .22;
  border-radius: 2px;
}
.t-item {
  position: relative;
  padding: 0 0 40px 76px;
}
.t-item:last-child { padding-bottom: 0; }
.t-dot {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--brand);
  box-shadow: var(--sh-sm);
  z-index: 1;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.t-item:hover .t-dot { background: var(--grad); color: #fff; transform: scale(1.07); }
.t-item h3 { margin-bottom: 8px; }
.t-item p { font-size: .96rem; }

/* ---------- 14. Work / case study ---------- */
.case {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 48px);
  box-shadow: var(--sh-md);
  overflow: hidden;
  position: relative;
}
.case + .case { margin-top: 28px; }
.case.flip .case-media { order: -1; }
.case-media {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #101c33, #0a1226 55%, #170f2c);
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px;
}
.case-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px;
}
.case-media::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.34), transparent 66%);
  top: -70px; right: -70px;
  filter: blur(12px);
}
.case-media .phone { width: min(200px, 62%); animation-duration: 8s; z-index: 1; }
.case-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: var(--sh-md);
}
.app-icon svg { width: 27px; height: 27px; }
.icon-gold { background: linear-gradient(140deg, #f59e0b, #b45309); }
.icon-agri { background: linear-gradient(140deg, #10b981, #047857); }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 13px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.store-badge svg { width: 21px; height: 21px; flex: none; }
.store-badge b { display: block; font-size: .87rem; line-height: 1.2; letter-spacing: -.01em; }
.store-badge small { font-size: .62rem; opacity: .68; letter-spacing: .07em; text-transform: uppercase; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.event-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.event-pill:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(29,78,216,.3); }
.event-pill .ev-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  flex: none;
  letter-spacing: -.02em;
}
.event-pill b { display: block; font-size: .9rem; color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.event-pill small { font-size: .74rem; color: var(--muted); }

/* ---------- 15. Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .97rem;
  color: var(--body);
}
.check-list .tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 3px;
}
.check-list .tick svg { width: 12px; height: 12px; }
.bg-dark .check-list li { color: rgba(255,255,255,.75); }
.bg-dark .check-list .tick { background: rgba(96,165,250,.18); color: #93c5fd; }

/* ---------- 16. Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-size: 1.06rem;
  font-weight: 720;
  color: var(--ink);
  letter-spacing: -.018em;
  transition: color .25s var(--ease);
}
.acc-btn:hover { color: var(--brand); }
.acc-btn .pm {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.acc-btn .pm svg { width: 13px; height: 13px; }
.acc-item.open .acc-btn { color: var(--brand); }
.acc-item.open .pm { transform: rotate(135deg); background: var(--grad); color: #fff; border-color: transparent; }
.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease);
}
.acc-panel p { padding: 0 4px 26px; font-size: .97rem; max-width: 760px; }

/* ---------- 17. Contact / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a9b4c5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(29,78,216,.3); }
.contact-card .ico-box { margin-bottom: 0; width: 46px; height: 46px; border-radius: 13px; }
.contact-card .ico-box svg { width: 20px; height: 20px; }
.contact-card b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 3px; }
.contact-card a, .contact-card span { font-size: .92rem; color: var(--body); }
.contact-card a:hover { color: var(--brand); }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, rgba(29,78,216,.28), rgba(109,40,217,.28), rgba(8,145,178,.28), rgba(29,78,216,.28));
  animation: spinSlow 22s linear infinite;
  z-index: -1;
  filter: blur(48px);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.7); margin: 18px auto 0; max-width: 620px; }
.cta-band .row { justify-content: center; margin-top: 32px; }

/* ---------- 19. Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding-top: 72px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 52px;
}
.footer a { color: rgba(255,255,255,.6); font-size: .92rem; transition: color .25s var(--ease); }
.footer a:hover { color: #fff; }
.footer ul { display: grid; gap: 11px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,.42); }
.footer .f-about { font-size: .93rem; margin-top: 20px; max-width: 330px; line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}

/* ---------- 20. Scroll progress + to-top ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 950;
  transition: width .08s linear;
}
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
  z-index: 880;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 21. Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"]  { transform: scale(.95); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { max-width: 420px; margin-inline: auto; order: -1; }
  .device-stack { aspect-ratio: 4 / 3; }
  .phone { width: min(190px, 44%); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: grid; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .case, .case.flip .case-media { grid-template-columns: 1fr; order: 0; }
  .case-media { min-height: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gut: 18px; --nav-h: 66px; }
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn { padding: 14px 22px; width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .row { gap: 10px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .scroll-cue { display: none; }
  .chip-float { font-size: .72rem; padding: 9px 12px; }
  .chip-2 { right: -2%; }
  .t-item { padding-left: 62px; padding-bottom: 32px; }
  .t-dot { width: 46px; height: 46px; border-radius: 15px; }
  .timeline::before { left: 22px; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .cta-band { border-radius: var(--r-lg); }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
}

/* Landscape phones / short viewports */
@media (max-height: 560px) and (orientation: landscape) {
  :root { --nav-h: 58px; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 34px);
    padding-bottom: 44px;
  }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-visual { order: 0; max-width: 300px; }
  .device-stack { aspect-ratio: 5 / 4; }
  .phone { width: min(130px, 40%); }
  .chip-float { display: none; }
  .scroll-cue { display: none; }
  .section { padding-block: 52px; }
  .mobile-menu { padding-top: 16px; }
  .mobile-menu a.m-link { padding: 12px 4px; font-size: 1.06rem; }
  .d1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
  .hero-badges { margin-top: 20px; }
}

@media (min-width: 1500px) {
  :root { --maxw: 1320px; }
}

/* ---------- 23. Accessibility / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none; }
  #hero-canvas { display: none; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: .9rem;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }

@media print {
  .nav, .footer, .to-top, .progress-bar, #hero-canvas, .scroll-cue { display: none !important; }
  body { color: #000; }
}
