/* ----------------------------------------------------------------------
   Appflare — static HTML build
   Hand-ported from src/app/globals.css (Next.js project)
   ---------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0b0713;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #e0219a;
  color: #fff;
}

/* ---- brand helpers -------------------------------------------------- */

.flare-text {
  background-image: linear-gradient(100deg, #3d1bd6 0%, #7b2fe3 32%, #a81fd8 55%, #e0219a 80%, #e5336e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flare-bg {
  background-image: linear-gradient(100deg, #3d1bd6 0%, #7b2fe3 30%, #a81fd8 55%, #e0219a 82%, #e5336e 100%);
}

.flare-border {
  position: relative;
  background: #fff;
}
.flare-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(61, 27, 214, 0.5), rgba(224, 33, 154, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.grid-lines {
  background-image:
    linear-gradient(to right, rgba(123, 47, 227, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(123, 47, 227, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---- scroll reveal ---------------------------------------------------
   CSS scroll-driven animation only: browsers without support (and users
   with JS disabled) simply see the content, never a blank section.       */

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-marquee, .animate-float, .animate-pulse-glow { animation: none !important; }
}

/* ---- header mobile sheet (state toggled via JS classes) -------------- */

#mobile-sheet {
  max-height: 0;
  border-color: transparent;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-sheet.open {
  max-height: 460px;
  border-color: var(--color-line, #ece7f7);
}

/* burger icon bars */
.burger-bar {
  transition: all 0.3s ease;
}
#burger.open .burger-bar-1 {
  transform: translateY(7px) rotate(45deg);
}
#burger.open .burger-bar-2 {
  opacity: 0;
}
#burger.open .burger-bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- site header (theme swaps between "on dark hero" and "scrolled/open") ----
   Ported from the conditional Tailwind classes in site-header.tsx, which relied
   on React state. Here the state is a class toggled by main.js. */

#site-header {
  transition: all 0.3s ease;
}
#site-header.on-dark {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}
#site-header.on-light {
  border-bottom: 1px solid #ece7f7;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.site-nav-link {
  transition: color 0.2s ease, background-color 0.2s ease;
}
#site-header.on-dark .site-nav-link {
  color: rgba(255, 255, 255, 0.7);
}
#site-header.on-dark .site-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
#site-header.on-light .site-nav-link {
  color: #55506a;
}
#site-header.on-light .site-nav-link:hover {
  background: rgba(123, 47, 227, 0.08);
  color: #7b2fe3;
}

.site-phone-link {
  transition: color 0.2s ease;
}
#site-header.on-dark .site-phone-link {
  color: rgba(255, 255, 255, 0.8);
}
#site-header.on-dark .site-phone-link:hover {
  color: #fff;
}
#site-header.on-light .site-phone-link {
  color: #0b0713;
}
#site-header.on-light .site-phone-link:hover {
  color: #e0219a;
}

#burger {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
#site-header.on-dark #burger {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
#site-header.on-light #burger {
  border-color: #ece7f7;
  background: #fff;
}
#site-header.on-dark .burger-bar {
  background: #fff;
}
#site-header.on-light .burger-bar {
  background: #0b0713;
}
