@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #06080f;
  --bg-secondary: #0c1018;
  --bg-card: rgba(14, 20, 35, 0.7);
  --bg-card-hover: rgba(20, 28, 50, 0.85);
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --accent-violet: #7c4dff;
  --accent-violet-dim: rgba(124, 77, 255, 0.12);
  --accent-green: #00e676;
  --text-primary: #e8eaf6;
  --text-secondary: #8892b0;
  --text-muted: #4a5568;
  --border-color: rgba(100, 120, 180, 0.12);
  --border-glow: rgba(0, 229, 255, 0.25);
  --gradient-hero: linear-gradient(135deg, #06080f 0%, #0d1525 40%, #0a1628 70%, #06080f 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  --gradient-card: linear-gradient(160deg, rgba(0,229,255,0.06) 0%, rgba(124,77,255,0.04) 100%);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --shadow-glow: 0 0 40px rgba(0,229,255,0.08);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── GRID NOISE BACKGROUND ─── */
.bg-noise {
  position: fixed; inset: 0; z-index: -2;
  background: var(--gradient-hero);
}
.bg-noise::after {
  content: ''; position: absolute; inset: 0;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.5;
}

/* ─── GRID PATTERN ─── */
.grid-pattern {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* ─── GLOW ORBS ─── */
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; top: -10%; left: -8%; background: rgba(0,229,255,0.07); }
.orb-2 { width: 400px; height: 400px; bottom: 10%; right: -5%; background: rgba(124,77,255,0.06); animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: rgba(0,230,118,0.04); animation-delay: -8s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.12); }
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 1.5rem;
  backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(6, 8, 15, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text-primary);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800; color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.25s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-cyan); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-cyan); border-radius: 1px;
}

/* Mobile Menu */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-primary); padding: 0.5rem;
}
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(6,8,15,0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem; flex-direction: column; gap: 0.5rem;
}
.mobile-menu a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 1rem; padding: 0.75rem 0; font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--accent-cyan); }
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-md);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border: none; position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0,229,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.35);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
}
.btn-secondary:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--accent-cyan); }

/* ─── SECTION LAYOUT ─── */
.section {
  padding: 6rem 1.5rem;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 4rem;
}
.section-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-cyan); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.section-tag::before {
  content: ''; width: 12px; height: 1px;
  background: var(--accent-cyan);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 1.25rem;
}
.section-title .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7;
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-dim);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan); font-size: 1.25rem;
}
.card-title {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.card-desc {
  color: var(--text-secondary); font-size: 0.925rem;
  line-height: 1.65;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  background: rgba(6,8,15,0.6);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 1.5rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted); font-size: 0.85rem;
  text-decoration: none; transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent-cyan); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring {
  position: absolute; inset: -6px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

/* ─── UTILITIES ─── */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mono { font-family: var(--font-mono); }
.border-glow { border-color: var(--border-glow); }
.divider {
  height: 1px; background: var(--border-color);
  margin: 3rem 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
