:root {
  --background: 54 44% 98%;
  --foreground: 222 25% 14%;
  --card: 0 0% 100%;
  --card-foreground: 222 25% 14%;
  --primary: 86 73% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 60 24% 93%;
  --secondary-foreground: 222 25% 18%;
  --muted: 60 10% 86%;
  --muted-foreground: 222 13% 38%;
  --accent: 84 86% 92%;
  --accent-foreground: 222 25% 18%;
  --border: 60 12% 86%;
  --radius: 22px;
}

@font-face {
  font-family: "Avenir Next";
  src: local("Avenir Next"), local("AvenirNext-Regular");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", "Helvetica", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1 {
  word-spacing: 1.32em;
}

.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.border-border { border-color: hsl(var(--border)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.text-primary { color: hsl(var(--primary)); }
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-foreground-70 { color: hsl(var(--foreground) / 0.7); }
.border-border-60 { border-color: hsl(var(--border) / 0.6); }
.border-border-70 { border-color: hsl(var(--border) / 0.7); }
.bg-primary-15 { background-color: hsl(var(--primary) / 0.15); }
.bg-primary-20 { background-color: hsl(var(--primary) / 0.2); }
.bg-primary-30 { background-color: hsl(var(--primary) / 0.3); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.hover-bg-foreground-90:hover { background-color: hsl(var(--foreground) / 0.9); }

.text-balance { text-wrap: balance; }
.font-display { font-family: "Avenir Next", "Avenir", "Helvetica Neue", "Helvetica", sans-serif; }
[data-text-reveal] { word-spacing: 0.32em; }

.glass-nav {
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.08);
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  color: #1d2a0f;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #c0f453;
  box-shadow: 0 12px 30px rgba(120, 180, 35, 0.25);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(120, 180, 35, 0.3);
}

.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, background 0.2s ease;
}

.button-outline:hover {
  border-color: rgba(15, 23, 42, 0.3);
  background: #fff;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: hsl(var(--card));
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.card-muted {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.bg-grid {
  background-image: linear-gradient(rgba(2, 6, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 6, 23, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

.spotlight {
  background: radial-gradient(circle at center, rgba(190, 255, 90, 0.55) 0%, rgba(190, 255, 90, 0) 60%);
  filter: blur(2px);
}

.beam {
  background: linear-gradient(90deg, transparent 0%, rgba(190, 255, 90, 0.6) 45%, transparent 100%);
}

.aurora {
  background: radial-gradient(circle at top, rgba(191, 255, 120, 0.5), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(164, 255, 190, 0.5), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 240, 170, 0.6), transparent 55%);
}

.hover-border-gradient {
  position: relative;
  isolation: isolate;
}

.hover-border-gradient::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(134, 239, 172, 0.9), rgba(253, 224, 71, 0.9), rgba(134, 239, 172, 0.9));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.hover-border-gradient::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: transparent;
  z-index: -1;
}

.hover-border-gradient:hover::before {
  opacity: 1;
}

.button-primary.hover-border-gradient::after {
  background: #c0f453;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) rotate(1deg);
  animation: word-reveal 0.7s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.meteor-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.meteor {
  position: absolute;
  top: var(--top, 0%);
  left: var(--left, 0%);
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(190, 255, 120, 0.65));
  opacity: 0;
  filter: blur(0.3px);
  animation: meteor 7s linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes word-reveal {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes beam {
  0% { transform: translateX(-30%) skewX(-10deg); opacity: 0; }
  30% { opacity: 0.35; }
  70% { opacity: 0.35; }
  100% { transform: translateX(130%) skewX(-10deg); opacity: 0; }
}

@keyframes meteor {
  0% { transform: translateY(-200px) translateX(-40px); opacity: 0; }
  10% { opacity: 0.6; }
  100% { transform: translateY(600px) translateX(120px); opacity: 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 6s ease infinite; }
.animate-beam { animation: beam 9s ease-in-out infinite; }

.gallery-fade {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.gallery-fade.is-fading {
  opacity: 0;
  filter: blur(4px);
}

.wt-stage {
  position: relative;
  min-height: 420px;
}

@media (min-width: 768px) {
  .wt-stage {
    min-height: 320px;
  }
}

.wt-item {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

@media (max-width: 640px) {
  .wt-stage {
    min-height: 520px;
  }

  .wt-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .wt-item button {
    align-self: flex-start;
  }
}

.wt-item.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
