:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-soft: #e8f1fc;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --font: "Manrope", sans-serif;
  --max: 1120px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem);
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo span { font-weight: 800; }
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.45rem 0.95rem !important;
  border-radius: 980px;
  background: var(--ink) !important;
  color: #fff !important;
}

.hero {
  min-height: min(92vh, 980px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.2rem, 4vw, 2.5rem) 3rem;
}
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.lead {
  margin: 1.2rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  font-weight: 500;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 980px;
  font-weight: 650;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-stage { display: flex; justify-content: center; }
.device-stack {
  position: relative;
  width: min(100%, 460px);
  height: 420px;
}
.phone {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 168px;
  height: 340px;
  border-radius: 28px;
  background: #111;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.phone-notch {
  width: 64px;
  height: 10px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #222;
}
.phone-screen {
  height: calc(100% - 18px);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc, #e8eef6);
  padding: 12px;
  overflow: hidden;
}
.ui-bar { height: 10px; width: 40%; border-radius: 6px; background: #cbd5e1; margin-bottom: 12px; }
.ui-card { border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.ui-card-lg { height: 78px; margin-bottom: 10px; }
.ui-row { height: 28px; border-radius: 10px; background: rgba(255,255,255,0.9); margin-bottom: 8px; }
.ui-row.short { width: 70%; }
.ui-map {
  height: 110px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 60% 40%, rgba(0,113,227,0.35), transparent 40%),
    linear-gradient(135deg, #dbeafe, #93c5fd 50%, #64748b);
}

.laptop {
  position: absolute;
  right: 0;
  top: 24px;
  width: 340px;
  animation: floatY 7s ease-in-out infinite reverse;
}
.laptop-screen {
  height: 210px;
  border-radius: 14px 14px 0 0;
  background: #0f172a;
  padding: 10px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  box-shadow: var(--shadow);
}
.desk-sidebar { border-radius: 8px; background: #1e293b; }
.desk-main {
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.desk-top { height: 14px; width: 45%; border-radius: 6px; background: #cbd5e1; }
.desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.desk-grid span { height: 36px; border-radius: 8px; background: #e2e8f0; }
.desk-chart {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,113,227,0.15)),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(148,163,184,0.25) 18px, rgba(148,163,184,0.25) 19px);
}
.laptop-base {
  height: 12px;
  border-radius: 0 0 10px 10px;
  background: #cbd5e1;
  margin: 0 16px;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.marquee-wrap {
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 1rem 0;
}
.marquee {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.2rem, 4vw, 2.5rem);
}
.section-intro {
  max-width: 36rem;
  margin-bottom: 2.4rem;
}
.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.1;
}
.section-intro p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  min-height: 180px;
}
.service-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.service-panel p {
  margin: 0;
  color: var(--muted);
}

.product-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-feature.reverse { grid-template-columns: 1.1fr 0.9fr; }
.product-feature.reverse .product-copy { order: 2; }
.product-feature.reverse .product-visual { order: 1; }
.product-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.product-copy p:not(.eyebrow) {
  margin: 0.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}
.text-link {
  color: var(--blue);
  font-weight: 700;
}
.text-link::after { content: " →"; }

.product-visual {
  overflow: hidden;
  border-radius: 24px;
  min-width: 0;
}
.scroll-ui {
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2f7, #dbe4f0);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-ui.desk {
  height: 280px;
  overflow: hidden;
}
.scroll-ui-track {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  width: max-content;
  animation: uiSlide 14s ease-in-out infinite;
  will-change: transform;
}
.scroll-ui:hover .scroll-ui-track { animation-play-state: paused; }

@keyframes uiSlide {
  0%, 12% { transform: translateX(0); }
  38%, 50% { transform: translateX(-280px); }
  76%, 88% { transform: translateX(-560px); }
  100% { transform: translateX(0); }
}
.scroll-ui.desk .scroll-ui-track {
  animation-name: uiSlideDesk;
}
@keyframes uiSlideDesk {
  0%, 20% { transform: translateX(0); }
  50%, 70% { transform: translateX(-420px); }
  100% { transform: translateX(0); }
}

.fake-app {
  width: 180px;
  height: 320px;
  border-radius: 28px;
  background: #0b1220;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
  overflow: hidden;
}
.fa-header { height: 12px; width: 42%; border-radius: 6px; background: #334155; margin-bottom: 14px; }
.fa-header.light { background: #94a3b8; }
.fa-hero {
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(145deg, #60a5fa, #1d4ed8);
  margin-bottom: 12px;
}
.fa-tiles { display: grid; gap: 8px; }
.fa-tiles i { display: block; height: 36px; border-radius: 12px; background: #1e293b; }
.screen-map { background: #111827; }
.fa-map {
  height: 210px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 40% 55%, rgba(56,189,248,0.5), transparent 35%),
    linear-gradient(160deg, #1e293b, #0f172a);
}
.fa-sheet {
  margin-top: -40px;
  height: 120px;
  border-radius: 18px 18px 12px 12px;
  background: #f8fafc;
}
.screen-list { background: #f8fafc; }
.fa-lines { display: grid; gap: 10px; }
.fa-lines i { display: block; height: 44px; border-radius: 12px; background: #e2e8f0; }

/* Contained desktop preview — sidebar never escapes the frame */
.desk-frame {
  width: 400px;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  contain: paint;
}
.desk-side {
  width: 58px;
  flex: 0 0 58px;
  background: #0f172a;
}
.desk-body {
  flex: 1 1 auto;
  min-width: 0;
  background: #f8fafc;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.desk-frame.alt .desk-body { background: #eef6ff; }
.fd-top { height: 14px; width: 36%; border-radius: 6px; background: #cbd5e1; flex: 0 0 auto; }
.fd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 0 0 auto; }
.fd-kpis i { height: 42px; border-radius: 10px; background: #e2e8f0; display: block; }
.fd-table { flex: 1 1 auto; min-height: 0; border-radius: 10px; background: linear-gradient(#fff, #eef2ff); border: 1px solid #e2e8f0; }
.fd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1 1 auto; min-height: 0; }
.fd-split i { display: block; border-radius: 10px; background: #e2e8f0; min-height: 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.steps strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.steps span { color: var(--muted); }

.cta {
  padding: 0 clamp(1.2rem, 4vw, 2.5rem) clamp(4rem, 8vh, 6rem);
  max-width: var(--max);
  margin: 0 auto;
}
.cta-inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at top, rgba(0,113,227,0.12), transparent 55%),
    #fff;
  border: 1px solid var(--line);
}
.cta-inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.cta-inner > p {
  margin: 0.8rem auto 0;
  max-width: 32rem;
  color: var(--muted);
}
.cta-inner .hero-cta { justify-content: center; }
.cta-meta {
  margin-top: 1.4rem !important;
  font-size: 0.95rem;
  color: var(--muted);
}
.cta-meta a:hover { color: var(--blue); }

.contact-form {
  margin: 1.8rem auto 0;
  max-width: 40rem;
  text-align: left;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-field span em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.contact-field-full { margin-top: 0.9rem; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfd;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.78rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.45;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-note {
  margin: 1rem 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--muted);
  max-width: none !important;
}
.contact-note a { color: var(--blue); }
.contact-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}
.contact-actions .btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.contact-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-status.is-ok { color: #1a7f37; }
.contact-status.is-err { color: #b42318; }

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

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem clamp(1.2rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1.1rem; }
.footer-links a:hover { color: var(--ink); }
.footer p { margin: 0; width: 100%; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .device-stack { height: 360px; margin: 0 auto; }
  .service-rail { grid-template-columns: repeat(2, 1fr); }
  .product-feature,
  .product-feature.reverse { grid-template-columns: 1fr; }
  .product-feature.reverse .product-copy,
  .product-feature.reverse .product-visual { order: initial; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .phone { width: 140px; height: 280px; }
  .laptop { width: 260px; }
  .laptop-screen { height: 160px; }
  .service-rail { grid-template-columns: 1fr; }
}
