/* ══════════════════════════════════════════════════════
   VayuPress · flagship marketing site
   Deep dark cosmic · Vayu (wind) · teal / saffron
   ══════════════════════════════════════════════════════ */

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

/* ── Custom properties ── */
:root {
  --teal: #0d9488;
  --teal-l: #2dd4bf;
  --saffron: #f59e0b;
  --ink: #04060d;
}

/* ── Gradient text ── */
.text-gradient {
  background: linear-gradient(108deg, #5eead4 0%, #2dd4bf 38%, #f59e0b 110%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* prevent text-fill bleed on safari when backgrounded with dark parent */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Cosmic noise overlay ── */
.cosmic {
  background-image:
    radial-gradient(ellipse 80% 60% at 18% 22%, rgba(13,148,136,0.09), transparent 55%),
    radial-gradient(ellipse 60% 50% at 82% 72%, rgba(245,158,11,0.055), transparent 55%);
}

/* ── Glow blobs in hero ── */
.glow-hero-1 {
  position: absolute; pointer-events: none;
  width: 42rem; height: 42rem; border-radius: 9999px;
  background: rgba(13,148,136,0.10);
  filter: blur(120px);
  top: 26%; left: 50%; transform: translateX(-50%);
}
.glow-hero-2 {
  position: absolute; pointer-events: none;
  width: 28rem; height: 28rem; border-radius: 9999px;
  background: rgba(245,158,11,0.07);
  filter: blur(100px);
  bottom: 16%; right: 14%;
}

/* ── Brand logo (real PNG artwork) ── */
.brand-mark {
  image-rendering: -webkit-optimize-contrast;
  /* lift it off the dark background just slightly so the white edges pop */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

/* ── Nav link underline ── */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 0; transition: width 0.3s ease;
  background: linear-gradient(90deg, #2dd4bf, #f59e0b);
}
.nav-link:hover::after { width: 100%; }

/* ── Progress bar ── */
#progress { width: 100%; }

/* ── Terminal ── */
.terminal-frame {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(10,16,32,0.75);
  backdrop-filter: blur(16px);
  position: relative;
}
.terminal-frame::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(45,212,191,0.42), transparent 48%, rgba(245,158,11,0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  z-index: 0;
}
.term-bar {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 1;
}

/* ── Blinking cursor ── */
.cursor { display: inline-block; color: #2dd4bf; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Copy success pop ── */
.pop { animation: pop 0.35s cubic-bezier(0.34,1.56,0.64,1); display: inline-block; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Ripple button ── */
.ripple-btn .ripple {
  position: absolute; border-radius: 9999px; transform: scale(0);
  background: rgba(255,255,255,0.35); animation: ripple 0.7s ease-out; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4.5); opacity: 0; } }

/* ── Feature cards: 3D tilt + orb + cursor glow ── */
.feature-card {
  transform-style: preserve-3d;
  transition: transform 0.16s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.feature-card:hover { border-color: rgba(13,148,136,0.48); }
.card-orb {
  position: absolute; top: -50px; right: -50px; pointer-events: none;
  width: 200px; height: 200px; border-radius: 9999px;
  background: var(--orb, rgba(13,148,136,0.3)); filter: blur(56px);
  opacity: 0; transition: opacity 0.5s ease;
}
.feature-card:hover .card-orb { opacity: 0.65; }
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(480px circle at var(--mx,50%) var(--my,50%), rgba(13,148,136,0.15), transparent 45%);
  transition: opacity 0.4s ease;
}
.feature-card:hover .card-glow { opacity: 1; }

/* ── Scroll hint pill ── */
.scroll-pill {
  display: block; width: 22px; height: 34px;
  border: 1px solid currentColor; border-radius: 11px; position: relative;
}
.scroll-pill::after {
  content: ""; position: absolute; left: 50%; top: 5px;
  width: 3px; height: 6px; background: currentColor; border-radius: 2px;
  transform: translateX(-50%); animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%   { opacity:0; transform:translate(-50%,0); }
  40%  { opacity:1; }
  80%  { opacity:0; transform:translate(-50%,13px); }
  100% { opacity:0; }
}

/* ── Infinite marquee ── */
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 1.25rem; width: max-content;
  padding: 0.75rem 1.25rem 1.5rem;
  animation: marquee 60s linear infinite;
  /* reduce motion applied below */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Screenshot hover shine ── */
.shot::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.shot:hover::after { opacity: 1; }

/* ── Timeline ── */
.timeline-spine {
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, rgba(45,212,191,0.7), rgba(245,158,11,0.25) 70%, transparent);
}
.timeline-dot {
  position: absolute; left: -1.2rem; top: 1.6rem;
  width: 11px; height: 11px; border-radius: 9999px;
  background: #2dd4bf; box-shadow: 0 0 0 4px rgba(13,148,136,0.2);
}
@media (min-width: 640px) {
  .timeline-dot { left: -1.85rem; }
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition:
    opacity  0.75s cubic-bezier(0.22,1,0.36,1),
    transform 0.75s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── Focus ring (accessible, non-default) ── */
.focus-ring:focus-visible {
  outline: 2px solid #2dd4bf; outline-offset: 3px; border-radius: 8px;
}
*:focus { outline: none; }
*:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 3px; border-radius: 6px; }

/* ── Global scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #04060d; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

::selection { background: rgba(13,148,136,0.42); color: #fff; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  #wind { display: none; }
  #aura { display: none !important; }
}

/* ── Mobile polish ── */
@media (max-width: 480px) {
  .terminal-frame pre { font-size: 11px; padding: 1rem; }
}
