:root {
  --orange: #f26523;
  --yellow: #fdb913;
  --blue: #3479be;
  --cyan: #00aeef;
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --grad-orange: linear-gradient(135deg, #f26523 0%, #fdb913 100%);
  --grad-blue: linear-gradient(135deg, #3479be 0%, #00aeef 100%);
  --grad-x: linear-gradient(90deg, #f26523 0%, #fdb913 45%, #00aeef 55%, #3479be 100%);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.12);
  --font-head: "Quicksand", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Quicksand", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.grad-text {
  background: var(--grad-x);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-orange); }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--grad-orange); box-shadow: 0 10px 24px rgba(242, 101, 35, 0.3); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(242, 101, 35, 0.38); }
.btn-ghost { color: var(--ink); border: 2px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-light { color: var(--ink); background: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #000; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 32px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad-orange); transform: scaleX(0); transition: transform .2s ease; transform-origin: left; }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 22px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; border-radius: 28px; }
.hero-note { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-note div { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.hero-note svg { width: 18px; height: 18px; color: var(--orange); }
.hero-note div:nth-child(2) svg { color: var(--cyan); }
.hero-note div:nth-child(3) svg { color: var(--blue); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* Chevron decoration */
.chevrons { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.chevrons span {
  position: absolute; font-family: var(--font-head); font-weight: 700; font-size: 320px; line-height: 1;
  opacity: 0.05; user-select: none;
}
.chevrons .c1 { left: -40px; top: -60px; color: var(--orange); }
.chevrons .c2 { right: -20px; bottom: -120px; color: var(--blue); }

/* MicroMotion (dark) */
.mm { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.mm::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/micromotion.webp") center/cover no-repeat;
  opacity: 0.55;
}
.mm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,18,32,0.95) 0%, rgba(11,18,32,0.75) 50%, rgba(11,18,32,0.35) 100%); }
.mm .container { position: relative; z-index: 1; }
.mm .eyebrow { color: var(--cyan); }
.mm .section-head p { color: rgba(255,255,255,0.75); }
.mm-name { font-size: clamp(34px, 5vw, 56px); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.pillar { padding: 24px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.pillar .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-blue); margin-bottom: 16px; }
.pillar:nth-child(even) .ic { background: var(--grad-orange); }
.pillar .ic svg { width: 22px; height: 22px; color: #fff; }
.pillar h3 { font-size: 17px; margin-bottom: 6px; }
.pillar p { font-size: 14px; color: rgba(255,255,255,0.72); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* Products grid */
.products { background: var(--bg-soft); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,18,32,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.card .ic svg { width: 24px; height: 24px; }
.card.o .ic { background: var(--grad-orange); box-shadow: 0 8px 18px rgba(242,101,35,0.25); }
.card.b .ic { background: var(--grad-blue); box-shadow: 0 8px 18px rgba(0,174,239,0.25); }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card h3 small { font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: 13px; margin-inline-start: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.tag { position: absolute; top: 22px; inset-inline-end: 22px; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: rgba(0,174,239,0.1); padding: 5px 10px; border-radius: 999px; }
.card.o .tag { color: var(--orange); background: rgba(242,101,35,0.1); }
.card.soon { border-style: dashed; background: transparent; }
.card.soon .ic { background: var(--line); color: var(--muted); box-shadow: none; }
.card.soon .tag { color: var(--muted); background: rgba(100,116,139,0.12); }

/* Mobile apps */
.mobile .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .mobile .container { grid-template-columns: 1fr; } }
.rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.rules li svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 3px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-lg); display: flex; gap: 22px; align-items: center; }
.app-card img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 24px rgba(11,18,32,0.15); }
.app-card h3 { font-size: 22px; margin-bottom: 4px; }
.app-card .ar { font-weight: 600; color: var(--muted); font-size: 14px; }
.app-card p { color: var(--muted); font-size: 15px; margin: 8px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(253,185,19,0.18); color: #9a5a00; }
.pill svg { width: 14px; height: 14px; }
.app-card + .app-card { margin-top: 18px; }

/* About */
.about .container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about .container { grid-template-columns: 1fr; } }
/* Brand stage (About) */
.stage {
  position: relative; height: 480px; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(420px 320px at 18% 22%, rgba(253,185,19,0.28), transparent 70%),
    radial-gradient(420px 320px at 84% 78%, rgba(0,174,239,0.28), transparent 70%),
    var(--bg-soft);
}
.stage .chev { position: absolute; font-family: var(--font-head); font-weight: 700; font-size: 260px; line-height: 1; opacity: 0.07; user-select: none; }
.stage .chev.l { left: -18px; bottom: -70px; color: var(--orange); }
.stage .chev.r { right: -14px; top: -66px; color: var(--blue); }
.stage-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-58%, -52%);
  width: 250px; padding: 30px 24px 24px; border-radius: 26px; background: #fff;
  box-shadow: var(--shadow-lg); display: grid; justify-items: center; gap: 12px;
}
.stage-card img { width: 128px; height: 128px; }
.stage-card .word { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: #000; letter-spacing: -0.01em; }
.stage-card .sub { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stage-tile {
  position: absolute; display: grid; place-items: center; border-radius: 22px;
  box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite;
}
.stage-tile.dark { width: 104px; height: 104px; right: 46px; bottom: 54px; background: var(--ink); }
.stage-tile.dark img { width: 58px; height: 58px; }
.stage-tile.light { width: 84px; height: 84px; right: 84px; top: 52px; background: #fff; animation-delay: -3s; }
.stage-tile.light img { width: 46px; height: 46px; }
.stage-pill {
  position: absolute; left: 40px; top: 60px; padding: 10px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--ink-2); display: flex; align-items: center; gap: 8px; animation: floaty 7s ease-in-out infinite; animation-delay: -1.5s;
}
.stage-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-orange); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .stage { height: 400px; }
  .stage-tile.light { display: none; }
  .stage-card { transform: translate(-50%, -46%); width: 230px; }
  .stage-card img { width: 108px; height: 108px; }
  .stage-tile.dark { width: 80px; height: 80px; right: 18px; bottom: 18px; border-radius: 18px; }
  .stage-tile.dark img { width: 44px; height: 44px; }
  .stage-pill { left: 18px; top: 16px; }
}
.about p + p { margin-top: 14px; }
.about p { color: var(--ink-2); font-size: 17px; }
.about .quote { margin-top: 26px; padding: 22px 26px; border-inline-start: 4px solid transparent; border-image: var(--grad-orange) 1; background: var(--bg-soft); font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 20px; }
.footer .brand img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul { padding-inline-start: 22px; }
.legal a { color: var(--blue); text-decoration: underline; }
