/* BentOS Landing — bentos.life */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-card: #141416;
  --border: #27272a;
  --border-subtle: #1e1e21;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #7c3aed;
  --accent-dim: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  --max-width: 1080px;
  --section-gap: 8rem;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* -- Layout -- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-gap) 0;
}

/* -- Typography -- */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 640px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #a78bfa;
}

code, .mono {
  font-family: var(--font-mono);
}

/* -- Navigation -- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--text-tertiary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* -- Buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* -- Hero -- */

.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  margin-bottom: 1.25rem;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* -- Code Block -- */

.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 2rem 0;
  font-size: 0.875rem;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.code-dot:first-child { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.code-body {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

.code-body pre {
  font-family: var(--font-mono);
  line-height: 1.7;
  color: var(--text-secondary);
}

.code-body .prompt {
  color: var(--green);
  user-select: none;
}

.code-body .path {
  color: #60a5fa;
}

.code-body .comment {
  color: var(--text-tertiary);
}

.code-body .string {
  color: #fbbf24;
}

.code-body .device {
  color: #a78bfa;
}

/* -- Feature grid -- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -- Problem section -- */

.problem-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 1rem;
}

.problem-text em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

/* -- Divider -- */

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* -- Cannot vs Will Not -- */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.security-card {
  padding: 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.security-card.theirs {
  background: var(--red-dim);
  border-color: rgba(239, 68, 68, 0.2);
}

.security-card.ours {
  background: var(--green-dim);
  border-color: rgba(34, 197, 94, 0.2);
}

.security-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.security-card.theirs h3 {
  color: var(--red);
}

.security-card.ours h3 {
  color: var(--green);
}

.security-card .stat {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.security-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.security-card p {
  font-size: 0.9375rem;
}

/* -- Stack table -- */

.stack-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.stack-table th,
.stack-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.stack-table th {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stack-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.stack-table td:last-child {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.status-shipped {
  color: var(--green);
}

.status-dev {
  color: #fbbf24;
}

.stack-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.stack-note strong {
  color: var(--text-primary);
}

/* -- Species section -- */

.species-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.species-stat {
  font-family: var(--font-mono);
}

.species-stat .val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.species-stat .label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.species-list {
  list-style: none;
  margin: 1.5rem 0;
}

.species-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.species-list li::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}

/* -- Waitlist / Email capture -- */

.waitlist-section {
  text-align: center;
  padding: 6rem 0;
}

.waitlist-section h2 {
  margin-bottom: 1rem;
}

.waitlist-section > .container > p {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s;
}

.email-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-form button {
  white-space: nowrap;
}

/* -- CTA paths -- */

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s;
}

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

.path-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.path-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* -- Positioning -- */

.positioning {
  text-align: center;
}

.positioning h2 {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.positioning p {
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
}

.positioning .question-pair {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.question-pair .q {
  font-size: 1rem;
  color: var(--text-tertiary);
}

.question-pair .q-answer {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* -- Footer -- */

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

/* -- Responsive -- */

@media (max-width: 768px) {
  :root {
    --section-gap: 5rem;
  }

  .nav-links {
    display: none;
  }

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

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

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

  .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .email-form {
    flex-direction: column;
  }

  footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .species-stats {
    flex-wrap: wrap;
  }

  .stack-table {
    font-size: 0.8125rem;
  }

  .stack-table th,
  .stack-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.0625rem;
  }
}
