/* Miuda.ai - Main Stylesheet */

/* ─────────────────────────────────────────────
   Custom Properties
───────────────────────────────────────────── */
:root {
  --brand-primary: #0ea5e9;
  --brand-primary-dark: #0284c7;
  --brand-primary-darker: #0369a1;
  --brand-accent: #06b6d4;
  --brand-accent-light: #22d3ee;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --border-default: #e2e8f0;
  --radius-card: 1rem;
  --radius-button: 0.5rem;
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-card-hover: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────
   Base Reset & Typography
───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-subtle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ─────────────────────────────────────────────
   Layout Utilities
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ─────────────────────────────────────────────
   Navbar
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  height: 64px;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 1px 8px 0 rgb(0 0 0 / 0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.navbar__brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
}

.navbar__link {
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__link:hover {
  color: var(--brand-primary-dark);
  background: #f0f9ff;
}

.navbar__link.active {
  color: var(--brand-primary-dark);
  background: #e0f2fe;
}

.navbar__divider {
  width: 1px;
  height: 20px;
  background: var(--border-default);
  margin: 0 0.25rem;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}

.navbar__hamburger:hover {
  background: var(--bg-subtle);
}

@media (min-width: 768px) {
  .navbar__hamburger {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 49;
  background: white;
  border-bottom: 1px solid var(--border-default);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.mobile-menu__link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-menu__link:hover {
  background: #f0f9ff;
  color: var(--brand-primary-dark);
}

.mobile-menu__divider {
  height: 1px;
  background: var(--border-default);
  margin: 0.75rem 0;
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary-dark);
  color: #fff;
  border-color: var(--brand-primary-dark);
}

.btn-primary:hover {
  background: var(--brand-primary-darker);
  border-color: var(--brand-primary-darker);
}

.btn-secondary {
  background: white;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #ecfeff 100%);
}

.hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.hero__blob--one {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #bae6fd, transparent 70%);
  top: -200px; right: -100px;
}

.hero__blob--two {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a5f3fc, transparent 70%);
  bottom: -100px; left: -100px;
}

.hero__blob--three {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
  top: 20%; left: 30%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: #e0f2fe;
  color: var(--brand-primary-darker);
  border: 1px solid #bae6fd;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(1.875rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.hero__title .gradient-text {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 520px;
}

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

/* ─────────────────────────────────────────────
   Sections
───────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section--light {
  background: white;
}

.section--subtle {
  background: var(--bg-subtle);
}

.section--brand {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-accent));
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #e0f2fe;
  color: var(--brand-primary-darker);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   Cards
───────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #bae6fd;
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: var(--brand-primary-dark);
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.card__description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────
   Feature Grid
───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Two-col feature panel */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-default);
}

.feature-panel:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .feature-panel {
    grid-template-columns: 1fr 1fr;
  }

  .feature-panel.reversed .feature-panel__content {
    order: 2;
  }
  .feature-panel.reversed .feature-panel__media {
    order: 1;
  }
}

.feature-panel__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.feature-panel__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.feature-panel__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.feature-panel__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-panel__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0f2fe;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%230284c7' d='M16.25 6.5 8.5 14.25 5 10.75' stroke='%230284c7' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.feature-panel__media img {
  width: 100%;
  border-radius: 0.875rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  border: 1px solid var(--border-default);
}

/* ─────────────────────────────────────────────
   Pricing Table
───────────────────────────────────────────── */
.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pricing-table thead th {
  background: #f0f9ff;
  padding: 1rem 0.875rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid #bae6fd;
  white-space: nowrap;
}

.pricing-table thead th:first-child {
  border-radius: 0.75rem 0 0 0;
  min-width: 120px;
}

.pricing-table thead th:last-child {
  border-radius: 0 0.75rem 0 0;
}

.pricing-table tbody tr:nth-child(even) {
  background: #fafcff;
}

.pricing-table tbody td,
.pricing-table tbody th {
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
}

.pricing-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-table .module-cell {
  font-weight: 600;
  color: var(--text-primary);
  background: #f8fafc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 110px;
}

.pricing-table tfoot td,
.pricing-table tfoot th {
  padding: 1.25rem 0.875rem;
  background: #f8fafc;
  border-top: 2px solid var(--border-default);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
}

.cross-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
}

/* ─────────────────────────────────────────────
   CTA Banner
───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  color: white;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0;
}

.btn-cta {
  background: white;
  color: var(--brand-primary-darker);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.625rem;
  white-space: nowrap;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-cta:hover {
  background: #f0f9ff;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   Blog Card
───────────────────────────────────────────── */
.blog-card {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: #bae6fd;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

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

.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

.blog-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-top: auto;
}

/* ─────────────────────────────────────────────
   Highlights
───────────────────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); }
}

.highlight-card {
  background: linear-gradient(135deg, #f0f9ff, #fafcff);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.highlight-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.6rem;
}

.highlight-card__desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────────
   Ecosystem Links
───────────────────────────────────────────── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.ecosystem-card {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.ecosystem-card:hover {
  border-color: #bae6fd;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ecosystem-card__icon {
  width: 40px;
  height: 40px;
  background: #e0f2fe;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.ecosystem-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary-dark);
}

.ecosystem-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.ecosystem-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.ecosystem-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────
   Who We Serve
───────────────────────────────────────────── */
.serve-section {
  background: linear-gradient(135deg, #0369a1 0%, #0e7490 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.serve-section h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.serve-section p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: white;
}

.footer__divider {
  height: 1px;
  background: #1e293b;
  margin-bottom: 1.5rem;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: #334155;
  color: white;
}

/* ─────────────────────────────────────────────
   Carousel
───────────────────────────────────────────── */
.screenshot-carousel {
  position: relative;
  width: 100%;
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.18);
  border: 1px solid var(--border-default);
  background: #f8fafc;
  aspect-ratio: 16/9;
}

.screenshot-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.screenshot-carousel__img.active {
  opacity: 1;
}

.screenshot-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.screenshot-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.screenshot-carousel__dot.active {
  background: var(--brand-primary-dark);
  transform: scale(1.3);
}

/* ─────────────────────────────────────────────
   Docs Layout
───────────────────────────────────────────── */
.docs-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 64px;
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  background: white;
  border-right: 1px solid var(--border-default);
  padding: 1.5rem 1rem;
  display: none;
}

@media (min-width: 1024px) {
  .docs-sidebar { display: block; }
}

.docs-sidebar.mobile-open {
  display: block;
  z-index: 45;
}

.docs-content {
  flex: 1;
  padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
  .docs-content {
    margin-left: 260px;
    padding: 2.5rem 3rem;
    max-width: calc(900px + 260px);
  }
}

.docs-nav-group {
  margin-bottom: 1.5rem;
}

.docs-nav-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 0.5rem;
  margin-bottom: 0.4rem;
}

.docs-nav-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.docs-nav-link:hover {
  background: #f0f9ff;
  color: var(--brand-primary-dark);
}

.docs-nav-link.active {
  background: #e0f2fe;
  color: var(--brand-primary-dark);
  font-weight: 600;
}

/* Prose (doc content) */
.prose {
  color: var(--text-primary);
  line-height: 1.75;
  max-width: 780px;
}

.prose h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 1rem; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-default); }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--brand-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-primary-darker); }
.prose strong { font-weight: 700; }
.prose code { font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace; font-size: 0.875em; background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 0.25rem; color: var(--brand-primary-darker); }
.prose pre { background: #0f172a; border-radius: 0.625rem; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.25rem 0; }
.prose pre code { background: none; padding: 0; color: #e2e8f0; font-size: 0.875rem; }
.prose blockquote { border-left: 3px solid #bae6fd; padding-left: 1rem; margin: 1.25rem 0; color: var(--text-secondary); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--border-default); padding: 0.65rem 0.875rem; text-align: left; }
.prose th { background: var(--bg-subtle); font-weight: 600; }
.prose img { border-radius: 0.5rem; box-shadow: 0 2px 8px rgb(0 0 0 / 0.08); margin: 1rem 0; }
.prose hr { border: none; border-top: 1px solid var(--border-default); margin: 2rem 0; }

/* ─────────────────────────────────────────────
   Forms
───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   Console / Dashboard
───────────────────────────────────────────── */
.console-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 64px;
}

.console-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border-default);
  padding: 1.5rem 0.75rem;
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.console-content {
  flex: 1;
  margin-left: 240px;
  padding: 2rem 2.5rem;
  max-width: 1200px;
}

@media (max-width: 1023px) {
  .console-sidebar { display: none; }
  .console-content { margin-left: 0; padding: 1.5rem 1.25rem; }
}

.console-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.console-nav-link:hover {
  background: #f0f9ff;
  color: var(--brand-primary-dark);
}

.console-nav-link.active {
  background: #e0f2fe;
  color: var(--brand-primary-dark);
}

/* ─────────────────────────────────────────────
   Utility
───────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─────────────────────────────────────────────
   Animations
───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out both;
}

/* ─────────────────────────────────────────────
   Responsive Helpers
───────────────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ─────────────────────────────────────────────
   Mobile Enhancements
───────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Hero adjustments */
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero__blob--one {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
  }

  .hero__blob--two {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
  }

  .hero__blob--three {
    width: 150px;
    height: 150px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn,
  .hero__actions .btn-lg {
    width: 100%;
    justify-content: center;
  }

  /* Section padding */
  .section {
    padding: 3rem 0;
  }

  /* Feature panel */
  .feature-panel {
    padding: 2rem 0;
  }

  .feature-panel__media {
    margin-top: 1.5rem;
  }

  /* Cards */
  .card {
    padding: 1.5rem;
  }

  /* Highlight cards */
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  /* CTA banner */
  .cta-banner {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: 1.25rem;
  }

  /* Docs sidebar */
  .docs-sidebar {
    width: 280px;
    padding: 1rem;
  }

  /* Prose adjustments */
  .prose {
    font-size: 0.95rem;
  }

  .prose h1 {
    font-size: 1.5rem;
  }

  .prose h2 {
    font-size: 1.25rem;
  }

  .prose pre {
    padding: 1rem;
    font-size: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Pricing table */
  .pricing-table {
    font-size: 0.8rem;
  }

  .pricing-table thead th,
  .pricing-table tbody td,
  .pricing-table tbody th {
    padding: 0.5rem 0.5rem;
  }

  /* Footer */
  .footer__grid {
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────
   Touch Enhancements
───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }

  .navbar__link,
  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ─────────────────────────────────────────────
   Animation Enhancements
───────────────────────────────────────────── */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-slideInLeft {
  animation: slideInFromLeft 0.5s ease-out both;
}

.animate-slideInRight {
  animation: slideInFromRight 0.5s ease-out both;
}

.animate-scaleIn {
  animation: scaleIn 0.4s ease-out both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   Additional Utilities
───────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--brand-primary);
  color: white;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .docs-sidebar,
  .hero__aurora {
    display: none !important;
  }

  .docs-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
