/* UDA — Universal Digital Agency. Mobile-first. */
:root {
  --bg: #f5f4ff;
  --bg-alt: #ecebff;
  --surface: #ffffff;
  --ink: #0f0e2a;
  --ink-2: #4a4870;
  --muted: #7d7ba3;
  --line: #e1dff7;
  --brand: #4f3ff0;
  --brand-2: #2a1fb8;
  --lime: #c8f135;
  --lime-ink: #1d2400;
  --shadow: 0 1px 2px rgba(20, 16, 80, .05), 0 8px 30px rgba(40, 30, 140, .08);
  --shadow-lg: 0 2px 4px rgba(20, 16, 80, .06), 0 24px 60px rgba(40, 30, 140, .16);
  --r: 20px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b1d;
    --bg-alt: #121128;
    --surface: #17163a;
    --ink: #f1f0ff;
    --ink-2: #b9b7e0;
    --muted: #8a88b8;
    --line: #2a2858;
    --brand: #8577ff;
    --brand-2: #5b4bff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 80px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.i { width: 22px; height: 22px; flex: none; }
.i.sm { width: 16px; height: 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.logo-text small { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }

.burger { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-content: center; gap: 6px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav {
  position: absolute; top: 64px; left: 0; right: 0;
  display: flex; flex-direction: column; padding: 8px 16px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.nav.open { opacity: 1; transform: none; pointer-events: auto; }
.nav a { padding: 14px 4px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-ghost .i { color: #1faa53; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 28px; overflow: hidden; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blobs i:nth-child(1) { width: 380px; height: 380px; background: #7a6bff; top: -120px; right: -120px; }
.blobs i:nth-child(2) { width: 300px; height: 300px; background: var(--lime); top: 260px; left: -160px; opacity: .35; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 260px; height: 260px; background: #3ad0ff; top: 120px; right: 20%; opacity: .25; animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 20px) scale(1.08); } }

.hero-in { display: grid; gap: 32px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 35%, transparent); }
.hero h1 { font-size: clamp(32px, 8.4vw, 60px); font-weight: 800; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand) 10%, #9a5bff 60%, #22b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 4.2vw, 19px); color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

.hero-art { display: flex; justify-content: center; }
.panel { width: min(100%, 420px); background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 26px; padding: 14px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel-bar span { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--h); box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .12); animation: pop 6s ease-in-out infinite; }
.tile .i { width: 46%; height: 46%; }
.tile:nth-child(2) { animation-delay: -.7s } .tile:nth-child(3) { animation-delay: -1.4s } .tile:nth-child(4) { animation-delay: -2.1s }
.tile:nth-child(5) { animation-delay: -2.8s } .tile:nth-child(6) { animation-delay: -3.5s } .tile:nth-child(7) { animation-delay: -4.2s } .tile:nth-child(8) { animation-delay: -4.9s }
@keyframes pop { 0%, 85%, 100% { transform: none; } 90% { transform: translateY(-4px) scale(1.05); } }
.panel-pulse { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; }
.panel-pulse span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 241, 53, .7); } 100% { box-shadow: 0 0 0 10px rgba(200, 241, 53, 0); } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 16px; display: flex; flex-direction: column; }
.stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.35; }

/* hues */
[data-hue="violet"] { --h: linear-gradient(135deg, #7b5cff, #4f3ff0); --hs: #6a4cff; }
[data-hue="green"]  { --h: linear-gradient(135deg, #2fe39a, #12a970); --hs: #18b878; }
[data-hue="blue"]   { --h: linear-gradient(135deg, #46b6ff, #2370f0); --hs: #2f8cf5; }
[data-hue="amber"]  { --h: linear-gradient(135deg, #ffc23d, #ff8a1f); --hs: #f59a1b; }
[data-hue="pink"]   { --h: linear-gradient(135deg, #ff6aa8, #e8336f); --hs: #ec4a86; }
[data-hue="gold"]   { --h: linear-gradient(135deg, #f2d04b, #c99a12); --hs: #c99a12; }
[data-hue="teal"]   { --h: linear-gradient(135deg, #34d6d0, #0e9aa0); --hs: #12a8ac; }
[data-hue="indigo"] { --h: linear-gradient(135deg, #5b6bff, #2b2f9e); --hs: #4450e0; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; max-width: 680px; }
.section-head h2, .contact h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 800; margin-top: 8px; }
.sub { color: var(--ink-2); margin-top: 10px; font-size: 17px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 18px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; font: 700 14px var(--font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--ink); border-color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--h); opacity: .9; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--hs) 40%, var(--line)); }
.card.hide { display: none; }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--h); color: #fff; display: grid; place-items: center; margin-right: auto; }
.tag, .badge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tag { background: var(--bg-alt); color: var(--ink-2); }
.badge { background: var(--lime); color: var(--lime-ink); }
.card h3 { font-size: 21px; font-weight: 800; margin-top: 4px; }
.card p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--hs); padding: 8px 0; }
.card-link .host { font-weight: 600; color: var(--muted); font-size: 13.5px; }
.card-link:hover .i { transform: translate(2px, -2px); }
.card-link .i { transition: transform .2s; }
.chip-link { margin-left: auto; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.chip-link:hover { border-color: var(--hs); color: var(--ink); }

.services { display: grid; gap: 14px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 14px; }
.service h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.service p { color: var(--ink-2); font-size: 15.5px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 22px 22px 22px 22px; border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); }
.step-n { display: inline-block; font-size: 13px; font-weight: 800; color: var(--lime-ink); background: var(--lime); border-radius: 8px; padding: 3px 8px; margin-bottom: 12px; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

.contact { position: relative; overflow: hidden; border-radius: 28px; padding: 28px 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #7b5cff 0%, #3a2be0 40%, #17125f 100%); box-shadow: var(--shadow-lg); display: grid; gap: 24px; }
.contact::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; bottom: -110px; border-radius: 50%; background: var(--lime); filter: blur(70px); opacity: .35; pointer-events: none; }
.contact .kicker { color: var(--lime); }
.contact p { color: rgba(255, 255, 255, .8); margin-top: 12px; font-size: 17px; }
.contact-actions { display: grid; gap: 10px; position: relative; z-index: 1; }
.cbtn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, transform .15s; }
.cbtn:hover { background: rgba(255, 255, 255, .18); }
.cbtn:active { transform: scale(.98); }
.cbtn .i { width: 26px; height: 26px; }
.cbtn span { display: flex; flex-direction: column; line-height: 1.25; }
.cbtn b { font-size: 16px; }
.cbtn small { font-size: 14px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.cbtn-wa { background: #25d366; border-color: #25d366; color: #05300f; }
.cbtn-wa:hover { background: #3be078; }
.cbtn-wa small { color: rgba(5, 48, 15, .75); }

.footer { padding: 32px 0 96px; border-top: 1px solid var(--line); }
.footer-in { display: grid; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.footer a:hover { color: var(--brand); }
.muted { color: var(--muted); }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .2s, opacity .3s; }
.fab .i { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.06); }
.fab.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 599px) {
  .hero-art { display: none; }
  .logo-text small { display: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid, .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { padding: 40px; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  .wrap { padding: 0 32px; }
  [id] { scroll-margin-top: 90px; }
  .header-in { height: 72px; gap: 28px; }
  .burger { display: none; }
  .nav { position: static; flex-direction: row; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; margin-left: auto; }
  .nav a { border: 0; padding: 8px 14px; font-size: 15px; border-radius: 10px; color: var(--ink-2); }
  .nav a:hover { color: var(--ink); background: var(--surface); }
  .header-right { margin-left: 0; }
  .hero { padding: 72px 0 40px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .stats { margin-top: 64px; }
  .stat { padding: 22px 26px; }
  .stat b { font-size: 36px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 36px; }
  .filters { margin: 0 0 24px; padding: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .services { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .contact { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 56px; gap: 48px; }
  .footer { padding-bottom: 40px; }
  .footer-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* AICC and other projects in development */
[data-hue="fuchsia"] { --h: linear-gradient(135deg, #d36bff, #8b2fd6); --hs: #a83ee0; }
.badge-dev { background: color-mix(in srgb, var(--hs) 16%, transparent); color: var(--hs); }
.card-dev { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); padding: 8px 0; }
.card-dev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hs); animation: pulse-dev 1.8s infinite; }
@keyframes pulse-dev { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
