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

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

:root {
  --bg: #e0deda;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --accent: #c45d3e;
  --light: #eae7e2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.4s, background-image 0.4s, color 0.4s;
}

canvas#helmetCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
}

canvas#helmetCanvas:active {
  cursor: grabbing;
}

.scroll-container {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.scroll-container section,
.scroll-container footer {
  pointer-events: auto;
}

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

nav .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.5px;
}

nav .nav-links {
  display: flex;
  gap: 32px;
  margin-right: 60px;
}

nav .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* DARK MODE TOGGLE */
.mode-toggle {
  position: fixed;
  top: 20px;
  right: 48px;
  z-index: 200;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s, border-color 0.4s;
}

.mode-toggle:hover {
  background: rgba(255,255,255,0.45);
}

.mode-toggle svg {
  width: 14px;
  height: 14px;
  fill: var(--text);
  transition: fill 0.4s;
}

.mode-toggle .icon-moon { display: block; }
.mode-toggle .icon-sun { display: none; }

body.dark-mode .mode-toggle {
  border-color: rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35);
}

body.dark-mode .mode-toggle:hover {
  background: rgba(0,0,0,0.55);
}

body.dark-mode .mode-toggle .icon-moon { display: none; }
body.dark-mode .mode-toggle .icon-sun { display: block; }

/* DARK MODE OVERRIDES */
body.dark-mode {
  --bg: #141414;
  --text: #e8e8e8;
  --text-secondary: #888888;
  --accent: #e07050;
  --light: #1e1e1e;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

body.dark-mode .specs-grid {
  background: rgba(255,255,255,0.08);
}

body.dark-mode .spec-cell {
  background: var(--bg);
}

body.dark-mode .feature-list li {
  border-bottom-color: rgba(255,255,255,0.08);
}

body.dark-mode .footer {
  border-top-color: rgba(255,255,255,0.08);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  position: relative;
}

.hero-content {
  max-width: 500px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 48px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
}

.scroll-hint .line {
  width: 1px;
  height: 60px;
  background: var(--text-secondary);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* SECTIONS */
.info-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
}

.info-section .text-block {
  max-width: 420px;
}

.info-section.left .text-block {
  margin-right: auto;
}

.info-section.right .text-block {
  margin-left: auto;
}

.info-section .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.info-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.info-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-section .stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.info-section .stat-item .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}

.info-section .stat-item .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* SPECS BAR */
.specs-strip {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  width: 100%;
  max-width: 1000px;
}

.spec-cell {
  background: var(--bg);
  padding: 40px 32px;
  text-align: center;
  transition: background-color 0.4s;
}

.spec-cell .spec-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.spec-cell .spec-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

/* FEATURES LIST */
.features-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
}

.features-section .text-block {
  max-width: 420px;
  margin-left: auto;
}

.feature-list {
  list-style: none;
  margin-top: 32px;
}

.feature-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  transition: border-bottom-color 0.4s;
}

.feature-list li .feat-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* FOOTER */
.footer {
  padding: 60px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(224, 222, 218, 0.8);
  backdrop-filter: blur(8px);
  transition: background-color 0.4s, border-top-color 0.4s;
}

body.dark-mode .footer {
  background: rgba(20, 20, 20, 0.8);
}

.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer .footer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

body.dark-mode .footer .footer-avatar {
  border-color: rgba(255, 255, 255, 0.08);
}

.footer .footer-brand:hover .footer-avatar {
  transform: scale(1.1);
}

.footer .footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
}

.footer .footer-links {
  display: flex;
  gap: 24px;
}

.footer .footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer .footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

/* FADE IN ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* LOADING SCREEN */
#loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
  font-family: 'Space Grotesk', sans-serif;
}

#loader-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

body.dark-mode .loader-spinner {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loader-progress {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav .nav-links { display: none; }
  .mode-toggle { right: 24px; top: 12px; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 48px; }
  .info-section { padding: 60px 24px; }
  .info-section h2 { font-size: 32px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-section { padding: 60px 24px; }
  .footer { padding: 40px 24px; flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero .scroll-hint { display: none; }
}
