/*@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@200;400;700;900&family=DM+Mono:ital@0;1&display=swap");*/

/* ── RESET & TOKENS ─────────────────────────────── */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.6; overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; border: none; background: none; font-family: inherit; }
  img { max-width: 100%; display: block; }
  input { font-family: inherit; }

:root {
  --c-bg: #070709;
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-border: rgba(255, 255, 255, 0.1);
  --c-text: #e8e6f0;
  --c-muted: rgba(232, 230, 240, 0.35);
  --c-accent1: #b3ffc8;
  --c-accent2: #ff6ef7;
  --c-accent3: #5eadff;
  --font-display: "Unbounded", sans-serif;
  --font-mono: "DM Mono", monospace;
}

:root {
    --blue:      #2563EB;
    --blue2:     #3B82F6;
    --blue3:     #60A5FA;
    --blue-dim:  rgba(37,99,235,0.07);
    --blue-mid:  rgba(37,99,235,0.14);
    --white:     #FFFFFF;
    --black:     #000000;
    --bg:        #F3F7FF;
    --bg2:       #FFFFFF;
    --bg3:       #EBF2FF;
    --text:      #0F172A;
    --textW:     #fff;
    --muted:     #64748B;
    --muted2:    #c1cdde;
    --border:    rgba(37,99,235,0.18);
    --border2:   rgba(0,0,0,0.07);
    --borderW:   rgba(255,255,255,0.15);
    --red:       #EF4444;
    --green:     #10B981;
    --radius:    8px;
    --rad-lg:    16px;
    --shadow:    0 4px 24px rgba(37,99,235,0.07);
    --shadow-hv: 0 20px 56px rgba(37,99,235,0.15);
  }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

    /* ── HEADER ──────────────────────────────────────────────── */
    header {
      margin: 30px;
      /* background: linear-gradient( 135deg, var(--c-accent1) 0%, var(--c-accent3) 50%, var(--c-accent2) 100% ); */
      background: rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
  
      border: 1px solid rgba(255, 255, 255, 0.5);
      border-radius: 100px; 
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        
      /*border-bottom: 1px solid var(--border2);*/
      position: sticky; top: 0; z-index: 1000;
      /*box-shadow: 0 1px 20px rgba(37,99,235,0.06);*/
    }
    .header-inner {
      max-width: 1440px; margin: 0 auto;
      padding: 0 28px;
      display: flex; align-items: center; gap: 24px; height: 68px;
    }
    .logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 26px; font-weight: 700; color: var(--blue);
      flex-shrink: 0; display: flex; align-items: center; gap: 5px;
      box-shadow: 0 8px 32px 0 rgba(210, 210, 212, 0.15);
      background: rgba(255, 255, 255, 0.2); letter-spacing: .5px;
      border-radius: 200px; padding: 5px 10px;
    }

    .logo_dark {
      flex-shrink: 0; display: flex; align-items: center; gap: 5px;
      filter: brightness(0) invert(1); drop-shadow: 0 0 0 #000;
      /*background: #fff; border-radius: 200px; padding: 5px 10px;*/
    }
    .footerLogo {
      flex-shrink: 0; display: flex; align-items: center; gap: 5px; position: relative; bottom: 25px;
      /*background: #fff; border-radius: 200px; padding: 5px 10px;*/
    }
    .nav-main { display: flex; gap: 2px; }
    .nav-main a {
      background: rgba(0, 0, 0, 0.5);
      padding: 7px 14px; font-size: 13px; font-weight: 500;
      color: var(--white); border-radius: 911px; transition: all .4s;
    }
    .nav-main a:hover { color: var(--white); background: rgba(255,255,255,0.4); }
    .nav-main a.active {
      color: var(--white); background: rgba(255, 255, 255, 0); border: 1px solid var(--white); font-weight: 600;
    }

    .header-spacer { flex: 1; }
    .header-actions { display: flex; align-items: center; gap: 6px; }
    .search-bar { flex: 1; max-width: 420px; display: flex; align-items: center; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.7); border-radius: 100px; padding: 0 16px; gap: 8px; transition: border-color 0.2s; }
    .search-bar:focus-within { background: #fff; border: 1.5px solid #4287f5; }
    .search-bar input { background: none; border: none; outline: none; color: #fff; font-size: 15px; font-weight: 600; flex: 1; padding: 9px 0; }
    .search-bar input::placeholder { color: rgba(255, 255, 255, 0.9); font-size: 14px; font-weight: 400; }
    .search-bar svg { width: 15px; height: 15px; fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; flex-shrink: 0; }

    .icon-btn {
      background: rgba(0, 0, 0, 0.5);
      width: 40px; height: 40px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--border2); color: var(--white);
      transition: all .2s; position: relative;
    }
    .icon-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
    .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
    .hd-badge {
      position: absolute; top: 1px; right: 1px;
      min-width: 17px; height: 17px;
      background: var(--blue); color: #fff;
      font-size: 9px; font-weight: 700; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      padding: 0 2px;
    }

    .btn-account {
      background: var(--blue); color: #fff;
      padding: 8px 20px; border-radius: 100px;
      font-size: 12px; font-weight: 600;
      display: flex; align-items: center; gap: 6px; transition: all .2s;
    }
    .btn-account:hover { background: var(--blue2); transform: translateY(-1px); }

    .header-profile { 
      width: 40px;
      height: 40px;
      background: #fff;
      border: 1px solid var(--bg3, var(--blue3));
      overflow: hidden;
      cursor: pointer;
      color: var(--blue3); padding: 3px/*18px 7px 7px*/;
      border-radius: 50%;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px; 
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .header-profile:hover { 
      background: rgba(0, 0, 225, 0.2); color: #fff;
      transform: scale(1.05);
      box-shadow: 0 0 5px rgba(0, 0, 215, 0.3);
    }
    .header-profile img { 
      width: 30px; height: 30px; border-radius: 50%;
      background: transparent; color: var(--blue);
      display: flex; align-items: center; justify-content: center;
      font-size: 10px; font-weight: 700; flex-shrink: 0;
      filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.5));
    }
    .headerAvatar { width: 70%; height: auto; display: block; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.5)); }
    .header-profile:hover .acc-avatar { color: var(--blue); }

    .hidden {
      display: none !important;
    }

/* ── CUSTOM CURSOR ──────────────────────────────── */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--c-accent1);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: exclusion;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(179, 255, 200, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1), width 0.3s,
    height 0.3s, border-color 0.3s;
}

body:has(a:hover) #cursor-dot,
body:has(.card:hover) #cursor-dot {
  width: 16px;
  height: 16px;
  background: var(--c-accent2);
}
body:has(a:hover) #cursor-ring,
body:has(.card:hover) #cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--c-accent2);
}

/* ── AURORA MESH BACKGROUND ─────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(1) {
  width: 70vw;
  height: 60vh;
  background: radial-gradient(circle, #b3ffc8 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-duration: 14s;
}
.aurora-blob:nth-child(2) {
  width: 50vw;
  height: 70vh;
  background: radial-gradient(circle, #ff6ef7 0%, transparent 70%);
  top: 20%;
  right: -15%;
  animation-duration: 18s;
  animation-delay: -6s;
}
.aurora-blob:nth-child(3) {
  width: 55vw;
  height: 55vh;
  background: radial-gradient(circle, #5eadff 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-duration: 20s;
  animation-delay: -3s;
}

@keyframes aurora-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(6vw, -4vh) scale(1.08);
  }
  66% {
    transform: translate(-4vw, 5vh) scale(0.95);
  }
  100% {
    transform: translate(3vw, 2vh) scale(1.05);
  }
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── LAYOUT ─────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  gap: 3rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  padding: 0.35rem 0.8rem;
  border-radius: 2rem;
}

/* ── EFFECT 1: GLITCH HERO TEXT ─────────────────── */
.hero {
  position: relative;
}

.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    var(--c-accent1) 0%,
    var(--c-accent3) 50%,
    var(--c-accent2) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: glitch-main 5s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  pointer-events: none;
}

.glitch::before {
  -webkit-text-fill-color: var(--c-accent2);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-before 5s infinite;
  opacity: 0.7;
}

.glitch::after {
  -webkit-text-fill-color: var(--c-accent3);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-after 5s infinite;
  opacity: 0.7;
}

@keyframes glitch-main {
  0%,
  94%,
  100% {
    transform: none;
  }
  95% {
    transform: skewX(-0.5deg);
  }
  96% {
    transform: skewX(0.8deg) translateX(-3px);
  }
  97% {
    transform: none;
  }
  98% {
    transform: translateX(3px);
  }
  99% {
    transform: skewX(-0.3deg);
  }
}

@keyframes glitch-before {
  0%,
  94%,
  100% {
    transform: none;
    opacity: 0;
  }
  95% {
    transform: translateX(-6px);
    opacity: 0.7;
  }
  96% {
    transform: translateX(4px) scaleY(1.02);
    opacity: 0.7;
  }
  97% {
    transform: none;
    opacity: 0;
  }
  98%,
  99% {
    transform: translateX(-3px);
    opacity: 0.5;
  }
}

@keyframes glitch-after {
  0%,
  95%,
  100% {
    transform: none;
    opacity: 0;
  }
  96% {
    transform: translateX(6px);
    opacity: 0.7;
  }
  97% {
    transform: translateX(-4px);
    opacity: 0.7;
  }
  98% {
    transform: none;
    opacity: 0;
  }
  99% {
    transform: translateX(2px);
    opacity: 0.4;
  }
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  color: var(--c-muted);
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  overflow: hidden;
}

.hero-sub span {
  display: inline-block;
  animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub span:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-sub span:nth-child(3) {
  animation-delay: 0.3s;
}
.hero-sub span:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes reveal-up {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── EFFECT 2: GLASS CARDS ──────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.card {
  position: relative;
  border-radius: 20px;
  padding: 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s;
  transform-style: preserve-3d;
  cursor: none;
}

/* Shimmer sweep on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0.6s ease;
  border-radius: inherit;
  pointer-events: none;
}

.card:hover::before {
  background-position: 200% 0;
}

/* Glow border on hover */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--c-accent1),
    var(--c-accent2),
    var(--c-accent3),
    var(--c-accent1)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  animation: border-spin 4s linear infinite;
}

.card:hover::after {
  opacity: 1;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to {
    --angle: 360deg;
  }
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}

.card-desc {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--c-muted);
  font-style: italic;
}

/* ── EFFECT 3: MARQUEE ──────────────────────────── */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1.2rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
  gap: 3rem;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-muted);
  transition: color 0.3s;
}

.marquee-item:hover {
  color: var(--c-accent1);
}

.marquee-sep {
  color: var(--c-accent2);
  margin: 0;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── EFFECT 4: SCRAMBLE TEXT ────────────────────── */
#scramble-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
  cursor: none;
  color: var(--c-text);
  max-width: 700px;
  line-height: 1.2;
}

.scramble-hint {
  font-size: 0.7rem;
  color: var(--c-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ── EFFECT 5: SPOTLIGHT ────────────────────────── */
.spotlight-section {
  position: relative;
  min-height: 60vh;
}

#spotlight-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.spotlight-section:hover #spotlight-canvas {
  opacity: 1;
}

.spotlight-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.big-label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── EFFECT 6: COUNTER ──────────────────────────── */
.stats {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--c-accent1), var(--c-accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.3rem;
  display: block;
}

/* ── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ── DIVIDER ────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c-border) 30%,
    var(--c-border) 70%,
    transparent
  );
  position: relative;
  z-index: 2;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  text-align: center;
  padding: 3rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
  position: relative;
  z-index: 2;
}

a {
  color: var(--c-accent1);
  text-decoration: none;
}
