:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-light: #111827;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --border-subtle: #1f2937;
  --card-bg: #020617;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-full: 999px;
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 42%, #000 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* NAV BAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.7),
      transparent);
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: conic-gradient(from 180deg, #38bdf8, #a855f7, #f97316, #38bdf8);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.7);
}

.logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 0%, #0f172a 0, #020617 40%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e0f2fe;
}

.logo-text-main {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* NAV LINKS + DROPDOWNS */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-parent {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover,
.nav-parent:hover {
  color: var(--accent);
}

.nav-parent-icon {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Dropdown menu */

.nav-dropdown {
  position: absolute;
  top: 130%;
  left: 0;
  min-width: 200px;
  padding: 0.45rem 0.4rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.95);
  display: none;
}

.nav-dropdown a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-dropdown a span {
  display: block;
}

.nav-dropdown a .sub-label {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.nav-dropdown a:hover {
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
}

.nav-item.open>.nav-dropdown {
  display: block;
}

/* Pill + buttons */

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.9));
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.9);
}

.btn-primary,
.btn-ghost {
  border-radius: var(--radius-full);
  padding: 0.58rem 1.35rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform 0.1s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(8, 47, 73, 1);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(75, 85, 99, 0.9);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(148, 163, 184, 1);
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-tagline {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(to right, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 30rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.channel-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  font-size: 0.78rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Hero showcase (chat cards) */

.hero-showcase {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.98));
  border-radius: 28px;
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -160px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(circle at bottom, rgba(129, 140, 248, 0.08), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.9);
}

.mini-kpi {
  font-size: 0.75rem;
  color: #e5e7eb;
}

.mini-kpi span {
  color: #22c55e;
  font-weight: 600;
}

.chat-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 20px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.85rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.chat-title {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.chat-tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.7);
  gap: 0.1rem;
}

.chat-tab {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: var(--text-soft);
}

.chat-tab.active {
  background: radial-gradient(circle at top, #38bdf8, #0ea5e9);
  color: #020617;
  font-weight: 600;
}

.bubble-row {
  display: flex;
  margin-bottom: 0.4rem;
}

.bubble-row.agent {
  justify-content: flex-end;
}

.bubble {
  max-width: 88%;
  padding: 0.4rem 0.7rem;
  border-radius: 14px;
  font-size: 0.76rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.bubble.user {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.bubble.nori {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.bubble-label {
  display: block;
  font-size: 0.66rem;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

.hero-footer {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Sections / Layout */

section {
  padding: 2.8rem 0 2.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.85);
}

section:nth-of-type(even) {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.section-header {
  margin-bottom: 1.8rem;
  text-align: left;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.15rem 1.1rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.9);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.card-title {
  font-size: 1rem;
  margin: 0;
}

.card-tag {
  font-size: 0.72rem;
  color: var(--text-soft);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.example-block {
  margin-bottom: 0.85rem;
}

.example-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.example-box {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.82rem;
}

.example-callout {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.45rem;
}

/* Mini cards / grids */

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mini-card {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.86rem;
}

.mini-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}

.mini-body {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mini-body ul {
  padding-left: 1.1rem;
  margin: 0.3rem 0 0;
}

.mini-body li {
  margin-bottom: 0.18rem;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.pricing-card {
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 1);
  padding: 1.2rem 1.1rem 1.25rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.95);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card.pro {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.95);
}

.pricing-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

.pricing-tagline {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.pricing-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.1rem 0 0.3rem;
}

.pricing-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.pricing-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
  margin-top: 0.3rem;
}

.pricing-cta {
  margin-top: auto;
  margin-right: auto;
  margin-left: auto;
}

.pricing-tag {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.8);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.5rem 0 2rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 0.75rem;
  }

  .shell {
    padding-inline: 0.9rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* For now keep nav visible but tighten spacing */
  .nav-links {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .hero-showcase {
    margin-top: 0.5rem;
  }

  .nav-dropdown {
    position: static;
    margin-top: 0.4rem;
    box-shadow: none;
  }
}

/* ===== MOBILE NAV ===== */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  display: block;
  border-radius: 6px;
  transition: 0.25s ease-in-out;
}

@media (max-width: 720px) {

  /* Show hamburger */
  .mobile-nav-toggle {
    display: flex;
  }

  /* Hide desktop nav by default */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    display: none;
    flex-direction: column;
    gap: 0.9rem;
  }

  /* When opened */
  .nav-links.open {
    display: flex;
  }

  /* Dropdowns stack vertically */
  .nav-item {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(31, 41, 55, 0.7);
    margin-top: 0.4rem;
    padding: 0.5rem;
    display: none;
  }

  .nav-item.open>.nav-dropdown {
    display: block;
  }
}

/* Hamburger animation when active */
.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}