/* ════════════════════════════════════════════════
   Bespoke CSS — ported verbatim from the original
   React project's src/index.css
   ════════════════════════════════════════════════ */

/* ── Mouse spotlight ────────────────────────── */
.mouse-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px),
    rgba(60,186,146,0.08) 0%,
    rgba(96,71,180,0.05) 35%,
    transparent 70%);
  transition: opacity 0.3s ease;
}

/* ── Card glow border on hover ──────────────── */
.card-base {
  position: relative;
  overflow: hidden;
}

.card-base::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #3CBA92, #6047B4, #F5C842, #3CBA92);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmerBorder 4s linear infinite paused;
}

.card-base > * {
  position: relative;
  z-index: 1;
}

.card-base:hover::before {
  opacity: 0.5;
  animation-play-state: running;
}

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

/* ── Hover tilt effect ──────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

/* ── Floating dot particles ─────────────────── */
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50%  { transform: translateY(-40px) translateX(15px) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleDrift linear infinite;
  pointer-events: none;
}

/* ── Section divider glow line ──────────────── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, #3CBA92 30%, #6047B4 70%, transparent);
  opacity: 0.4;
}

/* ── Shimmer text highlight on hover ────────── */
.shimmer-hover {
  background: linear-gradient(90deg, #3CBA92 0%, #62CCA8 40%, #F5C842 60%, #3CBA92 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite paused;
}

.shimmer-hover:hover {
  animation-play-state: running;
}

@keyframes shimmerText {
  to { background-position: 200% center; }
}

/* ════════════════════════════════════════════════
   PREMIUM SYSTEM — high-tech enterprise polish
   ════════════════════════════════════════════════ */

/* ─── Corner brackets on premium cards ─── */
.card-premium {
  position: relative;
  overflow: hidden;
  background: #0f0d26;
  border: 1px solid rgba(60,186,146,0.25);
  border-radius: 18px;
  box-shadow: 0 12px 50px -20px rgba(60,186,146,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-premium::before,
.card-premium::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid #3CBA92;
  opacity: 0.6;
  transition: all 0.4s ease;
}
.card-premium::before {
  top: 8px; left: 8px;
  border-right: none; border-bottom: none;
}
.card-premium::after {
  bottom: 8px; right: 8px;
  border-left: none; border-top: none;
}
.card-premium:hover { box-shadow: 0 20px 60px -10px rgba(60,186,146,0.25), inset 0 1px 0 rgba(255,255,255,0.06); transform: translateY(-3px); border-color: rgba(60,186,146,0.5); }
.card-premium:hover::before,
.card-premium:hover::after { opacity: 1; width: 22px; height: 22px; border-color: #62CCA8; }

/* ─── Section numbered badge (01, 02, 03…) ─── */
.section-num {
  display: inline-flex;
  position: relative;
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #62CCA8;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,186,146,0.12), rgba(96,71,180,0.05));
  border: 1px solid rgba(60,186,146,0.3);
  box-shadow: 0 0 24px rgba(60,186,146,0.18) inset;
}

.section-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(96,71,180,0.4);
  animation: spinSlow 14s linear infinite;
}

.section-num::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border-top: 1px solid rgba(60,186,146,0.5);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid rgba(245,200,66,0.3);
  animation: spinSlow 9s linear infinite reverse;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ─── Scan-line decorative overlay for hero ─── */
.scan-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(60,186,146,0.025) 3px,
    rgba(60,186,146,0.025) 4px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ─── Holographic gradient title text ─── */
.holo-text {
  background: linear-gradient(120deg,
    #62CCA8 0%,
    #F2EFFF 25%,
    #7B62C8 50%,
    #F2EFFF 75%,
    #62CCA8 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoSlide 8s linear infinite;
}

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

/* ─── Animated tag underline ─── */
.tag-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tag-line::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3CBA92);
}
.tag-line::after {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, #3CBA92, transparent);
}

/* ─── Magnetic floating CTA halo ─── */
.cta-halo {
  position: relative;
}
.cta-halo::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #3CBA92, #6047B4, #F5C842, #3CBA92);
  filter: blur(14px);
  opacity: 0.45;
  z-index: -1;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Glassy navbar enhancement ─── */
.nav-glass {
  background: rgba(12, 10, 26, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(60,186,146,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px -10px rgba(0,0,0,0.5);
}

/* ─── Animated nav-item underline ─── */
.nav-link {
  position: relative;
  padding: 6px 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #3CBA92, #6047B4);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ─── Concentric pulse rings (CTA section) ─── */
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(60,186,146,0.25);
  pointer-events: none;
  animation: ringExpand 5s ease-out infinite;
  opacity: 0;
}

@keyframes ringExpand {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ─── Tech grid backdrop (subtle scan) ─── */
.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96,71,180,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,71,180,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 70%);
  pointer-events: none;
}

/* ─── Counter ring (Stats) ─── */
.stat-ring {
  position: relative;
  width: 132px; height: 132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.stat-ring-bg { stroke: rgba(45,38,96,0.5); }
.stat-ring-fg {
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1);
}

/* ─── Tech terminal mini-snippet ─── */
.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 16, 41, 0.85);
  border: 1px solid rgba(60,186,146,0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #62CCA8;
  letter-spacing: 0.04em;
  position: relative;
}
.term-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3CBA92;
  box-shadow: 0 0 10px #3CBA92;
  animation: pulseDot 1.5s ease-in-out infinite;
}
.term-chip .caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: #62CCA8;
  margin-inline-start: 2px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* keyframe used by the term-chip pulse dot (mirrors tailwind pulseDot) */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* ─── Soft gradient mesh background ─── */
.mesh-bg {
  background:
    radial-gradient(at 20% 20%, rgba(60,186,146,0.18) 0px, transparent 50%),
    radial-gradient(at 80% 30%, rgba(96,71,180,0.22) 0px, transparent 50%),
    radial-gradient(at 60% 80%, rgba(245,200,66,0.08) 0px, transparent 50%),
    radial-gradient(at 30% 70%, rgba(60,186,146,0.12) 0px, transparent 50%);
}

/* Big watermark numeral behind section heading */
.section-watermark {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(96,71,180,0.18);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  top: -30px;
  inset-inline-end: -10px;
  z-index: 0;
}

/* Animated underline that draws when title enters viewport */
.title-underline {
  position: relative;
  display: inline-block;
}
.title-underline::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3CBA92, #6047B4, #F5C842);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.7,.2,1) 0.15s;
  box-shadow: 0 0 14px rgba(60,186,146,0.6);
}
.title-underline.visible::after {
  width: 88px;
}

/* Hero command-panel readouts at corners */
.hud-tag {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(98, 204, 168, 0.65);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(12, 10, 26, 0.55);
  border: 1px solid rgba(60, 186, 146, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.hud-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #3CBA92;
  border-radius: 50%;
  box-shadow: 0 0 8px #3CBA92;
}

/* spin keyframe (used by spin-slow / cta-halo) */
@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mouse-spotlight { display: none; }
}
