/* ============================================================
   RydX Design System
   Modern · Elegant · Practical
   ============================================================ */

:root {
  --clr-bg:            #080c10;
  --clr-bg-subtle:     #0d1219;
  --clr-surface:       rgba(255,255,255,0.04);
  --clr-surface-hover: rgba(255,255,255,0.07);
  --clr-border:        rgba(255,255,255,0.08);
  --clr-border-light:  rgba(255,255,255,0.14);
  --clr-accent:        #00e5ff;
  --clr-accent-glow:   rgba(0,229,255,0.18);
  --clr-accent-dim:    rgba(0,229,255,0.55);
  --clr-red:           #ff3b5c;
  --clr-amber:         #ffaa00;
  --clr-text:          #e8eef4;
  --clr-text-muted:    rgba(232,238,244,0.50);
  --clr-text-faint:    rgba(232,238,244,0.28);
  --font-display:      'Space Grotesk', system-ui, sans-serif;
  --font-body:         'DM Sans', system-ui, sans-serif;
  --space-1:  4px;  --space-2:  8px;  --space-3:  12px; --space-4:  16px;
  --space-5:  24px; --space-6:  32px; --space-7:  48px; --space-8:  64px;
  --space-9:  96px; --space-10: 128px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --max-w: 1120px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (max-width: 640px) { .container { padding-inline: var(--space-5); } }

.glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.glass-strong {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.accent { color: var(--clr-accent); }

.glow-underline { position: relative; display: inline-block; }
.glow-underline::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--clr-accent);
  box-shadow: 0 0 12px var(--clr-accent), 0 0 30px var(--clr-accent-glow);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-accent);
  color: #040810;
  box-shadow: 0 0 28px var(--clr-accent-glow);
}
.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 40px rgba(0,229,255,0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-light);
}
.btn-ghost:hover {
  background: var(--clr-surface-hover);
  border-color: rgba(255,255,255,0.22);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

.section    { padding-block: var(--space-10); }
.section-sm { padding-block: var(--space-8); }
.divider    { height: 1px; background: var(--clr-border); }

.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--clr-accent);
  background: rgba(0,229,255,0.07);
  color: var(--clr-accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fade-up 0.7s var(--ease-out) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
