:root {
  --grad: linear-gradient(45deg, #38BDF8 0%, #D946EF 100%);
  --grad-soft: linear-gradient(45deg, rgba(56,189,248,0.18), rgba(217,70,239,0.18));
  --hair: rgba(255, 255, 255, 0.08);
}

html,
body {
  background: #060814;
}

html {
  scroll-behavior: auto; /* Lenis handles it */
}

/* ----- typography ----- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
}
.gradient-text-shimmer {
  background: linear-gradient(
    100deg,
    #38bdf8 0%,
    #d946ef 35%,
    #ffffff 50%,
    #d946ef 65%,
    #38bdf8 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -50% 0; }
}

/* ----- glass ----- */
.glass {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.hairline {
  border: 1px solid var(--hair);
}

/* gradient-bordered "ring" using mask-composite */
.grad-border {
  position: relative;
  isolation: isolate;
}
.grad-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* gradient halo behind elements */
.halo::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(45% 45% at 30% 40%, rgba(56,189,248,0.35), transparent 70%),
              radial-gradient(45% 45% at 70% 60%, rgba(217,70,239,0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* primary CTA pill */
.btn-grad {
  background: var(--grad);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow:
    0 8px 24px -8px rgba(217,70,239,0.45),
    0 8px 24px -8px rgba(56,189,248,0.45);
}
.btn-grad:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 0 6px rgba(217,70,239,0.12),
    0 12px 36px -8px rgba(217,70,239,0.55),
    0 12px 36px -8px rgba(56,189,248,0.55);
}
.btn-grad:active { transform: scale(0.98); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 200ms ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
}

/* focus rings */
:focus-visible {
  outline: 1px solid rgba(255,255,255,0.4);
  outline-offset: 3px;
  border-radius: 4px;
}

/* caret blink */
.caret::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  background: #fff;
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* hero grid lines */
.grid-lines {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* utility: noise/dither for depth */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gradient-text-shimmer { animation: none; }
  .marquee-track { animation: none; }
}

/* India saffron stripe */
.saffron-stripe {
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF9933 50%, transparent);
  opacity: 0.6;
}
