/* ==========================================================================
   GAGSTONE — Growth Studio
   Custom layer on top of the Tailwind CDN build. Tailwind handles layout and
   spacing utilities; this file owns typography defaults, the button system,
   motion and a few textured backgrounds.
   ========================================================================== */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { border-color: #262A33; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv05";
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Accessible skip link ---------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #CBFF3C;
  color: #0B0C10;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.btn--fill {
  background: #4F3DF5;
  color: #FBFAF7;
  border-color: #4F3DF5;
}
.btn--fill:hover { background: #3A2BD0; border-color: #3A2BD0; }

.btn--lime {
  background: #CBFF3C;
  color: #0B0C10;
  border-color: #CBFF3C;
}
.btn--lime:hover { background: #d8ff66; border-color: #d8ff66; }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: #3a3f4b;
}
.btn--ghost:hover { border-color: #CBFF3C; color: #CBFF3C; }

.btn--dark {
  background: #0B0C10;
  color: #FBFAF7;
  border-color: #0B0C10;
}
.btn--dark:hover { background: #14161C; }

/* ==========================================================================
   Textured backgrounds
   ========================================================================== */

/* Hero: fine dot grid + a soft violet glow bleeding from the top-left */
.grid-bg {
  background-color: #0B0C10;
  background-image:
    radial-gradient(600px 400px at 12% 0%, rgba(79, 61, 245, 0.22), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  background-position: 0 0, 0 0;
}

/* Live indicator next to the hero kicker */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #CBFF3C;
  box-shadow: 0 0 0 0 rgba(203, 255, 60, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(203, 255, 60, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(203, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 255, 60, 0); }
}

/* Duotone treatment so reference photography reads on-brand, not stock */
.duo {
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  background: #4F3DF5;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

[data-nav].nav--hidden { transform: translateY(-100%); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-item[data-state="open"] .faq-panel { max-height: 24rem; }

.faq-icon { transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease); }
.faq-icon svg { transition: transform 0.3s var(--ease); }
.faq-item[data-state="open"] .faq-icon { background: #CBFF3C; border-color: #CBFF3C; color: #0B0C10; }
.faq-item[data-state="open"] .faq-icon svg { transform: rotate(135deg); }
.faq-trigger:hover .faq-icon { border-color: #CBFF3C; }

/* ==========================================================================
   Forms
   ========================================================================== */

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23CBFF3C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select option { color: #FBFAF7; }
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #FBFAF7;
  -webkit-box-shadow: 0 0 0 1000px #14161C inset;
  caret-color: #FBFAF7;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #14161C;
  border: 1px solid #CBFF3C;
  color: #FBFAF7;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 20px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.toast.is-shown { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn__arrow { transition: none; }
}
