/* GAD 2026 Flagship Next-Gen Web3 Design System */
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --canvas: #040507;
  --surface: rgba(16, 18, 24, 0.72);
  --emerald: #10b981;
  --emerald-bright: #00e676;
  --cyan: #38bdf8;
}

* {
  box-sizing: border-box;
}

html,
body {
  background-color: #040507;
  color: #fafafa;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html[lang="fa"] body,
html[lang="ar"] body {
  font-family: "Vazirmatn", "Inter", system-ui, sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", system-ui, sans-serif;
}

.font-mono-web3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Deep Layered Nebula + Subtle Architectural Grid */
.gad-flagship-bg {
  background-color: #040507;
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -12%, rgba(16, 185, 129, 0.2), transparent 68%),
    radial-gradient(ellipse 46% 36% at 95% 18%, rgba(56, 189, 248, 0.11), transparent 70%),
    radial-gradient(ellipse 45% 40% at 5% 48%, rgba(16, 185, 129, 0.08), transparent 72%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
}

/* Interactive Mouse-Spotlight Glass Card */
.spotlight-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 22, 29, 0.78) 0%, rgba(9, 10, 14, 0.92) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 50px -24px rgba(0, 0, 0, 0.92);
  border-radius: 1.35rem;
  overflow: hidden;
  transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(16, 185, 129, 0.14),
    rgba(56, 189, 248, 0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 60px -22px rgba(0, 0, 0, 0.96),
    0 0 42px -16px rgba(16, 185, 129, 0.32);
}

.card-lift:hover {
  transform: translateY(-4px);
}

/* Animated Conic Rotating Border Beam (Vercel / Linear signature) */
@keyframes beamSpin {
  to {
    --beam-angle: 360deg;
  }
}

.border-beam-wrap {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle),
    rgba(255, 255, 255, 0.06) 0deg,
    rgba(255, 255, 255, 0.06) 245deg,
    rgba(52, 211, 153, 0.85) 295deg,
    rgba(56, 189, 248, 0.85) 330deg,
    rgba(255, 255, 255, 0.06) 360deg
  );
  animation: beamSpin 7s linear infinite;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.95), 0 0 60px -28px rgba(16, 185, 129, 0.32);
}

.border-beam-inner {
  border-radius: calc(1.5rem - 1.5px);
  background: linear-gradient(180deg, rgba(16, 18, 25, 0.94) 0%, rgba(8, 9, 13, 0.98) 100%);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

/* Floating Frosted Pill Header */
.floating-header {
  background: rgba(8, 9, 13, 0.76);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px -20px rgba(0, 0, 0, 0.85);
}

/* Live Seamless Top Marquee Ticker */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gad-marquee {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.gad-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marqueeScroll 32s linear infinite;
}

.gad-marquee:hover .gad-marquee-track {
  animation-play-state: paused;
}

/* Primary Shimmering Emerald CTA Button */
@keyframes shimmerSweep {
  0% {
    transform: translateX(-140%) skewX(-20deg);
  }
  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

.btn-emerald {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  color: #02140c;
  font-weight: 800;
  border: 1px solid rgba(110, 231, 183, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 28px -8px rgba(16, 185, 129, 0.58);
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-emerald::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-140%) skewX(-20deg);
  pointer-events: none;
}

.btn-emerald:hover:not(:disabled)::after {
  animation: shimmerSweep 0.85s ease;
}

.btn-emerald:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 34px -6px rgba(0, 230, 118, 0.65);
  transform: translateY(-1.5px);
}

.btn-emerald:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Sleek Secondary Glass Button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  color: #f4f4f5;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

/* Clean Dark Input */
.input-modern {
  background: rgba(6, 7, 11, 0.9);
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-modern::placeholder {
  color: #71717a;
}

.input-modern:focus {
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

/* Gradient Metallic Headlines */
.text-gradient-hero {
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 42%, #6ee7b7 78%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glowing Icon Container */
.icon-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px -8px rgba(16, 185, 129, 0.4);
}

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

.animate-float {
  animation: floatSmooth 6s ease-in-out infinite;
}

[x-cloak] {
  display: none !important;
}
