/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* LancVIP brand palette */
  --bg: #F8FAFC; /* neutral background */
  --surface: #FFFFFF;
  --surface-soft: #F6F8FA;
  --text: #2D3E50; /* primary dark blue */
  --muted: #64748B; /* slate secondary */
  --primary: #2D3E50; /* brand primary */
  --primary-strong: #203243;
  --secondary: #64748B; /* softer blue */
  --tertiary: #4D391C; /* warm tertiary accent */
  --border: #E6EBEF;
  --border-strong: #D1D8DE;
  --shadow-lg: 0 24px 70px rgba(40, 31, 21, 0.12);
  --shadow-md: 0 16px 40px rgba(40, 31, 21, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --content-width: 1180px;
  --heading-font: "Space Grotesk", "Inter", sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(45,62,80,0.06), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(100,116,139,0.05), transparent 22%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-wrap {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(230, 235, 238, 0.9);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.82);
  border-bottom-color: rgba(230, 235, 238, 0.95);
  box-shadow: 0 10px 30px rgba(45, 62, 80, 0.04);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: min-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--heading-font);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(45,62,80,0.12);
  font-size: 1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo {
  height: 46px;
  display: inline-block;
}
/* Header uses a compact mark, footer uses full wordmark */
.site-header .site-logo { height: 40px; }
.site-footer .site-logo { height: 56px; }

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

/* ===== BUTTONS ===== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 18px 34px rgba(45,62,80,0.12);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 22px 38px rgba(45,62,80,0.14);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(45,62,80,0.06);
  color: var(--primary-strong);
  border: 1px solid rgba(45,62,80,0.06);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.section-title,
.hero-title,
.page-title {
  font-family: var(--heading-font);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 68ch;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 2.5rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  top: -70px;
  right: -120px;
  background: radial-gradient(circle, rgba(45,62,80,0.06), transparent 70%);
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: 0;
  background: radial-gradient(circle, rgba(100,116,139,0.06), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  max-width: 12ch;
}

.hero-title span {
  color: var(--primary-strong);
}

.hero-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.6rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.hero-stat strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--heading-font);
}

.hero-stat span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}


.hero-panel {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,62,80,0.06), transparent 70%);
  pointer-events: none;
}

.panel-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: calc(var(--radius-xl) - 8px);
  padding: 1.35rem;
  border: 1px solid rgba(231, 218, 201, 0.9);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(100,116,139,0.08);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-status {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.signal-list {
  display: grid;
  gap: 0.8rem;
}

.signal-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid rgba(230,235,238,0.9);
}

.signal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(45,62,80,0.06), rgba(100,116,139,0.04));
  color: var(--primary);
}

.signal-item h3 {
  font-size: 1rem;
  font-family: var(--heading-font);
}

.signal-item p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  margin-top: 1.8rem;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.trust-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== CARDS & GRIDS ===== */
.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.soft-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 62, 80, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(40, 31, 21, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card {
  padding: 1.85rem 1.65rem;
}

.soft-card {
  padding: 1.5rem;
}

.card:hover,
.soft-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 62, 80, 0.15);
  box-shadow: 0 20px 45px rgba(45, 62, 80, 0.08);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45,62,80,0.08) 0%, rgba(77,57,28,0.05) 100%);
  border: 1px solid rgba(45, 62, 80, 0.04);
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  border-color: transparent;
}

.card:hover .card-icon .icon svg {
  fill: #ffffff !important;
}

/* SVG icon helpers: use `icon` class on inline SVGs */
.icon svg {
  width: 1.48rem;
  height: 1.48rem;
  display: block;
  fill: var(--primary);
}

.icon--secondary svg { fill: var(--secondary); }
.icon--tertiary svg { fill: var(--tertiary); }

.card h3,
.soft-card h3,
.soft-card h4 {
  font-family: var(--heading-font);
  letter-spacing: -0.04em;
}

.card h3,
.soft-card h3 {
  font-size: 1.1rem;
}

.card p,
.soft-card p,
.muted {
  color: var(--muted);
}

.card p {
  margin-top: 0.6rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgba(100,116,139,0.06);
  color: var(--secondary);
  border: 1px solid rgba(100,116,139,0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== TIMELINE ===== */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.timeline-index {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45,62,80,0.10), rgba(100,116,139,0.06));
  color: var(--primary-strong);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--heading-font);
}

.timeline-item h3 {
  font-family: var(--heading-font);
  letter-spacing: -0.04em;
  margin-bottom: 0.2rem;
}

/* ===== SPLIT LAYOUTS ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.info-panel {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248,250,252,0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.info-panel h3,
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.info-panel p {
  color: var(--muted);
  margin-top: 0.8rem;
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checklist li {
  list-style: none;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  width: 1.2rem;
  color: var(--secondary);
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== CALLOUTS ===== */
.callout {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(45,62,80,0.06), rgba(100,116,139,0.04));
  border: 1px solid rgba(45,62,80,0.06);
}

.callout strong {
  font-family: var(--heading-font);
}

/* ===== LEGAL PAGES ===== */
.page-shell {
  padding: 3.25rem 0 4rem;
}

.page-title {
  margin-bottom: 0.85rem;
}

.page-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 72ch;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
}

.legal-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.legal-card h2 {
  margin-top: 1.5rem;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  margin-top: 0.7rem;
}

.legal-card ul {
  padding-left: 1.3rem;
}

.legal-meta {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 1rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(231, 218, 201, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 1.25rem;
  align-items: start;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 42ch;
}

.footer-brand .brand {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.footer-brand .site-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-contact-link {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-contact-link:hover {
  color: var(--primary-strong);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links h4 {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(231, 218, 201, 0.8);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .grid-4,
  .grid-3,
  .footer-grid,
  .hero-grid,
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-visual .hero-panel {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 1.5rem;
    transform: none;
    box-shadow: var(--shadow-lg);
  }

  .hero-visual:hover .hero-panel {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.9rem 1rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .split,
  .hero-meta,
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 0.7rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  .btn,
  .nav-links a,
  .card,
  .soft-card {
    transition: none;
  }
}

/* ===== FORM ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748B' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== BROWSER MOCKUP (PREMIUM ASSET WRAPPER) ===== */
.browser-mockup {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(45, 62, 80, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-bar {
  height: 36px;
  background: var(--surface-soft);
  border-bottom: 1px solid rgba(45, 62, 80, 0.08);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 6px;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(45, 62, 80, 0.15);
}

.browser-dot:nth-child(1) { background: #ff5f56; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27c93f; }

.browser-content {
  position: relative;
  overflow: hidden;
  max-height: 460px; /* Cap visual height to fit like a landscape web app! */
  background: var(--primary-strong);
}

.browser-content img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-mockup:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(40, 31, 21, 0.16);
}

.browser-mockup:hover .browser-content img {
  transform: scale(1.03);
}

/* ===== DASHBOARD MOCKUP (CSS-ONLY HERO VISUAL) ===== */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-mockup {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(45, 62, 80, 0.1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-mockup:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 80px rgba(40, 31, 21, 0.14);
}

.dash-topbar {
  height: 38px;
  background: var(--surface-soft);
  border-bottom: 1px solid rgba(45, 62, 80, 0.07);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
}

.dash-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ddot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ddot--red    { background: #ff5f56; }
.ddot--yellow { background: #ffbd2e; }
.ddot--green  { background: #27c93f; }

.dash-url {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Dashboard body layout */
.dash-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 340px;
}

/* Sidebar nav */
.dash-sidebar {
  background: linear-gradient(180deg, rgba(45,62,80,0.03), rgba(45,62,80,0.06));
  border-right: 1px solid rgba(45, 62, 80, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.85rem 0.4rem;
  align-items: center;
  justify-content: center;
}

.dash-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  width: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--text);
}

.dash-nav-item:hover {
  background: rgba(45,62,80,0.06);
}

.dash-nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.dash-nav-item span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dash-nav-item--active {
  background: var(--primary);
  color: #fff;
}

.dash-nav-item--active:hover {
  background: var(--primary-strong);
}

.dash-nav-item--active span { color: rgba(255,255,255,0.9); }

/* Main dashboard area */
.dash-main {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

/* Stats row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.dash-stat-chip {
  background: var(--surface-soft);
  border: 1px solid rgba(45, 62, 80, 0.06);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dsc-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dsc-value {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--heading-font);
  color: var(--text);
  line-height: 1.1;
}

.dsc-delta {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
}

.dsc-delta--up { color: #16a34a; }

/* Animated bar chart */
.dash-chart-area {
  background: var(--surface-soft);
  border: 1px solid rgba(45, 62, 80, 0.06);
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.45rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
}

.chart-bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(45,62,80,0.18), rgba(45,62,80,0.08));
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: barRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chart-bar--active {
  background: linear-gradient(180deg, var(--primary), rgba(45,62,80,0.5));
}

@keyframes barRise {
  from { height: 0; opacity: 0; }
  to   { height: var(--h, 50%); opacity: 1; }
}

.chart-label {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 500;
}

/* Activity feed */
.dash-feed {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid rgba(45,62,80,0.05);
  animation: feedSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feed-anim-1 { animation-delay: 0.1s; }
.feed-anim-2 { animation-delay: 0.2s; }
.feed-anim-3 { animation-delay: 0.3s; }

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

.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-dot--green { background: #22c55e; }
.feed-dot--blue  { background: #3b82f6; }
.feed-dot--amber { background: #f59e0b; }

.feed-text {
  flex: 1;
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
}

.feed-text strong {
  color: var(--muted);
  font-weight: 400;
}

.feed-time {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== DASHBOARD NAV BUTTON RESET ===== */
button.dash-nav-item {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  outline-offset: 2px;
}

button.dash-nav-item.dash-nav-item--active {
  background: var(--primary);
}

/* ===== INTERACTIVE VIEWS ===== */
.dash-view {
  animation: viewEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dash-view--hidden {
  display: none;
}

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

/* View shared header */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.view-title {
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--heading-font);
  color: var(--text);
  letter-spacing: -0.02em;
}

.view-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}

.view-badge--muted {
  background: rgba(100,116,139,0.08);
  color: var(--muted);
}

/* View footer chip */
.view-footer-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== BOTS VIEW ===== */
.bot-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.bot-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid rgba(45,62,80,0.05);
  animation: feedSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bot-row:nth-child(1) { animation-delay: 0.05s; }
.bot-row:nth-child(2) { animation-delay: 0.12s; }
.bot-row:nth-child(3) { animation-delay: 0.19s; }

.bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bot-avatar svg { width: 15px; height: 15px; }

.bot-avatar--green { background: rgba(34,197,94,0.12);  color: #16a34a; }
.bot-avatar--blue  { background: rgba(59,130,246,0.10);  color: #3b82f6; }
.bot-avatar--amber { background: rgba(245,158,11,0.10); color: #d97706; }

.bot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bot-info strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.bot-info span {
  font-size: 0.65rem;
  color: var(--muted);
}

/* Toggle switch for bots and config */
.bot-toggle,
.cfg-toggle {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(100,116,139,0.2);
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s ease;
  font-family: var(--body-font);
}

.bot-toggle::after,
.cfg-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bot-toggle--on,
.cfg-toggle--on {
  background: #22c55e;
}

.bot-toggle--on::after,
.cfg-toggle--on::after {
  left: 15px;
}

/* ===== FLUJOS VIEW ===== */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.flow-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  animation: feedSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flow-card:nth-child(1) { animation-delay: 0.05s; border-color: rgba(34,197,94,0.12); }
.flow-card:nth-child(2) { animation-delay: 0.12s; border-color: rgba(59,130,246,0.10); }
.flow-card:nth-child(3) { animation-delay: 0.19s; border-color: rgba(245,158,11,0.10); }

.flow-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.flow-icon svg { width: 14px; height: 14px; }

.flow-card--green .flow-icon { background: rgba(34,197,94,0.1);  color: #16a34a; }
.flow-card--blue  .flow-icon { background: rgba(59,130,246,0.1);  color: #3b82f6; }
.flow-card--amber .flow-icon { background: rgba(245,158,11,0.1); color: #d97706; }

.flow-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flow-info strong {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text);
}

.flow-steps {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.flow-step {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(45,62,80,0.06);
  color: var(--muted);
  white-space: nowrap;
}

.flow-arrow {
  font-size: 0.6rem;
  color: var(--muted);
}

.flow-status {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
}

.flow-status--on {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
}

/* ===== CONFIG VIEW ===== */
.config-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid rgba(45,62,80,0.05);
  animation: feedSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.config-row:nth-child(1) { animation-delay: 0.04s; }
.config-row:nth-child(2) { animation-delay: 0.1s; }
.config-row:nth-child(3) { animation-delay: 0.16s; }
.config-row:nth-child(4) { animation-delay: 0.22s; }

.config-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.config-info strong {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text);
}

.config-info span {
  font-size: 0.63rem;
  color: var(--muted);
}


/* ===== HERO PANEL (floating card below dashboard) ===== */
.hero-visual .hero-panel {
  position: relative;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 48px rgba(40, 31, 21, 0.1);
}

.hero-visual:hover .hero-panel {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(40, 31, 21, 0.14);
}

.hero-visual .panel-card {
  padding: 0.9rem;
  border-radius: calc(var(--radius-lg) - 6px);
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--surface);
}

.hero-visual .panel-topline {
  margin-bottom: 0.6rem;
}

.hero-visual .panel-badge {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
}

.hero-visual .panel-status {
  font-size: 0.75rem;
}

.hero-visual .signal-list {
  gap: 0.5rem;
}

.hero-visual .signal-item {
  padding: 0.55rem 0.7rem;
  gap: 0.6rem;
  border-radius: var(--radius-md);
  border-color: rgba(230, 235, 238, 0.6);
}

.hero-visual .signal-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-visual .signal-icon svg {
  width: 14px;
  height: 14px;
}

.si-chat    { background: rgba(45,62,80,0.07); color: var(--primary); }
.si-support { background: rgba(59,130,246,0.08); color: #3b82f6; }
.si-ops     { background: rgba(245,158,11,0.08); color: #d97706; }

.hero-visual .signal-item h3 {
  font-size: 0.85rem;
}

.hero-visual .signal-item p {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Responsive: dashboard at medium screens */
@media (max-width: 1100px) {
  .dash-body {
    grid-template-columns: 56px 1fr;
  }
  .dash-sidebar {
    padding: 0.65rem 0.3rem;
  }
  .dash-nav-item {
    width: 44px;
    padding: 0.45rem 0.25rem;
  }
  .dash-nav-item svg {
    width: 15px;
    height: 15px;
  }
}

/* Responsive: stack dashboard vertically on mobile */
@media (max-width: 760px) {
  .dash-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dash-sidebar {
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid rgba(45, 62, 80, 0.07);
    padding: 0.5rem 0.65rem;
    min-height: unset;
    gap: 0.35rem;
    overflow-x: auto;
  }
  .dash-nav-item {
    flex-direction: row;
    gap: 0.35rem;
    width: auto;
    padding: 0.4rem 0.65rem;
  }
  .dash-nav-item svg {
    width: 14px;
    height: 14px;
  }
  .dash-nav-item span {
    font-size: 0.7rem;
  }
  .dash-main {
    padding: 0.75rem;
  }
  .dash-stats-row {
    grid-template-columns: 1fr;
  }
  .dash-chart-area .chart-bars {
    height: 48px;
  }
  .flow-steps {
    flex-wrap: wrap;
  }
  .hero-visual .hero-panel {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
  }
  .hero-visual:hover .hero-panel {
    transform: none;
  }
}
