/* ML SERVICES — site styles */
:root {
  --ink: #0b0b1a;
  --ink-2: #12122a;
  --ink-3: #1b1b3a;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e6e8f0;
  --soft: #f6f7fb;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  --radius: 18px;
  --max: 1160px;
  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid,
.site-header.light {
  background: rgba(11, 11, 26, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.brand-name span { font-weight: 400; opacity: .75; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255, 255, 255, 0.78); font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .65); }
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(99, 102, 241, .8); }
.btn-ghost { color: #fff !important; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 168px 0 120px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before { width: 620px; height: 620px; top: -220px; left: -160px; background: rgba(139, 92, 246, .38); }
.hero::after { width: 560px; height: 560px; bottom: -260px; right: -120px; background: rgba(6, 182, 212, .28); }
.hero-grid-bg {
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); margin-left: 6px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 0 0 22px; font-weight: 700; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .72); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 46px; color: rgba(255, 255, 255, .62); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: #22d3ee; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 270px;
  height: 552px;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a52, #121228);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -20px rgba(0,0,0,.7), 0 0 120px -20px rgba(99,102,241,.55);
  transform: rotate(-4deg);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2e1d6b 0%, #120d33 55%, #0a0a1f 100%);
  padding: 46px 18px 18px;
}
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #05050f; }
.hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-family: var(--font-head); }
.hud .lvl { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .1em; text-transform: uppercase; }
.hud .score { font-size: 22px; font-weight: 700; }
.bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); margin-bottom: 22px; overflow: hidden; }
.bar i { display: block; width: 68%; height: 100%; background: var(--grad); border-radius: 8px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.tile { aspect-ratio: 1; border-radius: 12px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.25); }
.t1 { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.t2 { background: linear-gradient(135deg,#67e8f9,#0891b2); }
.t3 { background: linear-gradient(135deg,#f9a8d4,#db2777); }
.t4 { background: linear-gradient(135deg,#fde68a,#f59e0b); }
.t5 { background: linear-gradient(135deg,#86efac,#16a34a); }
.t0 { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.play-btn {
  margin: 22px auto 0;
  width: 100%;
  padding: 13px 0;
  border-radius: 14px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--grad);
  box-shadow: 0 10px 24px -6px rgba(99,102,241,.7);
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  color: rgba(255,255,255,.85);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; color: #fff; font-size: 14px; }
.float-card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); }
.float-card .ico svg { width: 18px; height: 18px; color: #fff; }
.fc-1 { top: 150px; left: -40px; }
.fc-2 { bottom: 40px; right: -36px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; scroll-margin-top: 72px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .25); border-color: #d8dbf0; }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(99,102,241,.6);
  margin-bottom: 22px;
}
.card .icon svg { width: 26px; height: 26px; color: #fff; }
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 15px; }
.card li { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--indigo); }

/* Process */
.process { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Principles */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.principle { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.principle .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #eef0ff; color: var(--indigo); margin-bottom: 16px; }
.principle .num svg { width: 22px; height: 22px; }
.principle h3 { font-size: 17px; margin: 0 0 6px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* Company */
.company { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.company::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%; background: rgba(99,102,241,.22); filter: blur(100px); }
.company .container { position: relative; }
.company .section-head p { color: rgba(255,255,255,.7); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.fact { padding: 28px 30px; background: var(--ink-2); }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.fact dd { margin: 0; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.fact.wide { grid-column: span 3; }
.fact.wide dd { font-size: 17px; font-weight: 500; line-height: 1.5; }

/* CTA */
.cta { padding: 0; margin: 110px 0; }
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 72px 64px;
  background: var(--grad);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.cta-box h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 12px; }
.cta-box p { margin: 0; color: rgba(255,255,255,.88); font-size: 18px; }
.contact-list { position: relative; z-index: 1; display: grid; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-weight: 500;
}
.contact-item:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.contact-item svg { width: 20px; height: 20px; flex: none; }
.contact-item small { display: block; font-size: 12px; opacity: .75; font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 80px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { font-family: var(--font-head); color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-about p { margin: 18px 0 0; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 14px; color: rgba(255,255,255,.45); }

/* ---------- Legal pages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 160px 0 72px; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; top: -240px; right: -120px; border-radius: 50%; background: rgba(139,92,246,.35); filter: blur(90px); }
.page-hero .container { position: relative; max-width: 860px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 52px); margin: 0 0 12px; }
.page-hero p { margin: 0; color: rgba(255,255,255,.65); }
.legal { padding: 72px 0 110px; }
.legal .container { max-width: 860px; }
.legal h2 { font-size: 24px; margin: 52px 0 14px; padding-top: 8px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: #334155; font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.note {
  padding: 22px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(6,182,212,.08));
  border: 1px solid #e0defa;
  color: #1e293b;
  margin: 28px 0;
}
.note strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .section-head { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact.wide { grid-column: span 2; }
  .cta-box { grid-template-columns: 1fr; padding: 52px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 132px 0 90px; }
  section { padding: 80px 0; }
  .cards, .steps, .principles, .facts { grid-template-columns: 1fr; }
  .fact.wide { grid-column: span 1; }
  .fc-1 { left: -4px; } .fc-2 { right: -4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { margin: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}
