/* Smooth responsiveness & modern backdrop filters */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.25rem;
}

#root {
  width: 100%;
  max-width: 1080px;
  display: flex;
  justify-content: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
  width: 100%;
}

.bento-grid > div {
  display: contents;
}

.bento-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.col-12 { grid-column: span 12; }
.col-4  { grid-column: span 4; }
.row-2  { grid-row: span 2; }

/* Navbar */
.navbar-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  min-height: unset;
  height: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: #6e6e73;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.07);
}

.engine-badge {
  font-size: 0.75rem;
  color: #86868b;
  font-weight: 700;
  letter-spacing: 1.2px;
  background: #f5f5f7;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #e5e5ea;
}

/* Badges */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: #f5f5f7;
  color: #86868b;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: auto;
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-live {
  background: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.badge-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #0a84ff;
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.counter-val {
  font-size: 3.25rem;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.9rem;
  color: #86868b;
  line-height: 1.45;
}

.btn-group {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-top: auto;
}

button {
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
}

.btn-primary { background: #1d1d1f; color: #ffffff; }
.btn-primary:hover { background: #3a3a3c; }

.btn-secondary { background: #f5f5f7; color: #1d1d1f; }
.btn-secondary:hover { background: #e5e5ea; }

.quote-box {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 0.85rem;
  width: 100%;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.quote-text {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: #48484a;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #e5e5ea;
  margin-bottom: auto;
}

/* Documentation Card */
.docs-card {
  min-height: unset;
  justify-content: flex-start;
  padding: 2.25rem;
  gap: 1.75rem;
}

.docs-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.7px;
  margin: 0.2rem 0 0 0;
}

.docs-desc {
  color: #6e6e73;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 820px;
  margin: 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.docs-feature-box {
  background: #fbfbfd;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid #e5e5ea;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.docs-feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: #d2d2d7;
}

.docs-feature-head {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.docs-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  display: block;
  overflow-x: auto;
}

.docs-feature-text {
  font-size: 0.85rem;
  color: #86868b;
  line-height: 1.45;
  margin: 0;
}

.docs-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f2f2f7;
  margin-top: 0.25rem;
}

.docs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1d1d1f;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
}

.docs-cta-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.docs-footer-note {
  font-size: 0.85rem;
  color: #86868b;
  font-weight: 500;
}

/* About Card */
.about-card {
  min-height: unset;
  padding: 3.5rem 2rem;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 1.25rem;
}

.about-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -1.5px;
  margin: 0;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #6e6e73;
  max-width: 760px;
  margin: 0;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.about-pill {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 30px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
}

/* Responsive */
@media (max-width: 860px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .col-12, .col-4 {
    grid-column: span 1;
  }
  .navbar-card {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    padding: 1.25rem;
  }
}
