:root {
  --black: #080a0c;
  --surface: #0e1114;
  --card: #13171c;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.11);
  --text: #e6e8ec;
  --muted: #8b929e;
  --accent: #2dd4bf;
  --accent-deep: #0f766e;
  --accent-sky: #38bdf8;
  --green: #34d399;
  --amber: #fbbf24;
  --gradient: linear-gradient(125deg, #14b8a6 0%, #0ea5e9 100%);
  --glow: 0 0 48px rgba(20, 184, 166, 0.14);
  --font-head: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 5%;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: white;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }

.nav-cta {
  display: flex; gap: 12px; align-items: center;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: white;
  border-color: var(--border-bright);
}

.btn-primary {
  background: var(--gradient);
  color: #041016;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.35);
}
.btn-outline:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: var(--accent);
}

.btn-large {
  font-size: clamp(0.875rem, 0.82rem + 0.2vw, 1rem);
  padding: 12px 22px;
  border-radius: 10px;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(88px, 18vw, 120px) clamp(16px, 5vw, 5%) clamp(48px, 10vw, 80px);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(20, 184, 166, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 85% 85%, rgba(14, 165, 233, 0.06) 0%, transparent 52%),
    var(--black);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 40%, transparent 80%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #99f6e4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
  animation: fadeUp 0.6s ease forwards;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.35); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(20, 184, 166, 0); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1.1rem + 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 auto 24px;
  color: white;
  position: relative;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.9rem, 0.85rem + 0.35vw, 1.05rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 42px;
  font-weight: 400;
  line-height: 1.65;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-pills {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeUp 0.6s 0.4s ease both;
  position: relative;
}
.hero-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-pill svg { color: var(--green); }

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

.dashboard-wrap {
  position: relative;
  margin: 64px auto 0;
  max-width: 900px;
  width: 100%;
  animation: fadeUp 0.8s 0.5s ease both;
}

.dashboard-glow {
  position: absolute;
  bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 100px;
  background: #14b8a6;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}

.dashboard-frame {
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.dashboard-bar {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
}
.dashboard-dots { display: flex; gap: 6px; }
.dashboard-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.dashboard-dots span:nth-child(1) { background: #ff5f57; }
.dashboard-dots span:nth-child(2) { background: #febc2e; }
.dashboard-dots span:nth-child(3) { background: #28c840; }

.dashboard-tabs {
  display: flex; gap: 2px; margin-left: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
}
.dash-tab.active { background: rgba(20, 184, 166, 0.14); color: var(--accent); }

.dashboard-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.dash-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.dash-kpi-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.dash-kpi-value { font-family: var(--font-head); font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 600; color: white; }
.dash-kpi-delta { font-size: 0.75rem; color: var(--green); margin-top: 3px; }

.dash-chart {
  grid-column: span 3;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  height: 110px;
  display: flex; align-items: flex-end; gap: 4px;
}
.bar-col {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(20, 184, 166, 0.22);
  transition: height 0.3s;
}
.bar-col.active { background: var(--gradient); }

.stats-band {
  padding: 48px 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--surface);
}

.stat-item {
  padding: 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem); color: var(--muted); line-height: 1.35; }

section {
  padding: clamp(56px, 10vw, 100px) clamp(16px, 5vw, 5%);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1rem + 2.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.features-header .section-sub { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--card);
  padding: 36px 32px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { background: #1c1c28; }

.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.workflow-section::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 65%);
  border-radius: 50%;
}

.workflow-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.workflow-step:last-child { border-bottom: none; }
.workflow-step:hover .ws-content h4 { color: white; }

.ws-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}
.workflow-step.active .ws-num {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.ws-content h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  transition: color 0.2s;
}
.workflow-step.active .ws-content h4 { color: white; }

.ws-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-visual {
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 32px;
  min-height: 320px;
  display: flex; flex-direction: column; gap: 14px;
}

.wv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.82rem;
}
.wv-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge-green { background: rgba(34,211,165,0.15); color: var(--green); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-blue { background: rgba(14, 165, 233, 0.12); color: #7dd3fc; }
.wv-label { color: var(--text); flex: 1; }
.wv-val { color: var(--muted); font-size: 0.78rem; }

.testimonials-section {
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testi-card {
  width: min(340px, 88vw);
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.testi-stars {
  color: var(--amber);
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex; align-items: center; gap: 10px;
}
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}
.av1 { background: linear-gradient(135deg, #0d9488, #0ea5e9); }
.av2 { background: linear-gradient(135deg, #059669, #14b8a6); }
.av3 { background: linear-gradient(135deg, #d97706, #ea580c); }
.av4 { background: linear-gradient(135deg, #0e7490, #0369a1); }
.av5 { background: linear-gradient(135deg, #0f766e, #22c55e); }
.av6 { background: linear-gradient(135deg, #155e75, #0d9488); }

.testi-name { font-size: 0.85rem; font-weight: 500; color: white; }
.testi-role { font-size: 0.75rem; color: var(--muted); }

.pricing-section { background: var(--surface); }

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing-header .section-sub { margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 30px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }

.price-card.popular {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.06) 0%, var(--card) 60%);
}

.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 6px;
}
.price-currency { font-size: 1.2rem; color: var(--muted); font-weight: 300; }
.price-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.5rem + 3vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1;
}
.price-period { font-size: 0.82rem; color: var(--muted); }

.price-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 32px; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.865rem;
  color: var(--text);
}
.check-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(34,211,165,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  font-size: 0.65rem;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  transition: background 0.2s;
  gap: 12px;
}
.faq-q:hover { background: #1c1c28; }

.faq-chevron {
  width: 18px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  background: var(--card);
  border-top: none;
}
.faq-item.open .faq-a {
  max-height: 420px;
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
}

.workflow-total-val {
  font-family: var(--font-head);
  font-weight: 600;
  color: white;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}

.cta-section {
  padding: clamp(56px, 10vw, 100px) clamp(16px, 5vw, 5%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1rem + 2.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 18px;
  line-height: 1.1;
}

.cta-inner p {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  text-decoration: none;
}

.footer-links {
  display: flex; gap: 28px; list-style: none; flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.825rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(5,5,10,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px);
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: white; }

.modal-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-box h2 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.modal-box p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.lead-form-wrap {
  min-height: 200px;
}

@media (max-width: 900px) {
  nav { height: 60px; padding: 0 4%; }
  .nav-logo { font-size: 1rem; }
  .nav-cta { gap: 8px; }
  .btn { font-size: 0.8125rem; padding: 9px 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 32px 4%; }
  .stat-item { padding: 22px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .workflow-inner { grid-template-columns: 1fr; gap: 48px; }
  .workflow-visual { display: none; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .dashboard-body { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .dash-chart { grid-column: span 2; height: 96px; }
  .nav-links { display: none; }
  .hero-pills { gap: 12px 16px; margin-top: 36px; }
  .hero-pill { font-size: 0.78rem; }
  .dashboard-wrap { margin-top: 48px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item { padding: 18px 12px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .feature-card { padding: 28px 22px; }
  footer { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 400px) {
  .stats-band { grid-template-columns: 1fr; }
  .stat-item:nth-child(odd) { border-right: none; }
  .nav-cta .btn-ghost { padding: 8px 10px; font-size: 0.75rem; }
  .dash-tab { font-size: 0.68rem; padding: 4px 8px; }
  .landing-chat-card {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    max-height: min(68vh, 480px);
  }
}

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

/* Chat in-page → poi WhatsApp */
.landing-chat-root {
  position: fixed;
  inset: 0;
  z-index: 860;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.landing-chat-root--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.landing-chat-root:not(.landing-chat-root--hidden) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.landing-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.landing-chat-card {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 28px));
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(22, 28, 36, 0.98) 0%, rgba(11, 14, 18, 0.99) 100%);
  border: 1px solid rgba(94, 234, 212, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: landingChatIn 0.24s ease;
}
@keyframes landingChatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.landing-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.landing-chat-head strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.landing-chat-head-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 280px;
}
.landing-chat-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.landing-chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.landing-chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-chat-bubble {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 100%;
}
.landing-chat-bubble--bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.landing-chat-bubble--bot p {
  margin: 0;
}
.landing-chat-bubble--user {
  align-self: flex-end;
  max-width: min(92%, 320px);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: var(--text);
}
.landing-chat-bubble--user p {
  margin: 0;
}
.landing-chat-bubble--bot a {
  color: #7dd3c0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.landing-chat-bubble--bot a:hover {
  color: #a7f3d0;
}

.landing-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 16px 12px;
  border-top: 1px solid var(--border);
}
.landing-chat-chip {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #d1fae5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.landing-chat-chip:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(94, 234, 212, 0.45);
}

.landing-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.landing-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.55);
  animation: landingChatDot 1s ease-in-out infinite;
}
.landing-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.landing-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes landingChatDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.landing-chat-composer--bot {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-chat-composer--bot textarea {
  width: 100%;
  resize: none;
  min-height: 56px;
  max-height: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.45;
}
.landing-chat-composer--bot textarea::placeholder {
  color: var(--muted);
}
.landing-chat-composer--bot textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}
.landing-chat-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.landing-chat-composer-actions .btn-primary {
  flex: 1 1 120px;
}
.landing-chat-to-operator {
  flex: 1 1 140px;
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  border: 1px solid var(--border-bright) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 10px 14px !important;
}
.landing-chat-to-operator:hover {
  color: #fff !important;
  border-color: rgba(94, 234, 212, 0.35) !important;
}

.landing-chat-handoff-lead {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
button.landing-chat-back-bot {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px;
}
button.landing-chat-back-bot:hover {
  color: var(--accent);
}

.landing-chat-form {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  max-height: 160px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.45;
}
.landing-chat-form textarea::placeholder {
  color: var(--muted);
}
.landing-chat-form textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}
.landing-chat-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.landing-chat-submit {
  width: 100%;
  justify-content: center;
}
.landing-chat-skip {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  padding: 4px;
}
.landing-chat-skip:hover {
  color: var(--accent);
  text-decoration: underline;
}

body.landing-chat-open {
  overflow: hidden;
}

/* Contatto rapido: FAB vetro / tech — apre pannello chat */
button.landing-wa-fab {
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  text-align: left;
}
.landing-wa-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(24, 30, 38, 0.94) 0%, rgba(12, 15, 19, 0.97) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #ecfdf5 !important;
  font-family: var(--font-body);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 10px 36px rgba(0, 0, 0, 0.55),
    0 0 48px -16px rgba(20, 184, 166, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  max-width: min(calc(100vw - 24px), 300px);
}
.landing-wa-fab:hover {
  color: #f8fffd !important;
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 14px 44px rgba(0, 0, 0, 0.6),
    0 0 56px -12px rgba(45, 212, 191, 0.22);
}
.landing-wa-fab:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.9);
  outline-offset: 3px;
}
.landing-wa-fab-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.22);
  color: #5eead4;
  line-height: 0;
}
.landing-wa-fab-icon svg {
  display: block;
}
.landing-wa-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}
.landing-wa-fab-text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.landing-wa-fab-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.65);
  line-height: 1.2;
}
body.landing-modal-open .landing-wa-fab,
body.landing-chat-open .landing-wa-fab {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 380px) {
  .landing-wa-fab {
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
    gap: 0.5rem;
  }
  .landing-wa-fab-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .landing-wa-fab-icon svg {
    width: 21px;
    height: 21px;
  }
  .landing-wa-fab-text {
    font-size: 0.8125rem;
  }
  .landing-wa-fab-sub {
    font-size: 0.6rem;
  }
}
