html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
:focus-visible { outline: 2px solid #B6FF5C; outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 4rem; }

.section { padding: 6rem 0; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .75rem; letter-spacing: .25em; color: #B6FF5C; margin-bottom: 1rem; }
.h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1; font-size: clamp(2rem, 5.5vw, 4rem); margin-top: .5rem; max-width: 20ch; }
#groo .h2 { max-width: none; }

.btn-lime, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; will-change: transform; }
.btn-lime { background: #B6FF5C; color: #080B12; box-shadow: 0 0 30px -6px rgba(182,255,92,.6); }
.btn-lime:hover { box-shadow: 0 0 44px -2px rgba(182,255,92,.85); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.glass { background: rgba(21,27,42,.72); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); }
.card-x { background: #151B2A; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 1.6rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card-x:hover { border-color: rgba(182,255,92,.4); }

.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .25; pointer-events: none; }
.glow-lime { background: #B6FF5C; top: -120px; left: -160px; }
.glow-violet { background: #A78BFA; bottom: -160px; right: -120px; opacity: .3; }

/* hero floaters */
.chip { position: absolute; font-size: 11px; font-family: 'JetBrains Mono', monospace; padding: .4rem .7rem; border-radius: 999px; background: rgba(21,27,42,.85); border: 1px solid rgba(167,139,250,.5); backdrop-filter: blur(8px); max-width: 190px; }
.chip-a { left: -6px; top: 14%; }
.chip-b { right: -4px; bottom: 30%; border-color: rgba(182,255,92,.5); }
.chip-c { left: 4%; bottom: 20%; }
.chip-d { right: 2%; bottom: 8%; color: #FF647C; border-color: rgba(255,100,124,.5); }
@media (max-width: 480px) { .chip-d { display: none; } .chip-a { top: 2%; } }
.scroll-dot { animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ticker */
.ticker-track { width: max-content; animation: tick 30s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

/* stats */
.stat .num { font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 700; line-height: 1; color: #B6FF5C; }
.stat .lbl { margin-top: .6rem; color: #9CA3AF; }

/* timelines */
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -7px; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: #B6FF5C; box-shadow: 0 0 14px #B6FF5C; }

/* philosophy cards */
.phil .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 1rem; transition: transform .4s; }
.phil:hover .ico, .phil:focus-visible .ico { transform: rotate(-8deg) scale(1.12); }
.phil:hover, .phil:focus-visible { transform: translateY(-6px); }
.phil h3 { font-size: 1.4rem; font-weight: 700; }
.phil p { color: #9CA3AF; margin-top: .5rem; }
.tag { display: inline-block; margin-top: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #B6FF5C; border: 1px dashed rgba(182,255,92,.4); padding: .25rem .6rem; border-radius: 6px; }

.cartoon { display: block; width: 100%; height: auto; border-radius: 20px; margin-bottom: 1.2rem; border: 1px solid rgba(255,255,255,.1); }
.crest { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }

/* ERP */
.pill { padding: .4rem .9rem; border: 1px solid rgba(167,139,250,.4); border-radius: 999px; color: #d8ccff; }
.widget { background: #151B2A; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 1rem; }
.wl { font-size: .75rem; color: #9CA3AF; }
.wv { font-size: 2rem; font-weight: 700; margin-top: .25rem; }
.bar { height: 6px; border-radius: 99px; background: #0d1220; overflow: hidden; margin-top: .6rem; }
.bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); border-radius: 99px; }
.tip { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #fff; color: #080B12; font-size: 12px; padding: .6rem .7rem; border-radius: 10px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: .2s; z-index: 5; }
.widget:hover .tip, #happyTip:focus + .tip, .tip.show { opacity: 1; transform: none; }

/* workflow */
.wf { padding-left: 0; }
.wf::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(#B6FF5C, #A78BFA, #FF647C); opacity: .5; }
.wf-step { position: relative; display: flex; align-items: center; gap: 1rem; background: #0d1220; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: .8rem 1rem; }
.wf-step .n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #B6FF5C; color: #080B12; font-weight: 700; z-index: 1; }
.wf-step code { overflow-wrap: anywhere; color: #e5ffc4; }

/* recalc */
.metric.shake { animation: shake .5s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

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