@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Figtree:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─────────────────────────────────────────────────────────────
   CSS Custom Property for rotating RGB border animation
   ───────────────────────────────────────────────────────────── */
@property --ba {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ─────────────────────────────────────────────────────────────
   Reset
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────────────────────────
   Tokens
   ───────────────────────────────────────────────────────────── */
:root {
  --bg:         #060608;
  --surface:    #0e0e12;
  --surface2:   #13131a;
  --border:     rgba(255,255,255,0.06);
  --text:       #efefef;
  --text-2:     #999;
  --text-3:     #555;
  --accent:     #00c8ff;
  --accent-dim: rgba(0,200,255,0.08);

  --nav-h:  62px;
  --r:      12px;
  --r-lg:   18px;
  --max-w:  1080px;

  --font-h: 'Syne', sans-serif;
  --font-b: 'Figtree', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
}

/* ─────────────────────────────────────────────────────────────
   Base
   ───────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   Background blur orbs  (fixed so they stay while scrolling)
   ───────────────────────────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.orb-1 {
  width: 560px; height: 560px;
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(0,100,255,0.14) 0%, transparent 70%);
  animation: orb-drift 10s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: 5%; left: -100px;
  background: radial-gradient(circle, rgba(180,0,255,0.12) 0%, transparent 70%);
  animation: orb-drift 13s ease-in-out infinite reverse;
}
.orb-3 {
  width: 320px; height: 320px;
  top: 50%; right: 10%;
  background: radial-gradient(circle, rgba(0,220,120,0.08) 0%, transparent 70%);
  animation: orb-drift 9s ease-in-out infinite 3s;
}
@keyframes orb-drift {
  0%,100% { transform: translate(0,0); }
  33%      { transform: translate(40px,-30px); }
  66%      { transform: translate(-20px,25px); }
}

/* ─────────────────────────────────────────────────────────────
   RGB border — apply class .rgb to any element
   ───────────────────────────────────────────────────────────── */
@keyframes rgb-spin { to { --ba: 360deg; } }

.rgb {
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
      from var(--ba),
      #ff004488 0%,
      #ff880066 12%,
      #ffee0066 25%,
      #00ff8866 38%,
      #00ccff88 50%,
      #8800ff88 62%,
      #ff00cc88 75%,
      #ff004488 100%
    ) border-box;
  animation: rgb-spin 5s linear infinite;
}

/* surface-2 variant for dark cards */
.rgb-d {
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--surface2), var(--surface2)) padding-box,
    conic-gradient(
      from var(--ba),
      #ff004488 0%,
      #ff880066 12%,
      #ffee0066 25%,
      #00ff8866 38%,
      #00ccff88 50%,
      #8800ff88 62%,
      #ff00cc88 75%,
      #ff004488 100%
    ) border-box;
  animation: rgb-spin 5s linear infinite;
}

/* subtle glow variant (slower, dimmer) */
.rgb-slow {
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
      from var(--ba),
      #ff004433 0%,
      #ff880033 12%,
      #ffee0033 25%,
      #00ff8833 38%,
      #00ccff44 50%,
      #8800ff33 62%,
      #ff00cc33 75%,
      #ff004433 100%
    ) border-box;
  animation: rgb-spin 8s linear infinite;
}

/* ─────────────────────────────────────────────────────────────
   Nav
   ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(6,6,8,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
}

.nav-logo {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.3px;
}
.nav-logo .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--text-2);
  padding: 6px 15px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  letter-spacing: .01em;
}
.nav-links a:hover  { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }

.nav-btn {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  color: #0a0a0a;
  background: var(--text);
  padding: 7px 18px;
  border-radius: 7px;
  transition: background .2s;
  letter-spacing: .01em;
}
.nav-btn:hover { background: var(--accent); color: #000; }

/* ─────────────────────────────────────────────────────────────
   Page shell
   ───────────────────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 44px;
}

/* ─────────────────────────────────────────────────────────────
   Page header (inner pages)
   ───────────────────────────────────────────────────────────── */
.pg-head {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.pg-label {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pg-title {
  font-family: var(--font-h);
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: .96;
  color: var(--text);
}
.pg-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-top: 16px;
  max-width: 480px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: var(--r);
  padding: 11px 24px;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-solid { background: var(--text); color: #000; }
.btn-solid:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────
   Tag / Badge
   ───────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.tag-gold  { background: rgba(255,200,0,.07);  color: #FFD84D; border-color: rgba(255,200,0,.18); }
.tag-cyan  { background: var(--accent-dim);     color: var(--accent); border-color: rgba(0,200,255,.2); }

/* ─────────────────────────────────────────────────────────────
   Scroll reveal
   ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .05s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .19s; }
.reveal-d4 { transition-delay: .26s; }

/* immediate fade for hero elements */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.f1 { animation: fadeUp .6s .06s ease both; }
.f2 { animation: fadeUp .6s .14s ease both; }
.f3 { animation: fadeUp .6s .22s ease both; }
.f4 { animation: fadeUp .6s .30s ease both; }
.f5 { animation: fadeUp .6s .38s ease both; }

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-copy { font-family: var(--font-m); font-size: 11px; color: var(--text-3); }
.f-links { display: flex; gap: 20px; }
.f-links a { font-family: var(--font-m); font-size: 11px; color: var(--text-3); transition: color .18s; }
.f-links a:hover { color: var(--text-2); }

/* ─────────────────────────────────────────────────────────────
   Scroll reveal JS hook
   ───────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .wrap { padding: 0 20px; }
  .pg-head { padding: 52px 0 44px; }
  footer { padding: 22px 20px; flex-direction: column; gap: 10px; text-align: center; }
}

/* Hides the default mouse pointer */
body {
  cursor: none; 
}

/* --- THE RGB ANIMATIONS --- */
@keyframes rgbBackground {
  0%   { background-color: #ff0000; } /* Red */
  16%  { background-color: #ff00ff; } /* Magenta */
  33%  { background-color: #0000ff; } /* Blue */
  50%  { background-color: #00ffff; } /* Cyan */
  66%  { background-color: #00ff00; } /* Green */
  83%  { background-color: #ffff00; } /* Yellow */
  100% { background-color: #ff0000; } /* Red */
}

@keyframes rgbBorder {
  0%   { border-color: #ff0000; }
  16%  { border-color: #ff00ff; }
  33%  { border-color: #0000ff; }
  50%  { border-color: #00ffff; }
  66%  { border-color: #00ff00; }
  83%  { border-color: #ffff00; }
  100% { border-color: #ff0000; }
}

@keyframes rgbHoverGlow {
  0%   { background-color: rgba(255, 0, 0, 0.1); border-color: #ff0000; }
  16%  { background-color: rgba(255, 0, 255, 0.1); border-color: #ff00ff; }
  33%  { background-color: rgba(0, 0, 255, 0.1); border-color: #0000ff; }
  50%  { background-color: rgba(0, 255, 255, 0.1); border-color: #00ffff; }
  66%  { background-color: rgba(0, 255, 0, 0.1); border-color: #00ff00; }
  83%  { background-color: rgba(255, 255, 0, 0.1); border-color: #ffff00; }
  100% { background-color: rgba(255, 0, 0, 0.1); border-color: #ff0000; }
}

/* --- THE CURSOR ELEMENTS --- */

/* The solid inner dot */
.cursor {
  position: fixed;
  width: 8px; 
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  /* Applies the RGB background loop (4 seconds) */
  animation: rgbBackground 4s linear infinite; 
}

/* The trailing ring */
.cursor-ring {
  position: fixed;
  width: 36px; 
  height: 36px;
  border: 1px solid transparent; /* Replaced by animation */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease;
  /* Applies the RGB border loop */
  animation: rgbBorder 4s linear infinite; 
}

/* The hover state (expands and fills with a faint RGB glow) */
.cursor-ring.hover {
  width: 60px; 
  height: 60px;
  /* Switches to the hover animation that includes the faint background tint */
  animation: rgbHoverGlow 4s linear infinite; 
}
