:root {
  color-scheme: dark;
  --bg: #070d16;
  --bg-elev: #0c1422;
  --panel: rgba(12, 18, 30, 0.78);
  --border: rgba(84, 126, 178, 0.22);
  --text: #edf3fb;
  --muted: #95aec6;
  --primary: #42b6ff;
  --primary-strong: #1e8bff;
  --secondary: #2fe0ff;
  --accent: #b6e5ff;
  --glow: rgba(66, 182, 255, 0.28);
  --primary-rgb: 66, 182, 255;
  --secondary-rgb: 47, 224, 255;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --glass-bg: rgba(65, 65, 65, 0.35);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --foreground: #edf3fb;
  --muted-foreground: #95aec6;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(1200px 600px at 8% -10%, rgba(66, 182, 255, 0.18), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(47, 224, 255, 0.16), transparent 55%),
    radial-gradient(800px 420px at 35% 90%, rgba(26, 98, 172, 0.22), transparent 60%), var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(100, 135, 170, 0.08) 95%),
    linear-gradient(90deg, transparent 95%, rgba(100, 135, 170, 0.08) 95%);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.4px;
}

.logo-word {
  text-transform: none;
}

.logo-word em {
  font-style: normal;
  color: var(--primary);
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  background: rgba(9, 18, 28, 0.7);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 80px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  margin: 0 0 16px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(7, 13, 22, 0.8);
  border: 1px solid rgba(66, 182, 255, 0.3);
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  padding: 8px 14px;
  background: rgba(50, 70, 100, 0.5);
  border: 1px solid rgba(84, 126, 178, 0.22);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-content {
  padding-right: 40px;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 85%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  display: block;
}

.hero-metrics {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  z-index: 10;
}

.hero-metric {
  padding: 14px 16px;
  background: rgba(7, 13, 22, 0.85);
  border: 1px solid rgba(66, 182, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.metric-value {
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #061117;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.3);
}

.btn.outline {
  border-color: rgba(148, 176, 208, 0.3);
  background: rgba(14, 20, 28, 0.6);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metric h3 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--primary);
}

.metric span {
  font-size: 0.85rem;
  color: var(--muted);
}

.surface {
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.mock {
  display: grid;
  gap: 16px;
}

.mock .toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mock .chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  color: var(--muted);
  background: rgba(8, 12, 18, 0.6);
}

.mock .graph {
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.22), rgba(12, 18, 26, 0.9));
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  position: relative;
  overflow: hidden;
}

.mock .graph::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(var(--primary-rgb), 0.35);
}

.mock .graph svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.mock .graph svg .graph-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock .graph svg .graph-line.base {
  stroke: url(#grad);
  stroke-width: 3;
}

.mock .graph svg .graph-line.signal {
  stroke: url(#grad);
  stroke-width: 5;
  stroke-dasharray: 42 260;
  stroke-dashoffset: 0;
  opacity: 0.6;
  animation: lineFlow 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.35));
}

.mock .graph svg .graph-dot {
  filter: drop-shadow(0 0 6px rgba(var(--secondary-rgb), 0.55));
}

@keyframes lineFlow {
  100% {
    stroke-dashoffset: -302;
  }
}

.section-title {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0 0 16px;
}

.section-sub {
  margin: 0 0 32px;
  color: var(--muted);
}

.logo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(9, 14, 20, 0.8);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.logo-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
}

.logo-card small {
  color: var(--muted);
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wordmark span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.6px;
}

.wordmark span em {
  font-style: normal;
  color: var(--primary);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(12, 18, 26, 0.88);
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.6s ease forwards;
  transition: all 0.3s ease;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
  background: rgba(12, 18, 26, 0.98);
  border-color: rgba(66, 182, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(66, 182, 255, 0.15);
}

.card h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.json-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.field {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 176, 208, 0.2);
  background: rgba(10, 16, 24, 0.8);
  font-size: 0.82rem;
  color: var(--muted);
}

.code-block {
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: rgba(6, 10, 15, 0.85);
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cfe9ff;
  white-space: pre-wrap;
  box-shadow: inset 0 0 24px rgba(var(--primary-rgb), 0.16);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-row .chip {
  font-size: 0.7rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters .filter {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  background: rgba(12, 18, 26, 0.8);
  color: var(--muted);
  font-size: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 176, 208, 0.15);
}

th {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
}

td span.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: var(--accent);
  background: rgba(10, 20, 32, 0.85);
}

.packshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.packshot {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(9, 14, 20, 0.8);
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.packshot strong {
  font-family: var(--display);
  font-size: 1.1rem;
}

.packshot .tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--primary);
}

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

.faq-item {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 16, 24, 0.85);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.contact-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(9, 14, 20, 0.85);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.1rem;
}

.contact-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-card li {
  margin-bottom: 6px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.revealed {
  animation: fadeUp 0.8s ease forwards;
}

.reveal.revealed.delay-1 {
  animation-delay: 0.1s;
}

.reveal.revealed.delay-2 {
  animation-delay: 0.2s;
}

.reveal.revealed.delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journey-section {
  text-align: center;
}

.journey-section .section-title {
  animation: slideUpIn 0.6s ease forwards;
}

.journey-section .section-sub {
  animation: slideUpIn 0.6s ease forwards;
  animation-delay: 0.1s;
}

.journey-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.journey-card {
  opacity: 0;
  animation: slideUpIn 0.6s ease forwards;
}

.journey-card:nth-child(1) {
  animation-delay: 0.2s;
}

.journey-card:nth-child(2) {
  animation-delay: 0.35s;
}

.journey-card:nth-child(3) {
  animation-delay: 0.5s;
}

.journey-card h3,
.journey-card p {
  text-align: center;
}

.crm-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 3rem 0;
}

.crm-card {
  background: rgba(12, 18, 30, 0.5);
  border: 1px solid rgba(66, 182, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.6s ease forwards;
}

.crm-card:nth-child(1) { animation-delay: 0.1s; }
.crm-card:nth-child(2) { animation-delay: 0.2s; }
.crm-card:nth-child(3) { animation-delay: 0.3s; }
.crm-card:nth-child(4) { animation-delay: 0.1s; }
.crm-card:nth-child(5) { animation-delay: 0.2s; }
.crm-card:nth-child(6) { animation-delay: 0.3s; }

.crm-card:hover {
  background: rgba(66, 182, 255, 0.08);
  border-color: rgba(66, 182, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(66, 182, 255, 0.15);
}

.crm-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(66, 182, 255, 0.2);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 auto 16px;
}

.crm-card h4 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 12px 0;
  color: var(--foreground);
}

.crm-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.crm-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 3rem 0;
}

.indicator-item {
  padding: 20px;
  background: rgba(66, 182, 255, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  opacity: 0;
  animation: slideIn 0.6s ease forwards;
}

.indicator-item:nth-child(1) { animation-delay: 0.1s; }
.indicator-item:nth-child(2) { animation-delay: 0.2s; }
.indicator-item:nth-child(3) { animation-delay: 0.3s; }
.indicator-item:nth-child(4) { animation-delay: 0.4s; }

.indicator-item strong {
  color: var(--primary);
  font-family: var(--display);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.indicator-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pill {
    align-self: flex-start;
  }

  .logo-showcase {
    grid-template-columns: 1fr;
  }

  .json-view {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 28px 18px 100px;
    gap: 80px;
  }

  header {
    align-items: flex-start;
    gap: 16px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

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

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .metric {
    padding: 14px;
  }

  .mock .graph {
    height: 140px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-sub {
    font-size: 0.95rem;
  }

  .logo-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-card h3 {
    font-size: 1.35rem;
  }

  .wordmark span {
    font-size: 1.6rem;
  }

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

  .filters {
    gap: 8px;
  }

  .filters .filter {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

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

  th,
  td {
    white-space: nowrap;
  }

  .field-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .code-block {
    font-size: 0.75rem;
    padding: 14px;
  }

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

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

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

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn {
    transition: none;
  }

  .mock .graph svg .graph-line.signal {
    animation: none;
  }

  .mock .graph svg .graph-dot {
    display: none;
  }
}

/* New Header Styles with Liquid Glass */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 1.5rem;
  transition: padding 0.35s ease, backdrop-filter 0.35s ease, background 0.35s ease;
}

.header.scrolled {
  padding: 0.6rem 1.5rem;
}

.nav-surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  transition: all 0.35s ease;
  width: 100%;
}

.header.scrolled .nav-surface {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: var(--shadow-glass);
  padding: 0.5rem 0.75rem;
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

.logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.logo-icon img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.logo-text {
  font-weight: 600;
  font-size: 1.125rem;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 1rem;
  }
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link:hover::after {
  width: 100%;
}

.header .btn-primary {
  display: none;
  padding: 10px 16px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #061117;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(66, 182, 255, 0.3);
}

.header .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.header .btn-sm {
  padding: 10px 16px;
  font-size: 0.9375rem;
}

.header-buttons {
  display: none;
  gap: 12px;
  align-items: center;
}

.header .btn-secondary {
  display: none;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(66, 182, 255, 0.4);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header .btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(66, 182, 255, 0.1);
  transform: translateY(-1px);
}

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

  .header .btn-primary {
    display: inline-flex;
  }

  .header .btn-secondary {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

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

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 5.25rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 2rem;
  z-index: 99;
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn-primary {
  display: inline-flex !important;
  margin-top: 1rem;
}

.mobile-nav .btn-secondary {
  display: inline-flex !important;
}

body {
  padding-top: 5.25rem;
}

.wrap {
  margin-top: 0;
}

.perspectiva3d {
  transform-origin: bottom;
  transform: perspective(1000px) rotateX(20deg) !important;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.perspectiva3d-ativa {
  transform-origin: bottom;
  transform: perspective(1000px) rotateX(0deg) !important;
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  box-shadow: 0 20px 60px rgba(66, 182, 255, 0.4), 0 0 40px rgba(66, 182, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   VANILLA DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Glass Panel ─────────────────────────────────────────── */
.glass-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
}

.glass-panel.card-hover {
  transition: all 0.3s ease;
}

.glass-panel.card-hover:hover {
  border-color: rgba(66, 182, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(66, 182, 255, 0.15);
}

/* ── Auth layout ─────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.auth-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.auth-logo span {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.auth-logo em {
  font-style: normal;
  color: var(--primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
}

.input-group .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.input-group input {
  padding-left: 40px;
}

.input-group .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px;
  transition: color 0.2s;
  cursor: pointer;
}

.input-group .toggle-pw:hover {
  color: var(--text);
}

.auth-link {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 24px;
}

.auth-link a {
  color: var(--primary);
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ── Button Styles ───────────────────────────────────────── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #061117;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.4);
}

.btn-glow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 176, 208, 0.3);
  background: rgba(14, 20, 28, 0.6);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-glass:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 182, 255, 0.4);
}

/* ── Inputs ──────────────────────────────────────────────── */
.input-falco {
  width: 100%;
  background: rgba(6, 10, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.input-falco:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

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

/* ── Dashboard layout ────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 256px;
  height: 100%;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.sidebar-logo span {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.sidebar-logo em {
  font-style: normal;
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
  background: rgba(66, 182, 255, 0.12);
  color: var(--primary);
  border-color: rgba(66, 182, 255, 0.25);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(66, 182, 255, 0.2);
  border: 1px solid rgba(66, 182, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.user-meta p {
  margin: 0;
}

.user-meta .name {
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta .email {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.875rem;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
}

.logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.logout-btn svg {
  width: 16px;
  height: 16px;
}

/* Main content */
.main-content {
  margin-left: 256px;
  flex: 1;
  padding: 32px;
  max-width: 100%;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 22, 0.8);
  backdrop-filter: blur(4px);
  z-index: 39;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-overlay.open {
    display: block;
  }
  .main-content {
    margin-left: 0;
    padding: 24px 16px;
    padding-top: 64px;
  }
}

/* ── Tab content ─────────────────────────────────────────── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-header h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tab-header p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-top svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.stat-change {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

/* ── Chart placeholder ───────────────────────────────────── */
.chart-area {
  padding: 24px;
  margin-bottom: 24px;
}

.chart-area h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.chart-bars {
  height: 192px;
  border-radius: 8px;
  background: linear-gradient(to bottom, rgba(66, 182, 255, 0.1), transparent);
  border: 1px solid rgba(66, 182, 255, 0.2);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  gap: 8px;
  overflow: hidden;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chart-bar:hover {
  opacity: 1;
}

.chart-bar-label {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
}

/* ── Table ───────────────────────────────────────────────── */
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.leads-table th {
  text-align: left;
  padding: 12px 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.leads-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(84, 126, 178, 0.12);
}

.leads-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(66, 182, 255, 0.3);
  color: var(--accent);
  background: rgba(66, 182, 255, 0.05);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.status-dot.processing {
  background: #facc15;
}

/* ── Account info grid ───────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(7, 13, 22, 0.5);
  border: 1px solid rgba(84, 126, 178, 0.12);
}

.info-item .label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-item .value {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Plans grid ──────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(12, 18, 26, 0.88);
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: rgba(66, 182, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(66, 182, 255, 0.15);
}

.plan-card.popular {
  border-color: rgba(66, 182, 255, 0.4);
  background: rgba(66, 182, 255, 0.05);
  box-shadow: 0 0 30px rgba(66, 182, 255, 0.1);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-header h4 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(66, 182, 255, 0.2);
  color: var(--primary);
  border: 1px solid rgba(66, 182, 255, 0.3);
}

.popular-badge svg {
  width: 12px;
  height: 12px;
}

.plan-price {
  font-family: var(--mono);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-period {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.plan-btn.current {
  background: rgba(66, 182, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(66, 182, 255, 0.3);
  cursor: default;
}

/* ── Lists ───────────────────────────────────────────────── */
.search-box {
  position: relative;
  max-width: 360px;
  margin-bottom: 24px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-box input {
  padding-left: 40px;
}

.list-item {
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-info h4 {
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 4px;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
}

.list-meta span {
  color: var(--muted);
}

.list-meta .count {
  font-family: var(--mono);
  color: var(--primary);
}

.list-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: rgba(66, 182, 255, 0.4);
  color: var(--primary);
  background: rgba(66, 182, 255, 0.05);
}

.icon-btn.danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Generate tab ────────────────────────────────────────── */
.generate-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .generate-grid {
    grid-template-columns: 1fr;
  }
}

.config-section {
  margin-bottom: 24px;
  padding: 24px;
}

.config-section h3 {
  font-family: var(--display);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.config-section h3 svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(66, 182, 255, 0.3);
  color: var(--text);
}

.chip.selected {
  border-color: rgba(66, 182, 255, 0.5);
  background: rgba(66, 182, 255, 0.12);
  color: var(--primary);
}

.range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.range-header h3 {
  margin-bottom: 0;
}

.range-value {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(84, 126, 178, 0.3);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(66, 182, 255, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(66, 182, 255, 0.5);
  border: none;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 8px;
}

/* Summary panel */
.summary-panel {
  padding: 24px;
  position: sticky;
  top: 24px;
}

.summary-panel h3 {
  font-family: var(--display);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-panel h3 svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.summary-rows {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 6px 0;
}

.summary-row .label {
  color: var(--muted);
}

.summary-row .val {
  font-weight: 500;
}

.summary-row .val.mono {
  font-family: var(--mono);
}

.summary-row .val.primary {
  color: var(--primary);
}

.summary-row .val.secondary {
  color: var(--secondary);
  font-weight: 600;
}

.summary-divider {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.cost-row {
  margin-bottom: 16px;
}
