:root {
  --bg: #0b0b0d;
  --bg-2: #131317;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f3ef;
  --muted: #9a9aa3;
  --lime: #c6ff3d;
  --orange: #ff6a3d;
  --violet: #7a5cff;
  --cyan: #3dd6ff;
  --radius: 22px;
  --display: "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

main { overflow-x: clip; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }

/* Film grain for a premium, tactile feel */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.6);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logo-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--lime), var(--orange), var(--violet), var(--cyan), var(--lime));
  animation: spin 6s linear infinite;
}

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--lime);
  color: #0b0b0d;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px var(--lime); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px clamp(16px, 6vw, 96px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: clip;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime);
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}

.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: top;
}
.rotator-word {
  grid-area: 1 / 1;
  background: linear-gradient(90deg, var(--lime), var(--orange) 50%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(40%) rotateX(-60deg);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rotator-word.is-active { opacity: 1; transform: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-40%) rotateX(60deg); }

.hero-sub {
  max-width: 560px;
  margin: 32px 0 36px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* Glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}
.orb-a { width: 520px; height: 520px; background: var(--violet); top: -120px; right: -120px; animation: float 14s ease-in-out infinite; }
.orb-b { width: 380px; height: 380px; background: var(--orange); bottom: 0; right: 22%; opacity: 0.3; animation: float 18s ease-in-out infinite reverse; }
.orb-c { width: 600px; height: 600px; background: var(--lime); opacity: 0.16; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--lime);
  color: #0b0b0d;
  transform: rotate(-2deg) scale(1.04);
  margin: 20px 0 40px;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-track i { font-style: normal; }

/* Sections */
.section { padding: 120px clamp(16px, 6vw, 96px); }
.section-head { margin-bottom: 56px; }
.section-head h2, .cta h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; line-height: 1; }

/* Projects */
.projects { display: grid; gap: 14px; }

.project {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.3s;
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project:hover { border-color: var(--accent); transform: translateY(-3px); }
.project:hover::before { opacity: 1; }

.project-body { min-width: 0; }
.project-num { font-family: var(--display); font-size: 1.1rem; color: var(--muted); }
.project h3 { font-size: clamp(1.5rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; margin: 10px 0 8px; transition: color 0.3s; }
.project:hover h3 { color: var(--accent); }
.project p { margin: 0; max-width: 620px; color: var(--muted); }

.project-arrow {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.5rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.project:hover .project-arrow { background: var(--accent); color: #0b0b0d; transform: rotate(45deg); }


.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.tag-live { color: var(--lime); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillar {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(198, 255, 61, 0.1);
  color: var(--lime);
  font-size: 1.4rem;
}
.pillar h3 { font-size: 1.6rem; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--muted); }

/* CTA */
.cta {
  position: relative;
  margin: 40px clamp(16px, 4vw, 48px) 80px;
  padding: clamp(72px, 10vw, 140px) 24px;
  border: 1px solid var(--line);
  border-radius: 36px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.grad {
  background: linear-gradient(90deg, var(--lime), var(--orange), var(--violet), var(--lime));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes float { 50% { transform: translate(-40px, 40px) scale(1.08); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(198, 255, 61, 0); }
}

/* Responsive */
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr auto; }
  .project-num { grid-column: 1 / -1; }
  .project-arrow { width: 48px; height: 48px; font-size: 1.2rem; }
}

@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 130px; }
}

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