/* Knowledge Gatherer — Dark + Warm Cream, NFINITE-inspired */

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

:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --cream: #F5F1E8;
  --cream-dim: rgba(245, 241, 232, 0.7);
  --cream-muted: rgba(245, 241, 232, 0.45);
  --cream-faint: rgba(245, 241, 232, 0.12);
  --cream-hairline: rgba(245, 241, 232, 0.08);
  --error: #ff4444;
  --error-bg: rgba(255, 68, 68, 0.08);
  --success: #44cc77;
  --success-bg: rgba(68, 204, 119, 0.08);
  --radius: 6px;
  --radius-lg: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--cream);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cream);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover {
  opacity: 0.7;
  text-decoration: none;
}

::selection {
  background: var(--cream);
  color: var(--bg);
}

/* Layout */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--cream-hairline);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo:hover {
  text-decoration: none;
  opacity: 1;
}
.logo-text {
  font-weight: 800;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    var(--cream) 44%,
    rgba(245, 241, 232, 0.3) 50%,
    var(--cream) 56%,
    var(--cream) 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 20% {
    background-position: 100% 0;
  }
  80%, 100% {
    background-position: 0% 0;
  }
}
.logo .badge-beta {
  font-size: 9px;
  padding: 2px 6px;
  letter-spacing: 1.5px;
  border-width: 1px;
}
.tagline {
  font-size: 13px;
  color: var(--cream-muted);
  font-weight: 400;
  letter-spacing: 0.2px;
}
/* tagline hidden on mobile — handled in responsive block below */
nav a.btn-nav {
  font-size: 11px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--bg);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}
nav a.btn-nav:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 0 64px;
}
.hero h1 {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(
    135deg,
    var(--cream) 0%,
    rgba(245, 241, 232, 0.6) 50%,
    var(--cream) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-glow 6s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.hero p {
  font-size: 16px;
  color: var(--cream-dim);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font);
}
.btn-primary {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
}
.btn-primary:hover {
  opacity: 0.85;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream-faint);
}
.btn-secondary:hover {
  border-color: var(--cream-muted);
  text-decoration: none;
}
.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn-danger:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--cream-hairline);
}
.section h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-align: center;
  margin-bottom: 44px;
  color: var(--cream-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
/* mobile steps — handled in responsive block below */
.step {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--cream-hairline);
}
.step:last-child {
  border-right: none;
}
.step-number {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--cream-muted);
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-family: var(--font);
}
.step-number::before {
  content: '0';
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  color: var(--cream);
}
.step p {
  font-size: 13px;
  color: var(--cream-muted);
  line-height: 1.65;
}

/* Features */
.features {
  list-style: none;
  max-width: 540px;
  margin: 0 auto;
}
.features li {
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-hairline);
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.7;
}
.features li:last-child {
  border-bottom: none;
}
.features li strong {
  color: var(--cream);
  font-weight: 600;
}

/* Beta badge + spots */
.badge-beta {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cream-muted);
  background: transparent;
  border: 1px solid var(--cream-faint);
  border-radius: 3px;
  vertical-align: middle;
}
.spots-counter {
  font-size: 14px;
  color: var(--cream-muted);
  margin-bottom: 24px;
}
.spots-counter strong {
  color: var(--cream);
  font-size: 18px;
  font-weight: 700;
}
.spots-full {
  color: var(--error);
  font-weight: 600;
}
.free-callout {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  padding: 5px 14px;
  border: 1px solid rgba(68, 204, 119, 0.25);
  border-radius: 3px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.waitlist-confirmed {
  padding: 24px 0;
}
.waitlist-confirmed h2 {
  color: var(--success);
  font-size: 22px;
  margin-bottom: 8px;
}
.verified-email {
  background: var(--success-bg);
  border: 1px solid rgba(68, 204, 119, 0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verified-label {
  font-weight: 600;
  color: var(--success);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--cream-hairline);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin: 44px 0;
}
.form-card h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--cream);
}
.form-card > p {
  color: var(--cream-muted);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.7;
}
.field {
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cream-dim);
}
.field label .optional {
  font-weight: 400;
  color: var(--cream-muted);
  text-transform: none;
  letter-spacing: 0;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--cream-faint);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  transition: border-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cream-muted);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--cream-muted);
}
.field .hint {
  font-size: 11px;
  color: var(--cream-muted);
  margin-top: 6px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5F1E8' fill-opacity='0.45' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.errors {
  background: var(--error-bg);
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--error);
}
.errors ul {
  margin: 0;
  padding-left: 18px;
}

.form-submit {
  margin-top: 32px;
}
.form-submit .btn {
  width: 100%;
}

/* Processing */
.processing-card {
  background: var(--surface);
  border: 1px solid var(--cream-hairline);
  border-radius: var(--radius-lg);
  padding: 60px 44px;
  margin: 80px 0;
  text-align: center;
}
.processing-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.processing-card p {
  color: var(--cream-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--cream-hairline);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 32px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-text {
  font-size: 12px;
  color: var(--cream-muted);
}

/* Success */
.success-card {
  background: var(--surface);
  border: 1px solid rgba(68, 204, 119, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 44px;
  margin: 80px 0;
  text-align: center;
}
.success-card h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.success-card p {
  font-size: 15px;
  color: var(--cream-dim);
  margin-bottom: 12px;
}
.success-card .detail {
  font-size: 13px;
  color: var(--cream-muted);
}

/* Consent checkbox */
.checkbox-field {
  margin-bottom: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cream-dim);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-label a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-label a:hover {
  opacity: 0.7;
}

/* Privacy note */
.privacy-note {
  font-size: 12px;
  color: var(--cream-muted);
  margin-top: 24px;
  line-height: 1.65;
  text-align: center;
}
.privacy-note a {
  color: var(--cream-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-note a:hover {
  color: var(--cream-dim);
}

/* Privacy policy page */
.privacy-page h1 {
  margin-bottom: 4px;
}
.privacy-page > .detail {
  font-size: 12px;
  color: var(--cream-muted);
  margin-bottom: 36px;
}
.privacy-section {
  margin-bottom: 32px;
}
.privacy-section h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cream-dim);
  margin-bottom: 12px;
}
.privacy-section p {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 10px;
}
.privacy-section ul {
  list-style: none;
  padding: 0;
}
.privacy-section li {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.75;
  padding: 4px 0 4px 16px;
  position: relative;
}
.privacy-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream-muted);
}
.privacy-section li strong {
  color: var(--cream);
}
.privacy-section a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-section a:hover {
  opacity: 0.7;
}

/* Footer */
footer {
  border-top: 1px solid var(--cream-hairline);
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: var(--cream-muted);
  margin-top: 80px;
  line-height: 1.7;
}

/* ===================== */
/* Responsive — Mobile   */
/* ===================== */

@media (max-width: 640px) {
  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Nav */
  nav {
    padding: 14px 0;
  }
  .logo {
    font-size: 18px;
    gap: 8px;
  }
  .logo .badge-beta {
    font-size: 8px;
    padding: 1px 5px;
  }
  .tagline {
    display: none;
  }
  nav a.btn-nav {
    font-size: 10px;
    padding: 7px 14px;
  }

  /* Hero */
  .hero {
    padding: 64px 0 40px;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.65;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 11px;
    width: 100%;
    text-align: center;
  }

  /* Spots */
  .spots-counter strong {
    font-size: 16px;
  }
  .free-callout {
    font-size: 10px;
    padding: 4px 12px;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }
  .section h2 {
    margin-bottom: 28px;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    padding: 28px 20px;
    border-right: none !important;
    border-bottom: 1px solid var(--cream-hairline);
  }
  .step:last-child {
    border-bottom: none;
  }

  /* Features */
  .features {
    max-width: 100%;
  }
  .features li {
    font-size: 13px;
    padding: 14px 0;
  }

  /* Forms */
  .form-card {
    padding: 24px 20px;
    margin: 24px 0;
    border-radius: var(--radius);
  }
  .form-card h1 {
    font-size: 22px;
  }
  .form-card > p {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .field {
    margin-bottom: 20px;
  }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="file"],
  .field select,
  .field textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 11px 12px;
  }

  /* Processing + Success */
  .processing-card,
  .success-card {
    padding: 40px 24px;
    margin: 40px 0;
    border-radius: var(--radius);
  }
  .processing-card h1 {
    font-size: 20px;
  }
  .success-card h1 {
    font-size: 24px;
  }

  /* Footer */
  footer {
    margin-top: 48px;
    padding: 24px 0;
    font-size: 11px;
  }
}
