/* ============================================
   Handl® — Design System
   ============================================ */

:root {
  --ink: #0b0f2a;
  --ink-2: #111638;
  --ink-3: #1a2050;
  --text: #1c2033;
  --text-muted: #5a6072;
  --text-light: rgba(255, 255, 255, 0.72);
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --violet: #8b5cf6;
  --green: #10b981;
  --green-wa: #25d366;
  --red: #ef4444;
  --amber: #f59e0b;
  --bg: #ffffff;
  --bg-tint: #f5f6fb;
  --border: #e6e8f0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 15, 42, 0.06), 0 4px 12px rgba(11, 15, 42, 0.06);
  --shadow-md: 0 4px 8px rgba(11, 15, 42, 0.06), 0 16px 40px rgba(11, 15, 42, 0.12);
  --grad: linear-gradient(100deg, #4f46e5, #8b5cf6 55%, #06b6d4);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 860px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-red { color: #dc2626; background: rgba(239, 68, 68, 0.07); border-color: rgba(239, 68, 68, 0.2); }
.eyebrow-green { color: #059669; background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.22); }

.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-sub { font-size: 1.12rem; color: var(--text-muted); margin-top: 16px; }
.section-cta { text-align: center; margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(120deg, #4f46e5, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.section-dark .btn-outline, .hero .btn-outline {
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--primary-dark);
  background: #fff;
}

.btn-ghost { background: transparent; color: var(--ink); font-weight: 600; }
.btn-ghost:hover { color: var(--primary); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-lg { padding: 16px 32px; font-size: 1.06rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sub { font-size: 0.74rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(11, 15, 42, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand sup { font-size: 0.55em; -webkit-text-fill-color: var(--primary); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(800px 500px at 5% 10%, rgba(79, 70, 229, 0.1), transparent 60%),
    radial-gradient(600px 400px at 60% 110%, rgba(6, 182, 212, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 24px auto 32px;
}
.hero-sub strong { color: var(--ink); }

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

.hero-trust {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero metrics */
.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.metric-value {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.metric-unit { font-size: 1.2rem; }
.metric-label { font-weight: 700; color: var(--ink); margin-top: 6px; }
.metric-desc { font-size: 0.86rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Industries strip ---------- */
.industries-strip {
  background: var(--ink);
  padding: 26px 0;
}
.strip-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.industries-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.94rem;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }

.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(6, 182, 212, 0.1), transparent 60%),
    var(--ink);
  color: var(--text-light);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: var(--text-light); }

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}

.pain-list { list-style: none; display: grid; gap: 14px; }
.pain-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pain-x {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.problem-quote {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-md);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--violet);
  margin-bottom: 18px;
}
.problem-quote blockquote {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.55;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.quote-author strong { display: block; color: #fff; }
.quote-author span { font-size: 0.85rem; }

.avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.quote-stat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.94rem;
}
.quote-stat strong { color: #fbbf24; font-size: 1.2rem; }

/* ---------- Demo flow (WhatsApp -> ERP) ---------- */
.demo-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 72px;
}

.demo-label {
  text-align: center;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Phone */
.phone-frame {
  background: #0d1418;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1f2c33;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
}
.phone-header strong { display: block; line-height: 1.2; }
.wa-status { font-size: 0.74rem; color: #9ad6b1; }
.wa-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}
.phone-body {
  padding: 18px 14px 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.05), transparent 40%),
    #0d1418;
  min-height: 280px;
}
.wa-bubble {
  position: relative;
  background: #202c33;
  color: #e9edef;
  border-radius: 4px 14px 14px 14px;
  padding: 12px 14px 22px;
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 100%;
}
.wa-time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 0.66rem;
  color: rgba(233, 237, 239, 0.5);
}

/* AI node */
.demo-ai { text-align: center; }
.ai-node {
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6d5cf0, #4338ca);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 0 60px rgba(109, 92, 240, 0.55);
}
.ai-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(139, 92, 246, 0.5);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-caption {
  margin-top: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 150px;
  margin-left: auto;
  margin-right: auto;
}

/* ERP card */
.erp-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.erp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}
.erp-title { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.erp-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}
.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--text);
}
.erp-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.erp-table td { padding: 9px 18px; border-bottom: 1px solid #f1f2f7; }
.erp-table td:last-child { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.74rem; color: var(--primary-dark); }
.erp-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #fbfbfe;
}

/* Steps */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--text-light); }

/* ---------- Platform ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.platform-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.35);
}
.card-num {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #d3d6e4;
}
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.platform-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.platform-card > p { font-size: 0.94rem; color: var(--text-muted); margin-bottom: 16px; }
.platform-card ul { list-style: none; display: grid; gap: 8px; }
.platform-card li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.platform-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Integrations ---------- */
.integrations-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.int-title { font-size: 1.15rem; }
.int-sub { font-size: 0.94rem; color: var(--text-muted); margin: 6px 0 20px; }
.logo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.logo-chips span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.logo-chips span:hover { border-color: rgba(79, 70, 229, 0.4); background: rgba(79, 70, 229, 0.05); }

.int-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.int-features div {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.12);
}
.int-features strong { display: block; color: var(--ink); margin-bottom: 4px; }
.int-features span { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- ROI Calculator ---------- */
.roi-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.roi-inputs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: grid;
  gap: 28px;
  align-content: start;
}
.roi-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}
.roi-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--violet);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--violet);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.roi-results {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.roi-headline { text-align: center; margin-bottom: 24px; }
.roi-headline > span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.roi-big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #059669, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin: 4px 0;
}
.roi-mxn { font-size: 0.84rem; color: var(--text-muted); }

.roi-breakdown {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.roi-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.roi-line span { color: var(--text-muted); }
.roi-line strong { color: var(--ink); font-size: 1.05rem; }

.roi-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.roi-note strong { color: var(--ink); }
.roi-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.15), rgba(79, 70, 229, 0.5), rgba(79, 70, 229, 0.15));
}
.timeline-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 26px 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.timeline-marker {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
  white-space: nowrap;
}
.timeline-item h3 { margin-bottom: 10px; }
.timeline-item p { font-size: 0.93rem; color: var(--text-muted); }

/* ---------- Why Handl ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 1.9rem; margin-bottom: 14px; }
.why-card h3 { margin-bottom: 10px; font-size: 1.14rem; }
.why-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Comparison */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.compare-col { border-radius: var(--radius); padding: 32px 30px; }
.compare-col h4 { font-size: 1.05rem; margin-bottom: 18px; }
.compare-col ul { list-style: none; display: grid; gap: 12px; font-size: 0.94rem; }
.compare-col li { padding-left: 26px; position: relative; }

.compare-them {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.compare-them li::before { content: "✕"; position: absolute; left: 0; color: #cbd0dd; font-weight: 700; }

.compare-us {
  background: var(--ink);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}
.compare-us h4 { color: #fff; }
.compare-us li { color: rgba(255, 255, 255, 0.88); }
.compare-us li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Results + Testimonials ---------- */
.results-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.result-stat {
  text-align: center;
  padding: 34px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.result-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 10px;
}
.result-stat p { font-size: 0.92rem; color: var(--text-muted); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: #f59e0b; letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  flex-grow: 1;
}
.testimonial blockquote strong { color: var(--ink); }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.testimonial figcaption strong { display: block; color: var(--ink); font-size: 0.95rem; }
.testimonial figcaption span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.section-cta-final {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(700px 500px at 90% 100%, rgba(6, 182, 212, 0.2), transparent 55%),
    linear-gradient(135deg, #3730a3, #4f46e5);
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-copy h2 { color: #fff; margin-bottom: 18px; }
.cta-copy > p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }
.cta-copy strong { color: #fff; }

.cta-checks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
  font-weight: 500;
}
.cta-small { margin-top: 14px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); }

.cta-agenda {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(8px);
}
.cta-agenda h3 { color: #fff; margin-bottom: 22px; font-size: 1.1rem; }
.cta-agenda ol { list-style: none; display: grid; gap: 16px; }
.cta-agenda li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.cta-agenda li span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { color: var(--primary-dark); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.faq-body strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-light);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand { font-size: 1.5rem; }
.footer-brand p { font-size: 0.9rem; margin: 16px 0; max-width: 300px; }
.footer-mail { color: #a5b4fc; text-decoration: none; font-size: 0.92rem; }
.footer-mail:hover { text-decoration: underline; }

.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h6 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}
.footer-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(11, 15, 42, 0.12);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ai-ring, .pulse-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-flow { grid-template-columns: 1fr; }
  .demo-ai { padding: 10px 0; }
  .ai-caption { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .problem-grid,
  .roi-wrap,
  .cta-grid,
  .why-grid,
  .compare-wrap { grid-template-columns: 1fr; }
  .steps-row,
  .results-row,
  .testimonials-grid,
  .timeline,
  .int-features { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline { gap: 40px; }
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 48px; }
  .sticky-cta-mobile { display: block; }
  body { padding-bottom: 76px; }
  .hide-mobile { display: none; }
}

@media (max-width: 560px) {
  .btn { white-space: normal; }
  .hero-metrics { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .badge-pill { font-size: 0.76rem; text-align: left; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 0.86rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .erp-table th:last-child, .erp-table td:last-child { display: none; }
}
