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

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --border: #27272a;
  --accent: #27272a;
  --yellow: #F7FF9B;
  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --teal: #3d7a8a;
  --teal-light: #5aa3b5;
  --radius: 0.5rem;
}

::selection {
  background: var(--accent);
  color: var(--teal-light);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Particles */
#particles-container {
  position: fixed;
  inset: 0;
  z-index: -100;
}

#particles-canvas {
  width: 100vw;
  height: 100vh;
}

/* Main layout */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 3rem;
}

@media (min-width: 768px) {
  main {
    padding-top: 6rem;
  }
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  section { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  section { padding: 0 2rem; }
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  animation: fadeIn 0.5s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }
.fade-delay-4 { animation-delay: 0.4s; }

/* Scroll-triggered: start hidden, JS adds .is-visible */
.fade-in-scroll {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 50;
  padding: 1rem;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--muted);
  color: var(--foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s ease;
}

.header-btn:hover {
  color: var(--teal-light);
}

.btn-text {
  display: none;
}

@media (min-width: 768px) {
  .header-btn { gap: 0.375rem; }
  .btn-text { display: inline; }
}

/* CTA */
#cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 42rem;
}

.badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shimmer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 9999px;
  background: rgba(39, 39, 42, 0.8);
}

.shimmer-text {
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  background: linear-gradient(
    90deg,
    #a1a1aa 0%,
    var(--teal-light) 50%,
    #a1a1aa 100%
  );
  background-size: 200px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.logo {
  width: 10rem;
  height: 10rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.heading {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .heading { font-size: 3rem; }
}

.heading strong {
  color: var(--teal-light);
}

.subheading {
  max-width: 34rem;
  margin: 0.375rem auto 0;
  text-align: center;
  font-size: 1rem;
  color: #d4d4d8;
}

@media (min-width: 640px) {
  .subheading { font-size: 1.125rem; }
}

/* Form */
#form-section {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#waitlist-form input {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

#waitlist-form input::placeholder {
  color: var(--muted-foreground);
}

#waitlist-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(61, 122, 138, 0.25);
}

/* Investor toggle */
.investor-toggle {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
}

.toggle-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.toggle-label input {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 2.5rem;
  height: 1.375rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: background 0.2s, border-color 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background: var(--muted-foreground);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-label input:checked + .toggle-switch {
  background: var(--teal);
  border-color: var(--teal-light);
}

.toggle-label input:checked + .toggle-switch::after {
  transform: translateX(1.125rem);
  background: var(--foreground);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  background: var(--foreground);
  color: var(--background);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  overflow: hidden;
  position: relative;
}

.submit-btn:hover {
  background: #e4e4e7;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-btn svg {
  transition: transform 0.3s ease;
  opacity: 0;
  width: 0;
}

.submit-btn:hover svg {
  opacity: 1;
  width: 14px;
  transform: translateX(4px);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-info a {
  color: var(--muted-foreground);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.contact-info a:hover {
  color: var(--teal-light);
}

/* LinkedIn icon — blue badge, shared across pages */
.contact-info .linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: #0a66c2;
  border-radius: 0.2rem;
  color: #fff;
  transition: opacity 0.2s;
}

.contact-info .linkedin-icon svg {
  width: 0.7rem;
  height: 0.7rem;
}

.contact-info .linkedin-icon:hover {
  opacity: 0.8;
  color: #fff;
}

/* Investor button */
.investor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #e74c6f, #e04040);
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.investor-btn:hover {
  opacity: 0.85;
}

/* Dividers */
.divider {
  width: 4rem;
  height: 1px;
  background: #3f3f46;
  margin: 2.5rem auto;
}

@media (min-width: 768px) {
  .divider { margin: 3rem auto; }
}

/* Content sections */
#problem-section,
#features-section,
#science-section,
#status-section,
#bottom-cta {
  width: 100%;
  max-width: 42rem;
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  #problem-section,
  #features-section,
  #science-section,
  #status-section,
  #bottom-cta {
    padding: 4rem 0;
  }
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #e4e4e7;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-heading { font-size: 1.875rem; }
}

.section-text {
  font-size: 1rem;
  color: #d4d4d8;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.section-text-lg {
  font-size: 1.125rem;
  font-weight: 500;
  color: #e4e4e7;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .section-text { font-size: 1.125rem; }
  .section-text-lg { font-size: 1.25rem; }
}

.text-highlight {
  color: var(--teal-light);
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.4;
}

/* Callout box */
.callout-box {
  padding: 1.25rem 1.5rem;
  background: rgba(61, 122, 138, 0.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 0.5rem;
}

.callout-text {
  font-size: 0.9375rem;
  color: #d4d4d8;
  line-height: 1.6;
  text-align: left;
}

@media (min-width: 640px) {
  .callout-text { font-size: 1rem; }
}

/* Solution box */
.solution-box {
  padding: 1.5rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.solution-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
}

.solution-text {
  font-size: 1rem;
  color: #d4d4d8;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .solution-text { font-size: 1.125rem; }
}

/* Slider */
.slider {
  width: 100%;
  margin: 1rem 0 2rem;
}

.slider-track {
  position: relative;
  min-height: 20rem;
}

.slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: slideFadeIn 0.4s ease-out;
}

.slide.active {
  display: flex;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-image {
  position: relative;
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #18181b;
  border: 1px solid var(--border);
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-image img + .image-placeholder {
  display: none;
}

.slide-image img[style*="display: none"] + .image-placeholder {
  display: flex;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: #18181b;
}

.slide-content {
  text-align: center;
  max-width: 32rem;
}

.slide-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.slide-text {
  font-size: 1rem;
  color: #a1a1aa;
  line-height: 1.6;
}

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.125rem;
  font-family: inherit;
  background: rgba(39, 39, 42, 0.8);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.slider-btn:hover {
  border-color: var(--teal);
  color: var(--teal-light);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: #3f3f46;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--teal-light);
  transform: scale(1.3);
}

.dot:hover {
  background: var(--teal);
}

/* Workflow */
.workflow-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal-light);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.step {
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  background: rgba(39, 39, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 9999px;
}

.step-arrow {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Science grid */
.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .science-grid { grid-template-columns: repeat(4, 1fr); }
}

.science-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}

.science-card:hover {
  border-color: var(--teal);
}

.science-icon {
  color: var(--teal-light);
  margin-bottom: 0.25rem;
}

.science-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
}

.science-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.4;
}

.science-collab {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: #71717a;
}

/* Status section */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.raise-card {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: left;
}

.raise-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.raise-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.raise-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: #d4d4d8;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .raise-list li { font-size: 1rem; }
}

.raise-icon {
  flex-shrink: 0;
  color: var(--teal-light);
  display: flex;
}

.status-closing {
  font-size: 1.125rem;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.5;
}

.status-closing strong {
  color: var(--teal-light);
}

@media (min-width: 640px) {
  .status-closing { font-size: 1.25rem; }
}

/* Bottom CTA */
.bottom-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(61, 122, 138, 0.1) 0%, rgba(24, 24, 27, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.bottom-workflow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal-light);
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-align: center;
}

@media (min-width: 768px) {
  .bottom-tagline { font-size: 2rem; }
}

.bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--background);
  background: var(--foreground);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}

.bottom-cta-btn:hover {
  background: #e4e4e7;
}

#bottom-cta {
  padding-bottom: 4rem;
}

/* Top nav */
.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--muted);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s;
}

.about-link:hover {
  color: var(--teal-light);
}

/* Toast */
#toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  background: #18181b;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toastIn 0.3s ease-out;
  white-space: nowrap;
}

.toast.toast-error {
  border-color: #7f1d1d;
}

.toast.toast-success {
  border-color: #14532d;
}

.toast.toast-loading {
  border-color: #3f3f46;
}

.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
