:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef2f8;
  --text: #0b1f3a;
  --muted: #5a6b85;
  --line: #e6ecf3;
  --brand: #ED1C24;
  --brand-2: #0A1F44;
  --accent: #22c55e;
  --warn: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.14);
  --radius: 18px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--muted); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.text-brand { color: var(--brand); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; box-shadow: var(--shadow-sm);
}
.brand__name { letter-spacing: -.01em; }
.brand__dot { color: var(--brand); }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn--sm { padding: 8px 14px; font-size: .9rem; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 22px rgba(237, 28, 36, .28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(237, 28, 36, .36); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); }

/* Hero */
.hero { padding: 64px 0 90px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.pill {
  display: inline-block; background: var(--surface); color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  margin-bottom: 18px; border: 1px solid var(--line);
}
.lede { font-size: 1.12rem; max-width: 520px; margin: 12px 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.trust { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; flex-wrap: wrap; }
.trust li { font-size: .9rem; color: var(--muted); }
.trust strong { display: block; color: var(--text); font-size: 1.4rem; font-weight: 800; }
.trust span { display: inline-block; }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__blob {
  position: absolute; inset: -10% -20% auto auto; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(237,28,36,.18), transparent 70%);
  filter: blur(8px); z-index: -1;
}

/* Phone frame */
.phone {
  width: 280px; height: 580px; border-radius: 42px;
  background: linear-gradient(180deg, #1a2540, #0a1428);
  padding: 12px; position: relative;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone--hero { transform: rotate(-3deg); }
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #060c1a; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: #fff; position: relative;
}
.phone--float { animation: float 6s ease-in-out infinite; }
.phone--lift { animation-delay: -3s; transform: translateY(-20px); }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
.phone__caption {
  position: absolute; bottom: -34px; left: 0; right: 0;
  text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600;
}

/* App screens */
.screen { padding: 38px 16px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #fafbfd, #fff); }
.screen__top { display: flex; align-items: center; justify-content: space-between; }
.screen__hi { font-weight: 800; font-size: 1.05rem; }
.screen__sub { color: var(--muted); font-size: .8rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ED1C24, #0A1F44);
}
.avatar--sm { width: 30px; height: 30px; }
.screen__search {
  background: var(--surface); border-radius: 12px; padding: 10px 12px;
  font-size: .8rem; color: var(--muted);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: .72rem; padding: 6px 10px; background: var(--surface);
  border-radius: 999px; color: var(--muted); font-weight: 600;
}
.chip--on { background: var(--brand); color: #fff; }

.job {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.job__logo {
  width: 36px; height: 36px; border-radius: 10px; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.job__main { flex: 1; min-width: 0; }
.job__title { font-weight: 700; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job__meta  { font-size: .72rem; color: var(--muted); }
.job__match { font-weight: 800; font-size: .8rem; color: var(--accent); }

/* Profile screen */
.screen--profile { padding-top: 0; }
.profile__cover { height: 80px; background: linear-gradient(135deg, #ED1C24, #0A1F44); margin: -38px -16px 0; }
.profile__avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: -36px auto 8px;
  background: linear-gradient(135deg, #fff, #eaeaea);
  border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.profile__name { font-weight: 800; text-align: center; }
.profile__title { color: var(--muted); font-size: .82rem; text-align: center; margin-bottom: 12px; }
.profile__stats { display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.profile__stats > div { text-align: center; }
.profile__stats strong { display: block; font-size: 1rem; }
.profile__stats span { font-size: .7rem; color: var(--muted); }
.profile__skill {
  display: flex; justify-content: space-between;
  padding: 8px 12px; background: var(--surface); border-radius: 10px;
  font-size: .8rem; font-weight: 600;
}
.profile__skill em { color: var(--brand); font-style: normal; font-size: .72rem; }

/* Chat screen */
.screen--chat { padding-top: 38px; }
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.chat__name { font-weight: 700; font-size: .85rem; }
.chat__status { font-size: .7rem; color: var(--accent); }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: .8rem; line-height: 1.35; }
.bubble--in { background: var(--surface); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--out { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__input {
  margin-top: auto; background: var(--surface); border-radius: 999px;
  padding: 10px 14px; font-size: .8rem; color: var(--muted);
}

/* Analytics screen */
.screen--analytics .mini-stats { display: flex; justify-content: space-between; padding: 8px 0; }
.mini-stats > div { text-align: center; flex: 1; }
.mini-stats strong { display: block; font-size: 1rem; }
.mini-stats span { font-size: .7rem; color: var(--muted); }
.legend { display: flex; gap: 14px; justify-content: center; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }

/* Sections */
.section { padding: 90px 0; }
.section--surface { background: var(--surface); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block; color: var(--brand); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  margin-bottom: 12px;
}

/* Features */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature {
  background: #fff; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, white);
  color: var(--c); display: grid; place-items: center; margin-bottom: 16px;
}
.feature p { font-size: .92rem; margin: 0; }

/* Counters */
.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 50px;
}
.counter {
  text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.counter__value { font-size: 2.2rem; font-weight: 800; color: var(--brand-2); letter-spacing: -.02em; }
.counter__label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* Charts grid */
.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.chart-card { position: relative; }
.chart-card canvas { width: 100% !important; height: 260px !important; display: block; }
.chart-card--wide { grid-column: 1 / -1; }
.chart-card--wide canvas { height: 320px !important; }
.screen--analytics canvas { width: 100% !important; height: 110px !important; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.badge {
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
}
.badge--up { background: rgba(34,197,94,.12); color: #15803d; }

/* Mockups */
.mockups {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  justify-items: center; padding-bottom: 40px;
}
.mockups .phone { width: 230px; height: 480px; }

/* Install */
.install__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.callout {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 12px; margin: 18px 0 24px;
}
.callout strong { color: var(--text); }
.callout span { color: var(--muted); font-size: .9rem; }

.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li {
  display: flex; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps__num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800;
}
.steps h4 { margin: 0 0 4px; }
.steps p { margin: 0; font-size: .92rem; }
.steps code { background: var(--surface); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px; transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--brand); font-size: 1.4rem; font-weight: 600;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }

/* Footer */
.footer { background: var(--brand-2); color: #cdd6e8; padding: 50px 0 30px; }
.footer__inner { display: grid; gap: 20px; text-align: center; }
.footer .brand { justify-content: center; color: #fff; }
.footer .brand__name { color: #fff; }
.footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer__links a { color: #cdd6e8; font-size: .92rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .85rem; color: #8a96b3; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .install__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__blob { display: none; }
  .features, .counters { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .mockups { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
  .nav__links { display: none; }
}
@media (max-width: 540px) {
  .features, .counters, .mockups { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 60px; }
  .trust { gap: 18px; }
}
