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

:root {
  --bg-color: #030305;
  --text-main: #f0f0f0;
  --text-muted: #888890;
  --accent: #00ffcc;
  --accent-glow: rgba(0, 255, 204, 0.4);
  --accent-alt: #4d00ff;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-color);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Hide default cursor on desktop for custom cursor */
@media (pointer: fine) {
  body, a, button { cursor: none !important; }
}

/* Grain Overlay */
.grain {
  position: fixed;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  width: 200%; height: 200vh;
  background: transparent url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  transition: transform 0.1s ease-out, background-color 0.2s;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-glow);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Canvas Background */
#webgl-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  opacity: 0.6;
}

/* Typography & Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 30px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 10vh;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-title span {
  display: block;
  overflow: hidden;
}

.hero-title .text-outline {
  -webkit-text-stroke: 1px var(--text-muted);
  color: transparent;
  transition: color 0.3s;
}

.hero-title .text-outline:hover {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 50px;
}

/* Magnetic Button */
.btn-magnetic-wrap {
  display: inline-block;
}

.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: background 0.3s, border-color 0.3s;
  will-change: transform;
}

/* Marquee / Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--accent);
  color: var(--bg-color);
  padding: 15px 0;
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 0 0 40px var(--accent-glow);
  margin: 100px 0;
  z-index: 10;
  position: relative;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 2rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Interactive Features */
.features {
  padding: 100px 0;
}

.feature-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 100%; left: 0; width: 100%; height: 100%;
  background: var(--text-main);
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.feature-item:hover::before {
  top: 0;
}

.feature-item:hover .f-title, .feature-item:hover .f-desc {
  color: var(--bg-color);
}

.f-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  text-transform: uppercase;
  transition: color 0.4s;
  pointer-events: none;
}

.f-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 400px;
  text-align: right;
  transition: color 0.4s;
  pointer-events: none;
}

/* Footer */
footer {
  padding: 150px 0 50px;
  text-align: center;
}

.footer-huge {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 15rem);
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.1;
  text-transform: uppercase;
  line-height: 0.8;
  margin-bottom: 50px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  nav { flex-direction: column; gap: 20px; }
  .btn-magnetic { width: 120px; height: 120px; }
  .feature-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .f-desc { text-align: left; max-width: 100%; }
}
