/* Landing page. Clean SaaS look: white canvas, bold display type, blue accent. */
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.main-nav { display: flex; gap: 26px; margin-right: auto; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color 0.15s; }
.main-nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-tools .lang-switch, .header-tools [data-lang-switch] { display: inline-flex; }
.burger { display: none; }

/* Language switch on the landing uses the same look as .seg */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lang-switch button, .lang-switch a { display: inline-block; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"], .lang-switch a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11, 18, 34, 0.12); }
/* Without JS the theme toggle has nothing to do; hide the empty button. */
html:not(.js) [data-theme-toggle] { display: none; }

/* Shared section bits */
.section { padding: 110px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .pains h2, .faq-wrap h2 { font-size: clamp(34px, 4.6vw, 56px); }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--text-2); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.02em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.checks svg { flex: none; color: var(--accent); margin-top: 3px; }

/* Content stays visible without JS: only hide .reveal once <html> has the .js class. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--accent-3) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); margin: 22px 0 24px; letter-spacing: -0.035em; }
.lead { font-size: 20px; color: var(--text-2); max-width: 580px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; min-height: 440px; }
.hv-card {
  position: absolute; inset: 30px 30px 40px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.hv-top { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.hv-dots { display: flex; gap: 5px; }
.hv-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.hv-kpi { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hv-kpi span { color: var(--muted); font-size: 14px; }
.hv-kpi b { font: 650 22px/1 var(--font-display); }
.hv-kpi em { font-style: normal; font-size: 13px; font-weight: 600; }
.hv-kpi em.up { color: var(--good-text); }
.hv-kpi em.warn { color: var(--warning-text); }
.hv-spark { width: 100%; height: 90px; margin-top: auto; }
.hv-note {
  position: absolute; display: flex; align-items: center; gap: 10px; max-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.hv-note.n1 { top: 0; right: -6px; }
.hv-note.n2 { bottom: 4px; left: -18px; animation-delay: -2s; }
/* n3 sits over the sparkline, below the KPI rows, so it never hides a value. */
.hv-note.n3 { top: 61%; right: -26px; animation-delay: -4s; }
.hv-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.hv-ic svg { width: 17px; height: 17px; }
.hv-ic.bad { background: var(--critical-soft); color: var(--critical-text); }
.hv-ic.info { background: var(--accent-soft); color: var(--accent); }
.hv-ic.good { background: var(--good-soft); color: var(--good-text); }
@keyframes float { 50% { transform: translateY(-8px); } }

.integrations { position: relative; margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.integrations > span { font-size: 14px; color: var(--muted); }
.integrations ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.integrations li { font: 650 19px/1.2 var(--font-display); color: var(--muted); letter-spacing: -0.01em; }
.integrations li.any { color: var(--accent); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 650 clamp(36px, 4vw, 52px)/1 var(--font-display); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* Pains */
.pains h2 { margin-bottom: 40px; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { display: flex; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-size: 17px; }
.pain-x { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--critical-soft); color: var(--critical-text); }
.pain-answer { margin-top: 28px; display: flex; gap: 12px; align-items: center; font: 600 22px/1.3 var(--font-display); }
.pain-answer span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }

/* Products */
.prod { display: grid; grid-template-columns: 380px 1fr; gap: 24px; }
.prod-tabs { display: flex; flex-direction: column; gap: 6px; }
.prod-tab {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.prod-tab:hover { background: var(--bg-soft); }
.prod-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.prod-tab b { display: block; font-size: 16px; }
.prod-tab small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.prod-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.prod-ic svg { width: 20px; height: 20px; }
.prod-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px;
  border-radius: var(--radius-lg); background: var(--bg-tint); border: 1px solid var(--line); animation: dm-in 0.35s ease;
}
.prod-text h3 { font-size: 32px; }
.prod-tag { margin-top: 10px; font-size: 17px; color: var(--text-2); }
@keyframes dm-in { from { opacity: 0; transform: translateY(8px); } }

.pv { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); }
.pv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pv-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.pv-icon svg { width: 18px; height: 18px; }
.pv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--good-text); }
.pv-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.pv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: dm-in 0.4s ease both; animation-delay: calc(var(--i) * 80ms); }
.pv-a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pv-dot.good { background: var(--good); } .pv-dot.warn { background: var(--warning); } .pv-dot.bad { background: var(--critical); }
.pv-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pv-badge.good { background: var(--good-soft); color: var(--good-text); }
.pv-badge.warn { background: var(--warning-soft); color: var(--warning-text); }
.pv-badge.bad { background: var(--critical-soft); color: var(--critical-text); }
.pv-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 16px; }
.pv-bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--series-1); opacity: 0.85; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-featured {
  grid-column: span 2; grid-row: span 2; padding: 40px; border-radius: var(--radius-lg);
  background: var(--invert-bg); color: var(--invert-text); position: relative; overflow: hidden;
}
.ind-featured::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); pointer-events: none; }
.ind-featured h3 { font-size: 36px; margin: 18px 0 12px; }
.ind-featured p { opacity: 0.8; font-size: 17px; max-width: 560px; }
.ind-featured .checks li { color: inherit; opacity: 0.92; }
.ind-featured .checks svg { color: var(--accent); }
.pill-invert { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; }
.ind-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ind-card h3 { font-size: 20px; margin-bottom: 10px; }
.ind-card p { color: var(--text-2); font-size: 15px; }

/* Demos */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.demo-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.demo-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.demo-ic svg { width: 22px; height: 22px; }
.demo-label { position: absolute; top: 28px; right: 28px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.demo-card h3 { font-size: 20px; margin-top: 8px; }
.demo-card p { color: var(--text-2); font-size: 15px; flex: 1; }
.demo-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { font: 650 15px/1 var(--font-display); color: var(--accent); }
.step h3 { font-size: 20px; margin: 18px 0 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.why-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--accent); margin-bottom: 18px; }
.why h3 { font-size: 20px; margin-bottom: 8px; }
.why p { color: var(--text-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font: 600 19px/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.2s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--text-2); }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 80px 56px; border-radius: 32px; background: var(--accent); color: #fff; text-align: center; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255, 255, 255, 0.28), transparent 60%), radial-gradient(50% 70% at 10% 100%, color-mix(in srgb, var(--accent-3) 70%, transparent), transparent 70%); pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(34px, 5vw, 60px); }
.cta p { position: relative; margin: 18px auto 0; max-width: 560px; font-size: 19px; opacity: 0.9; }
.cta .hero-ctas { position: relative; justify-content: center; }
.btn-light { background: #fff; color: #0b1222; }
.btn-light:hover { background: #eef2ff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.cta-soon { position: relative; margin-top: 16px !important; font-size: 14px !important; opacity: 0.75; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col b { margin-bottom: 4px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .prod { grid-template-columns: 1fr; }
  .prod-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .prod-tab { min-width: 230px; }
  .prod-tab small { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .header-cta { display: none; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .site-header.open .main-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .header-row { gap: 12px; justify-content: space-between; }
  .section { padding: 72px 0; }
  /* Sections without an eyebrow (FAQ) would land their heading flush under the sticky header. */
  .section[id] { scroll-margin-top: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pain-grid { grid-template-columns: 1fr; }
  .demo-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-featured { grid-column: auto; grid-row: auto; padding: 28px; }
  .prod-panel { grid-template-columns: 1fr; padding: 24px; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta { padding: 56px 22px; border-radius: 24px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .lead { font-size: 18px; }
  /* Card starts below the top note so the note never covers the card title. */
  .hero-visual { min-height: 430px; }
  .hv-card { inset: 74px 0 40px 0; }
  .hv-note { max-width: 272px; font-size: 12.5px; }
  .hv-note.n1 { right: 0; }
  .hv-note.n2 { left: 0; }
  .hv-note.n3 { display: none; }
  .steps, .demo-grid, .why-grid { grid-template-columns: 1fr; }
  .header-tools { gap: 6px; }
  .section-head p { font-size: 17px; }
}
