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

:root {
  --bg: #0A0A0B;
  --bg-raised: #0A0A0B;
  --bg-card: #131316;
  --border: #2A2A30;
  --text: #EDEDEF;
  --text-muted: #8E8E96;
  --accent: #22C55E;
  --accent-glow: rgba(34, 197, 94, 0.12);
  --accent-hover: #1eab52;
  --white: #EDEDEF;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #0A0A0B;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.2), 0 0 80px rgba(34, 197, 94, 0.1);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-right: auto;
  margin-left: 48px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.hero-sub {
  font-size: 1.1rem;
  margin: 24px 0 40px;
  max-width: 480px;
}

/* Hero Flow Animation */
.flow-animation {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.flow-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.flow-chaos {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.doc {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: float 6s ease-in-out infinite;
}

.doc-2 { animation-delay: -2s; }
.doc-3 { animation-delay: -4s; }

.doc-line {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
}

.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.flow-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
}

.flow-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.flow-divider svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.flow-structured {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-structured .flow-label {
  color: var(--accent);
}

.data-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  animation: fadeRow 0.6s ease forwards;
  opacity: 0;
}

.data-row:nth-child(2) { animation-delay: 0.5s; }
.data-row:nth-child(3) { animation-delay: 0.8s; }
.data-row:nth-child(4) { animation-delay: 1.1s; }
.data-row:nth-child(5) { animation-delay: 1.4s; }

@keyframes fadeRow {
  to { opacity: 1; }
}

.data-label {
  color: var(--text-muted);
}

.data-val {
  color: var(--accent);
  font-weight: 500;
  text-align: right;
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

/* ===== Cards Grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 30px var(--accent-glow);
}

.card p {
  font-size: 0.925rem;
  flex: 1;
}

/* ===== Problem Section ===== */
.problem {
}

/* ===== Solution / Pipeline ===== */
.solution {
  background: var(--bg-raised);
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pipeline-step p {
  font-size: 0.925rem;
  flex: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: var(--text-muted);
  padding: 0 4px;
}

.pipeline-connector svg {
  width: 100%;
}

/* ===== Use Cases ===== */
.use-cases {
}

/* ===== Stats ===== */
.stats {
  background: var(--bg-raised);
}

.stats-grid {
  text-align: center;
}

.stat {
  padding: 32px 24px;
}

.stat-number {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
  padding: 140px 0;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 20px;
}

.cta-inner > p {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.cta-contact {
  margin-top: 24px;
}

.cta-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Founders Section ===== */
.founders {
  padding: 80px 0;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

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

.founder-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  transition: color var(--transition);
}

.founder-email:hover {
  color: var(--accent);
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 64px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  margin-bottom: 28px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.925rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a4a52;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

/* ===== Fade-in Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Mobile Overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding: 140px 0 80px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .pipeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .pipeline-connector {
    padding: 0;
    transform: rotate(90deg);
    width: 32px;
    height: 32px;
    align-self: center;
  }

  .section {
    padding: 80px 0;
  }

  .cta {
    padding: 100px 0;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    margin: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 105;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav .btn-sm {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero {
    padding: 120px 0 60px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .cta {
    padding: 80px 0;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

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

  .stat-number {
    font-size: 3rem;
  }

  .flow-chaos {
    flex-direction: column;
  }
}
