/* ============================================
   Solid Robotics
   ============================================ */

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

:root {
  --bg: #08090C;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 191, 255, 0.25);
  --text: #E8E6E3;
  --text-secondary: rgba(232, 230, 227, 0.55);
  --accent: #00BFFF;
  --accent-dim: rgba(0, 191, 255, 0.12);
  --accent-glow: rgba(0, 191, 255, 0.08);
  --white: #FFFFFF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Particles ---- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Page ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero.visible {
  opacity: 1;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.hex-frame {
  animation: hexPulse 5s ease-in-out infinite;
}

@keyframes hexPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.eye {
  transition: transform 0.12s ease-out;
}

.nav-wordmark {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

/* ---- Hero Content ---- */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 120px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.headline {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 48px;
  max-width: 800px;
}

.headline-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #60DFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Actions ---- */
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.1px;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-dim);
}

.btn-primary svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.btn-primary:hover svg {
  opacity: 1;
}

/* ---- Signup ---- */
.signup-form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: var(--surface);
}

.signup-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.signup-form input {
  border: none;
  background: transparent;
  padding: 14px 20px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  width: 220px;
}

.signup-form input::placeholder {
  color: var(--text-secondary);
}

.signup-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.signup-submit:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Thank You ---- */
.thankyou {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 10;
}

.thankyou.visible {
  opacity: 1;
  pointer-events: auto;
}

.thankyou h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.thankyou-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-secondary);
  font-weight: 500;
}

.thankyou-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 32px;
  border-radius: 1px;
  box-shadow: 0 0 20px var(--accent-dim);
}

/* ---- Footer ---- */
.site-footer {
  padding: 0 0 36px;
  opacity: 0;
  transition: opacity 0.8s ease 1s;
}

.site-footer.visible {
  opacity: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

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

.footer-links span {
  color: rgba(255, 255, 255, 0.15);
  font-size: 8px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: 0 24px;
  }

  .nav {
    padding: 24px 0;
  }

  .nav-wordmark {
    font-size: 16px;
  }

  .hero-content {
    padding: 0 0 80px;
  }

  .headline {
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .signup-form {
    width: 100%;
  }

  .signup-form input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 480px) {
  .nav-wordmark {
    font-size: 15px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .headline {
    letter-spacing: -0.8px;
  }
}
