/* usebata.com — one-screen site. Palette from the brand: deep green #001F09, lime #BBE660, olive #49640F, pale mint #EFFFE5. */
@font-face { font-family: "Trap"; src: url("/assets/fonts/Trap-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Trap"; src: url("/assets/fonts/Trap-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Trap"; src: url("/assets/fonts/Trap-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Trap"; src: url("/assets/fonts/Trap-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Trap"; src: url("/assets/fonts/Trap-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --green: #001F09;
  --green-deep: #000F05;
  --green-mid: #12300F;
  --lime: #BBE660;
  --lime-soft: #E3F5B4;
  --olive: #49640F;
  --mint: #EFFFE5;
  --display: "Unbounded", "Trap", "Archivo Black", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--mint);
  background: var(--green-deep);
  background-image:
    linear-gradient(180deg, rgba(187,230,96,.22) 0%, rgba(73,100,15,.06) 45%, rgba(73,100,15,0) 100%),
    linear-gradient(180deg, #00270C 0%, #000F05 100%);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* grid texture */
.grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(187,230,96,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(187,230,96,.10) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 60%, rgba(0,0,0,.1) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 60%, rgba(0,0,0,.1) 100%);
}

/* nav */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 18px var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { height: 30px; width: auto; }
.tag {
  font: 700 11px/1 var(--display); letter-spacing: .12em; color: var(--lime);
  border: 2px solid var(--lime); border-radius: 999px; padding: 7px 10px 6px;
}
.user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid rgba(239,255,229,.6); background: rgba(255,255,255,.05);
  font: 600 14px/1 var(--body); letter-spacing: -.01em; color: var(--mint);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.user .wa { width: 16px; height: 16px; color: var(--lime); }
.user:hover { background: rgba(187,230,96,.14); border-color: var(--lime); transform: translateY(-1px); }

/* hero layout */
.hero {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 14px; padding: 6px 0 0;
}
.eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: #0E3315; border: 1px solid rgba(187,230,96,.35);
  font: 600 11px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--lime);
  text-align: center; max-width: calc(100% - 2 * var(--pad));
  animation: rise .7s var(--ease) both;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px 2px rgba(187,230,96,.9); flex: none; animation: pulse 2.4s ease-in-out infinite; }

/* headline stage */
.stage {
  position: relative; width: min(100%, 1440px); height: clamp(280px, 27vw, 396px);
  display: flex; align-items: center; justify-content: center;
}
.headline {
  margin: 0; text-align: center; color: #fff;
  font: 900 clamp(40px, 7.9vw, 114px)/.94 var(--display);
  letter-spacing: -.03em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center;
}
.headline .desk, .headline .mob { display: flex; flex-direction: column; align-items: center; }
.headline .mob { display: none; }
.headline .line { display: block; white-space: nowrap; animation: rise .8s var(--ease) both; }
.headline .line:nth-child(2) { animation-delay: .08s; }
.headline .line:nth-child(3) { animation-delay: .16s; }
.headline .line:nth-child(4) { animation-delay: .24s; }
.headline .line:nth-child(5) { animation-delay: .32s; }
.headline .line:nth-child(6) { animation-delay: .4s; }

/* scribbles */
.scribble { position: absolute; pointer-events: none; }
.scribble path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s var(--ease) forwards; }
.hash { width: clamp(70px, 10vw, 150px); left: 7.5%; top: -6%; transform: rotate(-8deg); }
.hash path { animation-delay: .4s; }
.arrow1 { width: clamp(110px, 15vw, 220px); right: 8%; top: 2%; transform: rotate(10deg); }
.arrow1 path { animation-delay: .7s; }
.arrow2 { width: clamp(110px, 15vw, 220px); left: 10%; bottom: 4%; transform: rotate(6deg); }
.arrow2 path { animation-delay: .9s; }

/* chips */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 15px; border-radius: 15px;
  font: 700 clamp(13px, 1.25vw, 18px)/1 var(--body); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 18px 40px rgba(0,20,5,.45);
  transform: rotate(var(--r)) translateY(0);
  animation: drop .7s var(--ease) both;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  will-change: transform;
}
.chip .ico { font-size: 1.05em; line-height: 1; transition: transform .3s var(--ease); }
.chip:hover, .chip:focus-visible { transform: rotate(var(--r)) translateY(-4px) scale(1.03); box-shadow: 0 26px 50px rgba(0,20,5,.55); filter: saturate(1.15); outline: none; }
.chip:hover .ico { transform: rotate(-12deg) scale(1.15); }
.chip:focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 6px var(--lime); }
.chip-gh   { --r: -4deg; background: #FFECEC; color: #F0554A; left: 0; right: 0; margin-inline: auto; width: max-content; top: -3%; animation-delay: .9s; }
.chip-wa   { --r: -7deg; background: #EAF7EA; color: #22A745; right: 9%;  top: 36%;  animation-delay: 1.0s; }
.chip-sec  { --r: 6deg;  background: #E8F3FF; color: #1E8CFF; left: 7%;   top: 70%;  animation-delay: 1.1s; }
.chip-fast { --r: -3deg; background: #FFF1E6; color: #FF8A2A; left: 57%;  top: 84%;  animation-delay: 1.2s; }

/* sticker */
.sticker {
  position: absolute; right: 6.5%; top: 52%; width: clamp(110px, 13vw, 190px); aspect-ratio: 1;
  transform: rotate(-12deg); animation: drop .8s var(--ease) 1.25s both;
  transition: transform .3s var(--ease);
}
.sticker:hover { transform: rotate(-6deg) scale(1.05); }
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.sticker .spin { transform-origin: 95px 95px; animation: spin 20s linear infinite; }
.ringtext { font: 700 13px var(--display); letter-spacing: .18em; fill: #001F09; }

/* buttons */
.buttons { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 0 var(--pad); animation: rise .8s var(--ease) .5s both; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 32px; border-radius: 20px;
  font: 700 18px/1 var(--display); letter-spacing: -.01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  color: var(--green); background: var(--lime);
  box-shadow: inset 0 1px 0 rgba(227,245,180,.9), 0 12px 48px rgba(187,230,96,.35);
}
.btn-primary .hand { width: 22px; height: 22px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(227,245,180,.9), 0 18px 60px rgba(187,230,96,.5); }
.btn-ghost { color: var(--mint); border: 1.5px solid rgba(239,255,229,.7); background: rgba(255,255,255,.06); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--lime); color: var(--lime); background: rgba(187,230,96,.08); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green), 0 0 0 6px var(--lime); }

/* marquee */
.marquee-slot { width: 100%; height: clamp(112px, 10.4vw, 150px); position: relative; overflow: hidden; }
.marquee {
  position: absolute; left: -4vw; right: -4vw; top: 50%;
  height: clamp(70px, 6.6vw, 94px); background: var(--lime);
  transform: translateY(-50%) rotate(-2deg);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  overflow: hidden; display: flex; align-items: center;
  cursor: pointer; transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.marquee:hover, .marquee:focus-visible { background: #C9F075; box-shadow: 0 16px 48px rgba(187,230,96,.35); outline: none; }
.marquee:focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 6px var(--lime); }
.track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.word { font: 800 clamp(20px, 2vw, 29px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.illo { display: inline-block; width: 38px; height: 38px; flex: none; animation: bob 4s ease-in-out infinite; }
.illo svg { width: 100%; height: 100%; display: block; }
.illo.bolt { width: 29px; } .illo.squiggle { width: 54px; height: 27px; } .illo.ticket { width: 45px; height: 32px; }
.set .illo:nth-child(4n) { animation-delay: -1s; } .set .illo:nth-child(4n+2) { animation-delay: -2.3s; }

/* powered by */
.powered { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 var(--pad); }
.label { margin: 0; display: flex; align-items: center; gap: 16px; font: 600 11px/1 var(--display); letter-spacing: .4em; text-transform: uppercase; color: var(--lime); }
.rule { width: clamp(60px, 14vw, 200px); height: 1px; background: rgba(187,230,96,.35); }
.logos { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.logo { height: 30px; width: auto; opacity: .95; }
.logo.claude { height: 34px; display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.logo.claude .mark { height: 26px; width: 26px; }
.claude-word { font: 400 30px/1 "Fraunces", Georgia, serif; letter-spacing: -.02em; }
.logo.wab { height: 26px; } .logo.hubtel { height: 32px; }

.foot { padding: 10px var(--pad) 16px; font: 500 12.5px/1.4 var(--body); color: rgba(187,230,96,.85); text-align: center; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: rotate(var(--r, 0deg)) translateY(-26px) scale(.96); } 70% { transform: rotate(var(--r, 0deg)) translateY(4px) scale(1.01); } to { opacity: 1; transform: rotate(var(--r, 0deg)) translateY(0) scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(8deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble path { stroke-dashoffset: 0; }
}

/* tablet */
@media (max-width: 1024px) {
  .stage { height: clamp(300px, 46vw, 440px); }
  .chip { padding: 9px 12px; }
}

/* mobile */
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .wordmark { height: 26px; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; padding: 7px 12px; }
  .stage { height: auto; min-height: 430px; padding: 40px 0 64px; align-items: flex-start; }
  .headline { font-size: clamp(40px, 14vw, 56px); line-height: .98; letter-spacing: -.035em; }
  .headline .desk { display: none; }
  .headline .mob { display: flex; }
  .hash { width: 76px; left: 6%; top: 18px; }
  .arrow1 { width: 120px; right: 4%; top: 6px; }
  .arrow2 { display: none; }
  .chip { font-size: 13.5px; padding: 7px 11px; border-radius: 12px; gap: 7px; }
  .chip-gh   { top: 2px; }
  .chip-wa   { --r: 4deg;  left: 3%;  right: auto; top: 118px; bottom: auto; }
  .chip-sec  { --r: -4deg; left: auto; right: 4%; top: 208px; bottom: auto; }
  .chip-fast { --r: 3deg;  left: 5%;  right: auto; top: 302px; bottom: auto; }
  .sticker { width: 118px; right: 4%; top: 236px; bottom: auto; }
  .ringtext { font-size: 12.5px; }
  .buttons { flex-direction: column; width: 100%; gap: 10px; }
  .btn { width: 100%; padding: 16px; font-size: 16px; }
  .marquee { transform: translateY(-50%) rotate(-3deg); }
  .powered { gap: 14px; }
  .logo { height: 22px; } .logo.claude { height: 24px; } .logo.wab { height: 19px; } .logo.hubtel { height: 24px; }
  .foot { font-size: 11px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
