/* yagiapp.com — Mateus Oliveira, 2026-10-28. Marco's teaser look (smoke, the lit horn Y); v2: rising sparks instead of rain. */
:root {
  --ink: #050608;
  --ink-2: #0A0C11;
  --volt: #C8FF3A;
  --text: #ECEFF4;
  --soft: #C9D0DC;
  --muted: #9BA3B4;
  --edge: rgba(255, 255, 255, .10);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.js .hero { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.js .hero .follow a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

/* ---------------- the scene: night, smoke, the flash light, vignette (sparks are a canvas on top) ---------------- */
.scene {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(46% 30% at 42% 40%, rgba(200, 255, 58, .045) 0%, rgba(200, 255, 58, 0) 100%),
    radial-gradient(95% 60% at 50% 41%, #17171A 0%, #101113 38%, rgba(12, 13, 15, 0) 78%),
    linear-gradient(180deg, #0A0B0D 0%, #08090A 55%, #060607 100%);
}
.smoke { position: absolute; inset: -10% 0; overflow: hidden; mix-blend-mode: screen; }
.smoke i {
  position: absolute; top: 0; bottom: 0; left: 0; display: block;
  width: calc(100% + var(--tile-w)); background-repeat: repeat;
  background-size: var(--tile-w) var(--tile-h);
  animation: drift var(--speed) linear infinite;
  will-change: transform;
}
.smoke--back { --tile-w: 1500px; --tile-h: 980px; --speed: 140s; opacity: .2; }
.smoke--back i { background-image: url(smoke-a.8ce52fd065.jpg); }
.smoke--low {
  --tile-w: 1100px; --tile-h: 760px; --speed: 70s; opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 85%);
  mask-image: linear-gradient(180deg, transparent 45%, #000 85%);
}
.smoke--low i { background-image: url(smoke-b.02ee683980.jpg); animation-direction: reverse; }
/* the storm: the same smoke, lit from behind, upper right; JS flickers it for lightning */
.storm {
  --tile-w: 1500px; --tile-h: 980px; --speed: 140s; opacity: .14;
  -webkit-mask-image: radial-gradient(60% 45% at 66% 30%, #000 0%, rgba(0, 0, 0, .45) 45%, transparent 100%);
  mask-image: radial-gradient(60% 45% at 66% 30%, #000 0%, rgba(0, 0, 0, .45) 45%, transparent 100%);
  filter: brightness(2.1) sepia(.5) hue-rotate(42deg) saturate(2.2);
}
.storm i { background-image: url(smoke-a.8ce52fd065.jpg); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--tile-w)), 0, 0); } }

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(78% 62% at 50% 40%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, .45) 58%, rgba(0, 0, 0, .82) 100%);
}

.sparks { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100%; display: block; pointer-events: none; }
.grain {
  position: fixed; inset: -64px; z-index: 4; pointer-events: none; opacity: .5;
  background-size: 128px 128px; mix-blend-mode: overlay;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 20% { transform: translate3d(-23px, 17px, 0); }
  40% { transform: translate3d(31px, -9px, 0); } 60% { transform: translate3d(-12px, -29px, 0); }
  80% { transform: translate3d(19px, 26px, 0); } 100% { transform: translate3d(0, 0, 0); }
}

/* ---------------- the hero ---------------- */
.hero {
  position: relative; z-index: 2; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) 16px 24px;
  text-align: center;
  overflow: hidden; overflow: clip;
}
.lockup { position: relative; margin: 0; width: min(84vw, 560px); line-height: 0; }
.lockup .mark { display: block; width: 100%; height: auto; overflow: visible; position: relative; z-index: 1; }
/* volt glow behind the horns */
.lockup .glow {
  position: absolute; z-index: 0; left: -22%; top: -55%; width: 80%; height: 210%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 255, 58, .16), rgba(200, 255, 58, .05) 55%, rgba(200, 255, 58, 0));
  pointer-events: none; transition: opacity 1.6s ease;
}
.js .lockup .glow { opacity: 0; }
.js.sweeping .lockup .glow, .js.lit .lockup .glow { opacity: 1; }
/* the mid smoke layer: drifts in front of the word and half-hides A-G-I */
.lockup .fog {
  position: absolute; z-index: 2; inset: -70% -30%; overflow: hidden; pointer-events: none;
  mix-blend-mode: screen; opacity: .22;
  --tile-w: 900px; --tile-h: 520px; --speed: 55s;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, rgba(0, 0, 0, .5) 65%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, rgba(0, 0, 0, .5) 65%, transparent 100%);
}
.lockup .fog i {
  position: absolute; top: 0; bottom: 0; left: 0; display: block; width: calc(100% + var(--tile-w));
  background: url(smoke-b.02ee683980.jpg) repeat 0 0 / var(--tile-w) var(--tile-h);
  animation: drift var(--speed) linear infinite reverse; will-change: transform;
}
.mark .bloom { opacity: .85; }
.lit .mark .bloom { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
/* with JS the light starts off and sweeps in (scene.js); without JS the still look shows */
.js .mark .lit-band, .js .mark .bloom { opacity: 0; }
.js.lit .mark .lit-band, .js.lit .mark .bloom, .js.sweeping .mark .lit-band, .js.sweeping .mark .bloom { opacity: 1; }

.line {
  margin: clamp(30px, 6.5vh, 60px) 0 0;
  font-size: clamp(24px, 6.4vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
  color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
.handle {
  margin: 10px 0 0; font-size: clamp(17px, 4.4vw, 21px); font-weight: 600; letter-spacing: .005em;
  color: var(--volt); text-shadow: 0 0 18px rgba(200, 255, 58, .25);
}
.follow {
  list-style: none; margin: clamp(26px, 4.5vh, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 358px);
}
.follow a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 27, 36, .86), rgba(14, 17, 23, .86));
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px -12px rgba(0, 0, 0, .8);
  color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.follow a:hover { border-color: rgba(200, 255, 58, .55); }
.follow a:active { transform: scale(.98); }
.follow svg {
  width: 22px; height: 22px; flex: none; color: var(--volt);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 760px) {
  .follow { grid-template-columns: repeat(4, auto); width: auto; gap: 12px; }
  .follow a { padding: 0 22px; }
}

/* entrance: the words arrive after the light */
.line, .handle, .follow { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.line { animation-delay: 1.9s; }
.handle { animation-delay: 2.15s; }
.follow { animation-delay: 2.4s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* ---------------- footer ---------------- */
.foot {
  position: relative; z-index: 2; flex: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
  padding: 18px 16px max(20px, env(safe-area-inset-bottom));
  font-size: 13.5px; color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot .dot { opacity: .5; }

/* ---------------- calm pages: privacy, terms ---------------- */
.page .scene { background: linear-gradient(180deg, #07090C 0%, #050608 40%, #050608 100%); }
.page .smoke--back { opacity: .16; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%); mask-image: linear-gradient(180deg, #000 0%, transparent 55%); }
.page .smoke--back i { animation: none; }
.doc { position: relative; z-index: 2; flex: 1 0 auto; width: 100%; max-width: 720px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px 40px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(40px, 8vh, 72px); }
.doc-home { display: block; width: 104px; line-height: 0; }
.doc-home svg { width: 100%; height: auto; display: block; overflow: visible; }
.doc-back { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 0; }
.doc-back:hover { color: var(--text); }
.doc h1 { margin: 0 0 6px; font-size: clamp(32px, 8vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.doc .updated { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
.prose { color: var(--soft); font-size: 17px; line-height: 1.7; }
.prose h2 { color: var(--text); font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin: 44px 0 10px; }
.prose h3 { color: var(--text); font-size: 17px; margin: 28px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--volt); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--edge); margin: 36px 0; }
.prose code { font-size: .92em; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--edge); }
.prose .table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 20px; }
.prose .table table { margin: 0; min-width: 520px; }
mark.fill { background: rgba(200, 255, 58, .16); color: var(--volt); border-radius: 4px; padding: 0 3px; }
.doc .placeholder { margin: 18px 0 32px; }
.placeholder {
  border: 1px dashed rgba(200, 255, 58, .45); border-radius: 18px; padding: 22px 22px 6px;
  background: rgba(200, 255, 58, .04);
}
.placeholder .tag { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); }

/* ---------------- 404 ---------------- */
.lost .lockup { width: min(62vw, 380px); }
.lost .line { font-size: clamp(22px, 5.6vw, 32px); }
.btn-home {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  margin-top: 30px; border-radius: 16px; border: 1px solid rgba(200, 255, 58, .5);
  color: var(--text); text-decoration: none; font-weight: 600;
  background: linear-gradient(180deg, rgba(23, 27, 36, .86), rgba(14, 17, 23, .86));
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) 2.4s both;
}
.btn-home:hover { border-color: var(--volt); }

/* ---------------- short screens (landscape phones) ---------------- */
@media (max-height: 560px) {
  .hero { padding-top: 28px; }
  .lockup { width: min(50vw, 380px); }
  .line { margin-top: 20px; }
}

/* ---------------- reduced motion: the still ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .mark .lit-band, .js .mark .bloom { opacity: 1; }
}
