:root {
  --bg: #06070b;
  --bg-soft: #10131b;
  --panel: rgba(12, 16, 24, 0.72);
  --text: #eef5ff;
  --muted: #9ea5b7;
  --accent: #59dfff;
  --accent-2: #8b6aff;
  --border: rgba(137, 214, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 10% 0%, #131a2a 0%, var(--bg) 35%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  z-index: 100;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.bg-orb {
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  animation: float 18s ease-in-out infinite;
}

.orb-1 { background: rgba(56, 172, 255, 0.14); top: -12vw; left: -8vw; }
.orb-2 { background: rgba(120, 75, 255, 0.15); bottom: -15vw; right: -10vw; animation-delay: -8s; }

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,223,255,0.18), rgba(89,223,255,0));
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2rem));
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}

.brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}

.brand img { width: 34px; height: 34px; }

nav {
  display: flex;
  gap: 1.2rem;
}

nav a, .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}

nav a:hover, .footer-links a:hover { color: var(--text); }

.nav-cta {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  padding: 7rem clamp(1rem, 4vw, 4rem) 4rem;
  gap: 2rem;
}

#particleCanvas, .hero-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  background: radial-gradient(circle at 65% 35%, rgba(103, 223, 255, 0.16), transparent 40%),
    radial-gradient(circle at 78% 70%, rgba(146, 91, 255, 0.18), transparent 40%);
  mix-blend-mode: screen;
  animation: pulse 8s ease-in-out infinite;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.74rem;
}

h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: 0.03em; }
h2 { font-size: clamp(1.2rem, 2.5vw, 2rem); color: #cfd8ff; margin-top: 0.3rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 1rem; }

.hero-content p { color: #c9d2e9; line-height: 1.7; max-width: 52ch; }

.primary-btn, .secondary-btn {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  border-radius: 999px;
  transition: all .25s ease;
}

.primary-btn {
  color: #03111b;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(120deg, var(--accent), #98ecff 60%, #dcfdff);
  box-shadow: 0 0 40px rgba(89, 223, 255, 0.35);
}
.primary-btn:hover { transform: translateY(-2px) scale(1.01); }

.hero-logo-stack {
  justify-self: center;
  position: relative;
  width: min(500px, 85vw);
}
.hero-logo-stack img {
  width: 100%;
  position: absolute;
  inset: 0;
}
.logo-regular { animation: logoPulse 9s ease-in-out infinite; }
.logo-melt {
  opacity: 0;
  transform: scale(0.94) translateY(2%);
  animation: meltReveal 10s ease-in-out infinite;
}

.section {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-intro p { color: var(--muted); max-width: 72ch; line-height: 1.7; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.project-card {
  border: 1px solid rgba(118, 168, 255, 0.2);
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.28), 0 8px 35px rgba(0,0,0,0.5);
  transition: transform .4s ease, border-color .4s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(89,223,255,0.6);
}

.project-visual {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(89,223,255,0.28), rgba(128,55,220,0.15), rgba(8,9,20,0.2));
  animation: shimmer 8s linear infinite;
}
.eyi-visual { background: radial-gradient(circle at 20% 30%, #3a7670 0%, #0d1e21 45%, #080a12 100%); }
.changos-visual { background: radial-gradient(circle at 80% 20%, #7a2ec4 0%, #20122e 45%, #090a14 100%); }

.project-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-content { padding: 1.2rem; }
.project-content p { color: var(--muted); line-height: 1.7; min-height: 92px; }
.secondary-btn {
  color: var(--accent);
  border: 1px solid rgba(89,223,255,0.35);
  padding: 0.5rem 0.9rem;
}
.secondary-btn:hover { background: rgba(89,223,255,0.12); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.split p { color: var(--muted); line-height: 1.9; }

.pillars {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.pillar {
  background: rgba(13, 18, 29, 0.74);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform .3s ease;
}
.pillar:hover { transform: translateY(-4px); }
.pillar p { color: var(--muted); line-height: 1.6; }

.final-cta {
  text-align: center;
  border: 1px solid rgba(89,223,255,0.22);
  border-radius: 1.3rem;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, rgba(19,30,49,0.9), rgba(20,13,35,0.82));
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(89,223,255,0.16), rgba(139,106,255,0.09), transparent 60%);
  animation: spin 16s linear infinite;
}
.final-cta > * { position: relative; }
.final-cta p { color: var(--muted); }

.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; gap: 0.8rem; align-items: center; }
.footer-brand img { width: 44px; }
.footer-brand p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(30px);} }
@keyframes pulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes shimmer { 0% { transform: translateX(-20%);} 50% { transform: translateX(10%);} 100% { transform: translateX(-20%);} }
@keyframes spin { to { transform: rotate(360deg);} }
@keyframes logoPulse {
  0%, 35%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 0 rgba(89,223,255,0)); }
  45% { opacity: 0.35; transform: scale(0.97); }
  55% { filter: drop-shadow(0 0 24px rgba(89,223,255,0.55)); }
}
@keyframes meltReveal {
  0%, 38%, 100% { opacity: 0; transform: scale(0.92) translateY(-4%); }
  48%, 66% { opacity: 1; transform: scale(1.01) translateY(1%); }
  72% { opacity: 0; transform: scale(1.05) translateY(6%); }
}

@media (max-width: 960px) {
  .site-header nav, .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-logo-stack { height: min(420px, 60vw); }
  .project-grid, .split { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
