/* VeltrixHosting — design system layer */

:root {
  color-scheme: dark;
  --ink-950:#0a0a0f;
  --ink-900:#0f0f17;
  --ink-800:#15151f;
  --violet:#8b5cf6;
  --cyan:#06b6d4;
  --blue:#3b82f6;
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  background: #0a0a0f;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(139,92,246,0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(59,130,246,0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(6,182,212,0.10), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(139,92,246,0.5); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139,92,246,0.5), rgba(6,182,212,0.5));
  border-radius: 5px;
  border: 2px solid #0a0a0f;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8b5cf6, #06b6d4); }

/* Headings */
h1,h2,h3,h4 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.02em; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(120deg, #c4b5fd 0%, #8b5cf6 30%, #06b6d4 70%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-static {
  background: linear-gradient(120deg, #a78bfa 0%, #8b5cf6 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glow text */
.glow-text {
  text-shadow:
    0 0 24px rgba(139,92,246,0.45),
    0 0 60px rgba(139,92,246,0.18);
}

/* Glow border */
.glow-border {
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.4),
    0 0 32px -8px rgba(139,92,246,0.6);
}

/* Glass surface */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

.glass-strong {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Conic ring (hover effect on cards/buttons) */
.conic-ring { position: relative; isolation: isolate; }
.conic-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, #8b5cf6, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: conic-spin 6s linear infinite;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}
.conic-ring:hover::before { opacity: 1; }

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

/* Grid background overlay (used by Section bg="grid") */
.bg-grid {
  position: relative;
}
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.bg-grid > * { position: relative; z-index: 1; }

/* Animated dotted line for data-flow SVG in hero */
@keyframes flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -32; }
}
.flow-line {
  stroke-dasharray: 4 4;
  animation: flow 1.5s linear infinite;
}

/* LED blink for SVG illustration */
@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
.led-blink { animation: led-blink 2s ease-in-out infinite; }
.led-blink-2 { animation: led-blink 1.3s ease-in-out infinite; }
.led-blink-3 { animation: led-blink 1.7s ease-in-out infinite; }

/* Pulsing status dot halo */
@keyframes status-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}
.status-halo {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: status-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Shimmer (loading-style accent) */
.shimmer-bg {
  background: linear-gradient(90deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.18) 50%, rgba(139,92,246,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Floating motion */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7s ease-in-out infinite 0.6s; }

/* Diagonal stripe for hero badge */
.diagonal-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(139,92,246,0.10) 0,
    rgba(139,92,246,0.10) 6px,
    transparent 6px,
    transparent 14px
  );
}

/* Modal entrance */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(139,92,246,0.5); }
  100% { box-shadow: 0 0 0 14px rgba(139,92,246,0); }
}
.pulse-ring { animation: pulse-ring 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* AOS polish */
[data-aos] { will-change: transform, opacity; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { transition: none !important; transform: none !important; }
  .conic-ring::before { animation: none; }
  .marquee-track { animation: none; }
}

/* Accordion */
details.acc { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.025); }
details.acc + details.acc { margin-top: 10px; }
details.acc > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; color: #f3f4f6; user-select: none; border-radius: 14px; transition: background .2s; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:hover { background: rgba(139,92,246,0.06); }
details.acc > summary .chev { transition: transform .25s ease; color: #a78bfa; flex-shrink: 0; }
details.acc[open] > summary .chev { transform: rotate(180deg); }
details.acc > .acc-body { padding: 0 20px 20px; color: #9ca3af; line-height: 1.65; }

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Focus visible (a11y) */
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 6px; }

/* Underline link */
.link-underline {
  background-image: linear-gradient(90deg, #8b5cf6, #06b6d4);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.link-underline:hover { background-size: 100% 1px; }

/* Number ticker style for tech specs */
.spec-number {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle inner highlight on cards */
.inner-highlight {
  position: relative;
}
.inner-highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
}