:root {
  color-scheme: light;
  --navy: #081d31;
  --navy-2: #102f49;
  --gold: #d99b2b;
  --gold-soft: #fff4da;
  --bg: #f7f4ee;
  --panel: rgba(255, 255, 255, 0.86);
  --ink: #102033;
  --muted: #657488;
  --line: rgba(16, 32, 51, 0.12);
  --ok: #168256;
  --bad: #cf3f34;
  --shadow: 0 24px 70px rgba(10, 32, 51, 0.11);
  --soft: 0 12px 34px rgba(10, 32, 51, 0.08);
  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0, rgba(217, 155, 43, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 7%, rgba(8, 29, 49, 0.09), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 29, 49, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 29, 49, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 54px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft);
  backdrop-filter: blur(18px);
}

.brand,
.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand b,
.app-logo b {
  color: var(--gold);
}

.brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  position: relative;
  background: white;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.brand-mark::before {
  height: 3px;
  bottom: 7px;
}

.brand-mark::after {
  width: 9px;
  height: 9px;
  left: 10px;
  top: 8px;
  background: transparent;
  border: 2px solid var(--gold);
  border-bottom: 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--navy);
  background: rgba(8, 29, 49, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  box-shadow: 0 16px 34px rgba(8, 29, 49, 0.18);
  text-decoration: none;
  font-weight: 900;
}

.button.compact {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
}

.button.secondary {
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft);
}

.button.gold {
  color: var(--navy);
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 20px;
}

.hero-copy,
.hero-device,
.section,
.feature-grid article,
.workflow-grid article,
.price-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-device:target {
  outline: 3px solid rgba(217, 155, 43, 0.5);
  box-shadow: 0 24px 70px rgba(10, 32, 51, 0.11), 0 0 0 10px rgba(217, 155, 43, 0.14);
}

.hero-copy {
  min-height: 720px;
  padding: 48px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: 90px;
  border: 1px solid rgba(8, 29, 49, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(8, 29, 49, 0.025),
    0 0 0 132px rgba(217, 155, 43, 0.035);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 155, 43, 0.38);
  border-radius: 999px;
  color: #8a5d12;
  background: rgba(255, 244, 218, 0.78);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 28px 0 18px;
  max-width: 780px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 0 0 28px;
  color: #33475d;
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 1;
}

.trust-row span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-weight: 900;
  box-shadow: var(--soft);
}

.hero-device {
  min-height: 720px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  color: white;
  background: linear-gradient(180deg, #061827 0%, var(--navy) 100%);
}

.app-logo {
  color: white;
  margin-bottom: 14px;
}

.app-sidebar a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.76);
  padding: 12px 13px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.app-sidebar a.active,
.app-sidebar a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.app-user {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-size: 13px;
}

.app-user strong {
  display: block;
  color: white;
}

.app-preview {
  padding: 28px;
  background: rgba(255, 255, 255, 0.74);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.preview-head p,
.preview-head h2 {
  margin: 0;
}

.preview-head p {
  color: var(--muted);
  font-weight: 800;
}

.preview-head h2 {
  margin-top: 7px;
  color: var(--navy);
  font-size: 30px;
  letter-spacing: -0.03em;
}

.preview-head a {
  height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: white;
  text-decoration: none;
  font-weight: 900;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi,
.panel,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft);
}

.kpi {
  padding: 17px;
}

.kpi span,
.panel-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kpi strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.kpi em {
  color: var(--ok);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.kpi em.bad {
  color: var(--bad);
}

.preview-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.panel {
  padding: 20px;
}

.panel h3 {
  margin: 8px 0 16px;
  color: var(--navy);
  font-size: 22px;
}

.alert-row {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 29, 49, 0.04);
}

.alert-row b {
  color: var(--navy);
}

.alert-row small {
  color: var(--muted);
}

.alert-row.ok {
  background: rgba(22, 130, 86, 0.08);
}

.chart {
  height: 235px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(8, 29, 49, 0.07) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(217, 155, 43, 0.23), rgba(8, 29, 49, 0.03));
  position: relative;
  overflow: hidden;
}

.chart::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 22px;
  bottom: 58px;
  height: 112px;
  border-bottom: 5px solid var(--navy);
  border-radius: 0 0 35px 24px;
  transform: skewY(-14deg);
}

.chart::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8, 29, 49, 0.10), rgba(217, 155, 43, 0.22));
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.mini-panel {
  padding: 16px;
}

.mini-panel b {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.mini-panel span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 26px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-bottom: 20px;
}

.section-head.split {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  max-width: none;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-head p,
.product-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.workflow-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid article,
.feature-grid article,
.price-card {
  border-radius: var(--radius);
  box-shadow: var(--soft);
}

.workflow-grid article {
  padding: 24px;
}

.workflow-grid span,
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgba(217, 155, 43, 0.22);
  border-radius: 16px;
  color: var(--gold);
  background: rgba(217, 155, 43, 0.10);
  font-weight: 950;
}

.workflow-grid h3,
.feature-grid h3,
.price-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.workflow-grid p,
.feature-grid p,
.price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  padding: 22px;
  min-height: 190px;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #051523);
}

.product-band h2,
.product-band p {
  color: white;
}

.product-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 760px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 26px;
}

.price-card span {
  color: var(--muted);
  font-weight: 900;
}

.price-card h3 {
  margin-top: 10px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.price-card.highlighted {
  border-color: rgba(217, 155, 43, 0.55);
  background: linear-gradient(180deg, #fffaf0, rgba(255, 255, 255, 0.88));
}

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

  .hero-copy,
  .hero-device {
    min-height: auto;
  }

  .trust-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 24px, 1520px);
  }

  .topbar {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-copy {
    padding: 30px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-device,
  .preview-grid,
  .section-head.split,
  .product-band {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .kpi-grid,
  .mini-grid,
  .workflow-grid,
  .feature-grid,
  .pricing-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section,
  .hero-copy,
  .app-preview {
    padding: 22px;
  }

  .button {
    width: 100%;
  }
}
