:root {
  color-scheme: light;
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dfe7f3;
  --line-strong: #c9d6ea;
  --text: #071329;
  --muted: #60708a;
  --brand: #2563eb;
  --brand-strong: #1749bd;
  --brand-soft: #eaf2ff;
  --green: #16a34a;
  --green-soft: #ecfdf3;
  --amber: #d97706;
  --amber-soft: #fff7ed;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --purple: #7c3aed;
  --purple-soft: #f3e8ff;
  --shadow: 0 22px 60px rgba(23, 49, 88, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 32rem),
    radial-gradient(circle at 84% 6%, rgba(20, 184, 166, 0.11), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

a { color: inherit; text-decoration: none; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 243, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 15px 32px rgba(37, 99, 235, 0.25);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 9px 12px;
  border-radius: 11px;
}

.nav a:hover,
.nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav .app-link {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(223, 231, 243, 0.85);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(246, 249, 255, 0.94) 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 72px;
  width: min(760px, 55vw);
  min-width: 560px;
  z-index: 1;
}

.browser-frame {
  border: 1px solid rgba(201, 214, 234, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 90px rgba(23, 49, 88, 0.16);
  overflow: hidden;
}

.browser-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.dot { width: 11px; height: 11px; border-radius: 999px; }
.dot.red { background: #ef4444; }
.dot.amber { background: #f59e0b; }
.dot.green { background: #22c55e; }

.mock-app {
  display: grid;
  grid-template-columns: 154px 1fr;
  min-height: 440px;
}

.mock-side {
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  background: #f8fbff;
}

.mock-side b {
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
}

.mock-nav {
  display: grid;
  gap: 10px;
}

.mock-nav span,
.mock-pill,
.mini-pill {
  border-radius: 11px;
  background: #eef5ff;
  color: #31507e;
  font-size: 12px;
  font-weight: 800;
}

.mock-nav span {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.mock-nav span.active {
  background: var(--brand);
  color: #fff;
}

.mock-main {
  padding: 22px;
  background: #fff;
}

.mock-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mock-search {
  width: 48%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.mock-pills {
  display: flex;
  gap: 8px;
}

.mock-pill {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 11px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mock-kpi {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
}

.mock-kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mock-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 28px;
  line-height: 1;
}

.mock-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.mock-chart,
.mock-focus {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.chart-lines {
  height: 128px;
  margin-top: 10px;
  background:
    linear-gradient(180deg, transparent 24%, #edf2f8 24% 25%, transparent 25% 49%, #edf2f8 49% 50%, transparent 50% 74%, #edf2f8 74% 75%, transparent 75%),
    linear-gradient(135deg, transparent 10%, rgba(37, 99, 235, 0.18) 10% 12%, transparent 12% 32%, rgba(22, 163, 74, 0.2) 32% 34%, transparent 34% 58%, rgba(217, 119, 6, 0.2) 58% 60%, transparent 60%);
  border-radius: 12px;
}

.focus-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
  font-size: 12px;
  color: #31415c;
}

.focus-row:last-child { border-bottom: 0; }

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 670px;
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: #50617d;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-weight: 900;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.button:hover { border-color: var(--brand); color: var(--brand); }
.button.primary:hover { color: #fff; background: var(--brand-strong); }

section.block {
  padding: 42px 0;
}

.page-hero {
  padding: 62px 0 34px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 64px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.section-head p,
.page-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(26, 51, 94, 0.07);
}

.card {
  min-height: 188px;
  padding: 22px;
}

.card.compact { min-height: auto; }

.card h3,
.panel h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.card p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.tag.green { background: var(--green-soft); color: var(--green); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.purple { background: var(--purple-soft); color: var(--purple); }

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
}

.step h3 {
  margin: 14px 0 7px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  padding: 22px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: stretch;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: #334155;
  font-weight: 700;
}

.table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.table tr:last-child td { border-bottom: 0; }

.table th {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice {
  border: 1px solid #bae6fd;
  border-radius: 18px;
  background: #f0f9ff;
  padding: 20px;
  color: #164e63;
}

.footer {
  margin-top: 34px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 64%, rgba(246, 249, 255, 0.94) 100%);
  }

  .hero-bg {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 720px);
    min-width: 0;
    margin: -18px auto 40px;
  }

  .hero-copy {
    padding: 52px 0 28px;
  }

  .grid-4,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .section-head,
  .split {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .nav {
    justify-content: flex-start;
  }

  .mock-app {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }

  .mock-kpis,
  .mock-content,
  .grid-4,
  .grid-3,
  .grid-2,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-bg {
    display: none;
  }
}
