/* ========================================
   Deadpoint — Early Access Landing Page
   ======================================== */

:root {
  --bg-primary: #080D19;
  --bg-card: #0E1420;
  --text-primary: #E8E8ED;
  --text-secondary: #8A8F98;
  --text-muted: #5A5F6B;
  --accent: #00BFA5;
  --accent-hover: #009E88;
  --accent-glow: rgba(0, 191, 165, 0.08);
  --border: rgba(255, 255, 255, 0.05);
  --error: #F87171;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: 52px; }
h2 { font-size: 34px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, 0.8);
  border-bottom-color: var(--border);
}

.nav-wordmark {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 6px;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-cta {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: 160px 24px 96px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-sub {
  margin-top: 24px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ========================================
   Lifecycle Visual
   ======================================== */

.lifecycle {
  max-width: 960px;
  margin: 48px auto 0;
  text-align: center;
}

.lifecycle-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.lifecycle-step {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 4px;
}

.lifecycle-step.accent {
  color: var(--accent);
}

.lifecycle-arrow {
  color: var(--border);
  font-size: 13px;
  padding: 0 2px;
  flex-shrink: 0;
}

.lifecycle-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Value Proposition Cards
   ======================================== */

.value-section {
  padding: 96px 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 32px;
}

.card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Form Section
   ======================================== */

.form-section {
  padding: 96px 24px;
  text-align: center;
}

.form-section h2 {
  margin-bottom: 16px;
}

.form-section-sub {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
}

.form-container {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-input,
.field-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:focus,
.field-select:focus {
  border-color: var(--accent);
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
}

.field-error.visible {
  display: block;
}

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.privacy-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.success-message {
  text-align: center;
  font-size: 20px;
  color: var(--accent);
  padding: 40px 0;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Fade-in Animation
   ======================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 1023px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }

  .value-section { padding: 80px 24px; }
  .form-section { padding: 80px 24px; }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

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

  .hero { padding: 120px 16px 64px; }
  .value-section { padding: 64px 16px; }
  .form-section { padding: 64px 16px; }

  .lifecycle { display: none; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card:last-child {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
