/* ============================================================
   ADYOI.GITHUB.IO — Futuristic Design System
   ============================================================ */

:root {
  --bg: #04060f;
  --bg-2: #0a0f1f;
  --glass: rgba(13, 20, 38, 0.55);
  --glass-2: rgba(255, 255, 255, 0.03);
  --line: rgba(103, 232, 249, 0.12);
  --line-hover: rgba(34, 211, 238, 0.45);
  --txt: #e6edf7;
  --mut: #8fa0b8;
  --c1: #22d3ee;
  --c2: #a78bfa;
  --grad: linear-gradient(90deg, var(--c1), var(--c2));
  --radius: 16px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(167, 139, 250, 0.07), transparent),
    var(--bg);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

/* ---------- Ambient orbs ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  z-index: -2;
  pointer-events: none;
}
.orb-1 {
  width: 480px;
  height: 480px;
  background: #0891b2;
  top: -140px;
  right: -100px;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 420px;
  height: 420px;
  background: #7c3aed;
  bottom: -160px;
  left: -120px;
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(70px, 50px) scale(1.15);
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--c1);
  color: #04060f;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 6, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 10px var(--c1);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  color: var(--mut);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover {
  color: var(--c1);
}
.nav-links a.ext::after {
  content: "↗";
  font-size: 0.7em;
  margin-left: 3px;
  opacity: 0.7;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono {
  font-family: var(--font-mono);
}

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c1);
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 8px var(--c1);
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--grad);
  color: #04060f;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.5);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--txt);
  background: var(--glass-2);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  color: var(--c1);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.45;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: 0 16px 48px -16px rgba(34, 211, 238, 0.28);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: var(--mut);
  font-size: 0.84rem;
}
.footer .mono {
  color: var(--c1);
}
.footer a:hover {
  color: var(--c1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .chip .dot, .brand .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
