/* ============ TOKENS & RESET ============ */
:root {
  --green: #1AAB8A;
  --green-dark: #148a6f;
  --dark: #0D1F1A;
  --mid: #0F3028;
  --off: #F5F7F6;
  --gray: #6B7280;
  --ink: #111827;
  --footer: #080F0D;
  --line: 26, 171, 138;            /* rgb of green for route lines */
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(13, 31, 26, 0.12);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--green); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(26,171,138,.28); }
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 10px 26px rgba(26,171,138,.36); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 31, 26, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { display: inline-flex; border-radius: 8px; overflow: hidden; }
.brand__logo svg { border-radius: 8px; }
.brand__name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { color: #fff; }

/* ============ HERO ============ */
.hero { background: var(--dark); color: #fff; min-height: 600px; display: flex; align-items: center; padding: 90px 0 52px; overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.18fr; gap: 40px; align-items: center; }
/* Content aligns to the top so the badge (top:0) sits beside the headline's first line */
.hero__content { align-self: start; }
/* Badge floats to the page's right edge — same right margin as the nav "Request demo" button */
.hero__badge { position: absolute; top: 6px; right: 0; margin: 0; z-index: 4; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(26,171,138,.12); border: 1px solid rgba(26,171,138,.3);
  color: #7fe8cf; font-size: 13.5px; font-weight: 500; padding: 7px 15px; border-radius: 999px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(26,171,138,.25); }
.hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; color: #fff; }
.hero__subtitle { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.72); max-width: 520px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 28px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__value { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 26px; color: #fff; }
.stat__label { font-size: 13.5px; color: rgba(255,255,255,.55); }
.hero__visual { position: relative; height: 500px; margin-right: -40px; align-self: center; }
.hero__canvas {
  width: 100%; height: 100%;
  background: transparent;
  border: none; border-radius: 0;
  /* Diffuse the canvas edges into the dark hero background */
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 52% 46%, #000 52%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 52% 46%, #000 52%, rgba(0,0,0,0) 100%);
}

/* ============ SECTION HEADS ============ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.section-title {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em;
  /* Double-layer depth: a green ghost of the text offset behind the glyphs */
  text-shadow: 3px 4px 0 rgba(26, 171, 138, 0.15);
}
.section-lead { color: var(--gray); font-size: 17px; margin-top: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }

/* ============ PROBLEM ============ */
.problem { background: var(--off); padding: 96px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.pain-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 4px 20px rgba(13,31,26,.05); border: 1px solid rgba(13,31,26,.05); }
.pain-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #fdecec; color: #e5484d; margin-bottom: 16px; }
.pain-card h3 { font-size: 18px; margin-bottom: 8px; }
.pain-card p { color: var(--gray); font-size: 14.5px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--dark); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.compare__col { padding: 36px 34px; }
.compare__col--before { background: rgba(255,255,255,.02); }
.compare__col--after { background: var(--mid); }
.compare__tag { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.compare__tag--before { background: rgba(229,72,77,.15); color: #ff9ea1; }
.compare__tag--after { background: rgba(26,171,138,.18); color: #7fe8cf; }
.compare__col ul { list-style: none; }
.compare__col li { color: rgba(255,255,255,.82); font-size: 15px; padding: 9px 0 9px 28px; position: relative; }
.compare__col--before li::before { content: '\00d7'; position: absolute; left: 0; color: #e5484d; font-weight: 700; }
.compare__col--after li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ============ FEATURES ============ */
.features { padding: 96px 0; }
.tabs { display: flex; gap: 8px; justify-content: center; background: var(--off); padding: 6px; border-radius: 999px; width: fit-content; margin: 0 auto 44px; }
.tab { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px; padding: 10px 26px; border: none; background: transparent; color: var(--gray); border-radius: 999px; cursor: pointer; transition: all .2s; }
.tab.is-active { background: var(--dark); color: #fff; }
.tab-panels { position: relative; }
.tab-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tab-panel.is-active { display: grid; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 14px; }
.feature-item__check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(26,171,138,.12); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.feature-item h4 { font-size: 18px; margin-bottom: 3px; }
.feature-item p { color: var(--gray); font-size: 14.5px; }

/* mockup */
.mockup { background: var(--dark); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.06); }
.mockup__bar { display: flex; gap: 7px; padding: 4px 6px 14px; }
.mockup__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mockup__body { background: var(--mid); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mockup--phone { max-width: 300px; margin: 0 auto; }
.mk-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mk-kpi { background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px; text-align: center; }
.mk-kpi__v { display: block; font-family: 'Syne',sans-serif; font-weight: 800; font-size: 20px; color: #fff; }
.mk-kpi__l { font-size: 11.5px; color: rgba(255,255,255,.5); }
.mk-chart { display: flex; align-items: flex-end; gap: 8px; height: 88px; padding: 6px 0; }
.mk-chart span { flex: 1; background: linear-gradient(180deg, var(--green), rgba(26,171,138,.35)); border-radius: 5px 5px 0 0; }
.mk-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.mk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mk-amt { margin-left: auto; color: #7fe8cf; font-weight: 600; }
.mk-route { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.03); padding: 10px 12px; border-radius: 9px; }
.mk-route--sm { font-size: 13px; }
.mk-status { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.mk-status--enroute { background: rgba(26,171,138,.18); color: #7fe8cf; }
.mk-status--pending { background: rgba(245,171,53,.18); color: #f5c15b; }
.mk-status--done { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.mk-calc { font-size: 13.5px; color: rgba(255,255,255,.7); background: rgba(26,171,138,.1); border-radius: 9px; padding: 10px 12px; }
.mk-calc strong { color: #7fe8cf; }
.mk-duty { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; font-weight: 500; }
.mk-duty__toggle { width: 34px; height: 19px; border-radius: 999px; background: var(--green); position: relative; }
.mk-duty__toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.mk-hos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-hos div { background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px; text-align: center; }
.mk-hos__v { display: block; font-family: 'Syne',sans-serif; font-weight: 800; font-size: 19px; color: #fff; }
.mk-hos__l { font-size: 11px; color: rgba(255,255,255,.5); }
.mk-btn { margin-top: 4px; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 12px; font-family: 'Inter',sans-serif; font-weight: 500; font-size: 13.5px; cursor: default; }

/* ============ CALCULATOR ============ */
.calculator { background: var(--off); padding: 96px 0; }
.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid #e2e6e4; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,171,138,.15); }
.calc__submit { grid-column: 1 / -1; margin-top: 4px; }
.calc__results { background: var(--dark); border-radius: 16px; padding: 26px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; color: rgba(255,255,255,.75); }
.result-row strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-row--total { border-bottom: none; margin-top: 8px; padding-top: 18px; }
.result-row--total span { font-family: 'Syne',sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
.result-row--total strong { font-family: 'Syne',sans-serif; font-weight: 800; font-size: 26px; color: var(--green); }
.result-row--total strong.is-negative { color: #ff6b6e; }
.result-note { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 14px; }

/* ============ HOW ============ */
.how { padding: 96px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; margin-top: 20px; }
.steps__line { position: absolute; top: 27px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, rgba(26,171,138,.2), var(--green), rgba(26,171,138,.2)); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step__num { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 16px; background: var(--green); color: #fff; font-family: 'Syne',sans-serif; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(26,171,138,.3); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 15px; max-width: 300px; margin: 0 auto; }

/* ============ CONTACT ============ */
.contact { background: var(--dark); color: #fff; padding: 96px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start; }
.contact__intro .section-title { color: #fff; text-align: left; }
.contact__intro .section-lead { color: rgba(255,255,255,.7); }
.contact__intro .eyebrow { text-align: left; }
.contact__points { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.contact__points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 15px; }
.contact__card { background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field--full { margin-bottom: 18px; }
.req { color: #e5484d; }
.opt { color: var(--gray); font-weight: 400; }
.error { font-size: 12.5px; color: #e5484d; min-height: 15px; }
.field input.is-invalid, .field select.is-invalid { border-color: #e5484d; }
.form-error { font-size: 13.5px; color: #e5484d; text-align: center; margin-top: 12px; font-weight: 500; }
.form-disclaimer { font-size: 12.5px; color: var(--gray); text-align: center; margin-top: 14px; }
.btn:disabled { opacity: .6; cursor: default; box-shadow: none; }
.contact-success { text-align: center; padding: 30px 20px; }
.contact-success__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(26,171,138,.12); color: var(--green); display: flex; align-items: center; justify-content: center; }
.contact-success h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.contact-success p { color: var(--gray); max-width: 360px; margin: 0 auto; }

/* ============ FOOTER ============ */
.footer { background: var(--footer); color: #fff; padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { color: rgba(255,255,255,.5); font-size: 14px; }
.footer__link { color: rgba(255,255,255,.7); font-size: 14px; transition: color .2s; }
.footer__link:hover { color: #fff; }

/* ============ IMMERSIVE / INTERACTION ============ */
/* Scroll reveal — set by JS, animated in when intersecting */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Interactive cards: base transitions + 3D context.
   JS-tilted elements get their transform set inline; box-shadow stays in CSS. */
.pain-card, .feature-item, .mockup, .step {
  transition: transform .3s ease, box-shadow .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Elevation on hover (transform for .step comes from CSS; others from JS tilt) */
.step:hover { transform: translateY(-8px) scale(1.02); }
.step:hover .step__num { box-shadow: 0 16px 34px rgba(26,171,138,.4); }
.pain-card:hover { box-shadow: 0 22px 46px rgba(13,31,26,.16); }
.feature-item:hover { box-shadow: 0 16px 34px rgba(13,31,26,.10); border-radius: 12px; }
.mockup:hover { box-shadow: 0 30px 70px rgba(0,0,0,.4); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { align-self: auto; }
  /* Badge returns to normal flow above the headline on small screens */
  .hero__badge { position: static; order: -1; margin: 0 0 4px; align-self: start; }
  .hero__visual { height: 340px; order: -1; }
  .hero { min-height: auto; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel.is-active { grid-template-columns: 1fr; }
  .compare, .calc, .contact__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps__line { display: none; }
}
@media (max-width: 560px) {
  .pain-grid { grid-template-columns: 1fr; }
  .calc__form, .form-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
  .footer__inner { justify-content: center; text-align: center; }
}
