/* ─── CSS VARIABLES ───────────────────────────────────────────── */
:root {
  --cyan: #00e5ff;
  --cyan-dim: #00b8cc;
  --cyan-glow: rgba(0,229,255,0.18);
  --cyan-glow-strong: rgba(0,229,255,0.32);

  --bg: #0d0d0d;
  --bg2: #111111;
  --bg3: #161616;
  --surface: #1a1a1a;
  --surface2: #222222;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f0;
  --text-muted: rgba(240,240,240,0.5);
  --text-dim: rgba(240,240,240,0.75);
  --nav-bg: rgba(13,13,13,0.75);
  --card-bg: #161616;
  --card-border: rgba(255,255,255,0.07);
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --stat-bg: #1c1c1c;
  --stat-border: rgba(255,255,255,0.1);
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg2: #ececec;
  --bg3: #e8e8e8;
  --surface: #ffffff;
  --surface2: #f0f0f0;
  --border: rgba(0,0,0,0.07);
  --text: #111111;
  --text-muted: rgba(10,10,10,0.45);
  --text-dim: rgba(10,10,10,0.7);
  --nav-bg: rgba(245,245,245,0.8);
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.07);
  --shadow: 0 8px 40px rgba(0,0,0,0.1);
  --stat-bg: #ffffff;
  --stat-border: rgba(0,0,0,0.09);
}

/* ─── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 99px; }

/* ─── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-brand span { color: var(--cyan); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px; background: var(--cyan);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); }

/* add to server */
.btn-add {
  padding: 9px 18px;
  background: var(--cyan);
  color: #000;
  font-weight: 700; font-size: 0.8rem;
  border-radius: 999px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-add:hover {
  background: #1af0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,229,255,0.4);
}

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 20px 24px; flex-direction: column; gap: 18px; z-index: 998;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu .btn-add { align-self: flex-start; }

/* ─── DECORATIVE ELEMENTS ─────────────────────────────────────── */
.deco-lines {
  position: absolute; pointer-events: none;
}
.deco-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
section {
  padding: 100px 24px;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero-wrap {
  max-width: 100%;
  padding-top: 140px; padding-bottom: 100px;
  overflow: hidden; position: relative;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; z-index: 2;
}

/* glow orb */
.hero-orb {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.12) 0%, transparent 70%);
  top: 50%; right: 10%;
  transform: translateY(-50%);
  pointer-events: none;
  filter: blur(40px);
  animation: pulse-orb 4s ease-in-out infinite;
}
@keyframes pulse-orb {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
}

/* hero deco horizontal lines */
.hero-deco {
  position: absolute; right: 42%; top: 40%;
  pointer-events: none; z-index: 1;
}
.hero-deco-line {
  width: 80px; height: 1px;
  background: var(--border);
  margin-bottom: 8px;
}
.hero-deco-line:nth-child(2) { width: 50px; }
.hero-deco-line:nth-child(3) { width: 65px; }

/* wavy SVG */
.hero-wave {
  position: absolute; left: 40%; top: 52%;
  pointer-events: none; z-index: 1;
  opacity: 0.35;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeInUp 0.6s ease both;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.hero-headline em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), #00aaff);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.btn-primary {
  padding: 13px 26px;
  background: var(--cyan);
  color: #000;
  font-weight: 700; font-size: 0.9rem;
  border-radius: 12px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #1af0ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,229,255,0.45);
}
.btn-ghost {
  padding: 13px 26px;
  background: transparent;
  color: var(--text);
  font-weight: 600; font-size: 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* stat cards */
.hero-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--stat-bg);
  border: 1px solid var(--stat-border);
  border-radius: 14px;
  padding: 12px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-2px); }
.stat-icon {
  width: 34px; height: 34px;
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1rem; flex-shrink: 0;
}
.stat-val { font-size: 1rem; font-weight: 800; letter-spacing: -0.3px; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-top: 1px; }

/* hero visual */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: fadeInRight 0.8s 0.2s ease both;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-logo-big {
  width: 220px; height: 220px;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(0,170,255,0.04));
  border: 1.5px solid rgba(0,229,255,0.2);
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 60px rgba(0,229,255,0.12), inset 0 0 40px rgba(0,229,255,0.04);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

/* corner accents */
.hero-logo-big::before, .hero-logo-big::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--cyan);
  border-style: solid;
}
.hero-logo-big::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 2px 0 0 0;
}
.hero-logo-big::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 2px 0;
}

/* floating cards around logo */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.75rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.float-card .fc-dot { width:8px;height:8px;border-radius:50%;background:var(--cyan); flex-shrink:0; }
.float-card.fc1 { top: -18px; right: -30px; animation: float 5s 1s ease-in-out infinite; }
.float-card.fc2 { bottom: 10px; left: -40px; animation: float 5s 2s ease-in-out infinite; }
.float-card.fc3 { top: 60px; left: -50px; animation: float 5s 0.5s ease-in-out infinite; }
.float-card .fc-cyan { color: var(--cyan); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION HEADER ──────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.7rem; font-weight: 700;
  color: var(--cyan); letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 500px; line-height: 1.65;
  margin-bottom: 56px;
}

/* ─── DIVIDER LINE ────────────────────────────────────────────── */
.divider {
  max-width: 1160px; margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── FEATURES ────────────────────────────────────────────────── */
#features { padding-top: 100px; padding-bottom: 100px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 12px 40px rgba(0,229,255,0.08);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: background 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
  background: rgba(0,229,255,0.15);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}
.feature-name {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.65;
}
.feature-arrow {
  position: absolute; top: 28px; right: 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.75rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.feature-card:hover .feature-arrow {
  background: var(--cyan); color: #000;
  transform: rotate(45deg);
}

/* ─── SUPPORT / INVITE ────────────────────────────────────────── */
#support { padding-top: 100px; padding-bottom: 100px; }
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.support-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,229,255,0.07);
}
.support-card.accent {
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(0,170,255,0.04));
  border-color: rgba(0,229,255,0.2);
}
.support-card-icon {
  font-size: 2.4rem; margin-bottom: 18px;
  display: block;
}
.support-card-title {
  font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.support-card-desc {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 28px;
}
.btn-support {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700; font-size: 0.875rem;
  cursor: pointer; transition: all 0.2s;
  border: none;
}
.btn-support.ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-support.ghost:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: var(--cyan-glow);
}
.btn-support.filled {
  background: var(--cyan); color: #000;
}
.btn-support.filled:hover {
  background: #1af0ff;
  box-shadow: 0 6px 28px rgba(0,229,255,0.45);
  transform: translateY(-2px);
}

/* bg decoration for support cards */
.support-card::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  bottom: -60px; right: -60px;
  pointer-events: none;
}

/* ─── LEGAL ───────────────────────────────────────────────────── */
#legal { padding-top: 100px; padding-bottom: 100px; }
.legal-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: start;
}
.legal-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px;
}
.legal-block-title {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.4px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.legal-block-title-badge {
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 6px;
  padding: 2px 8px; font-size: 0.65rem;
  font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.legal-block p {
  font-size: 0.855rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 14px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block p strong { color: var(--text-dim); font-weight: 600; }
.legal-block p a { color: var(--cyan); transition: opacity 0.2s; }
.legal-block p a:hover { opacity: 0.75; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem;
}
.footer-brand span { color: var(--cyan); }
.footer-copy {
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  font-size: 0.8rem; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

/* ─── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-orb { display: none; }
}

@media (max-width: 600px) {
  section { padding: 70px 18px; }
  .hero-wrap { padding-top: 100px; padding-bottom: 70px; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { flex-direction: column; }
  .stat-card { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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