:root {
  --ink: #142235;
  --muted: #5d6f82;
  --line: #d7e4ef;
  --paper: #f7fbff;
  --white: #ffffff;
  --teal: #3b82f6;
  --teal-strong: #2563eb;
  --amber: #f59e0b;
  --graphite: #17263a;
  --soft: #eaf4ff;
  --shadow-soft: 0 18px 48px rgb(27 78 132 / 10%);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgb(13 30 51 / 76%), rgb(13 30 51 / 0%));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(255 255 255 / 82%);
}

.compact {
  justify-self: end;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--graphite);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(11 28 50 / 90%) 0%, rgb(11 28 50 / 72%) 42%, rgb(11 28 50 / 16%) 100%),
    linear-gradient(0deg, rgb(11 28 50 / 54%) 0%, rgb(11 28 50 / 0%) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 80px;
  color: var(--white);
  padding-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 7.8vw, 7.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 16px 32px rgb(59 130 246 / 26%);
}

.primary-button:hover {
  background: var(--teal-strong);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 42%);
  background: rgb(255 255 255 / 12%);
}

.secondary-link {
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 650px;
  margin: 46px 0 0;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 9%);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.9rem;
}

.workflow-band,
.pricing-band,
.faq-band,
.signal-band {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto clamp(44px, 6vw, 72px);
  padding-bottom: clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.product-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin: 0 auto 34px;
  max-width: 1180px;
}

.workflow-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-grid article,
.faq-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.workflow-grid article,
.faq-grid article {
  padding: 28px;
}

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

.step-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--teal);
  background: var(--soft);
  font-size: 0.9rem;
  font-weight: 900;
}

.signal-band {
  background: #13263f;
  color: var(--white);
}

.signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.signal-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 20%);
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  color: rgb(255 255 255 / 76%);
  background: rgb(255 255 255 / 9%);
}

.signal-row strong {
  color: var(--white);
}

.signal-row.strong {
  border-left: 4px solid #60a5fa;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: 128px;
  gap: 10px;
  padding-top: 16px;
}

.chart-bars i {
  display: block;
  min-height: 20px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #bfdbfe, var(--teal));
}

.pricing-heading {
  text-align: center;
  justify-items: center;
}

.pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1240px;
}

.price-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
}

.price-card.highlighted {
  border-color: var(--teal);
  box-shadow: 0 18px 42px rgb(59 130 246 / 18%);
}

.badge {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
}

.price-title {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  display: flex;
  align-items: end;
  gap: 4px;
}

.price strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.check {
  color: var(--teal);
  font-weight: 900;
}

.price-card .primary-button,
.price-card .ghost-action {
  align-self: end;
  width: 100%;
}

.ghost-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.checkout-dialog {
  width: min(520px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
}

.checkout-dialog::backdrop {
  background: rgb(16 35 60 / 62%);
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dialog-top h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.4rem;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

input:focus {
  outline: 3px solid rgb(59 130 246 / 22%);
  border-color: var(--teal);
}

.full {
  width: 100%;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.error {
  color: #a33b22;
}

.result-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgb(11 28 50 / 90%), rgb(11 28 50 / 60%)),
    url("/assets/logscan-hero-danfe.png") center / cover;
}

.result-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 36px;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  color: var(--white);
}

.result-brand {
  color: var(--white);
}

.result-panel {
  display: grid;
  gap: 18px;
}

.result-panel h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.result-panel p {
  max-width: 620px;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 1.08rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.result-actions .ghost-action {
  color: var(--white);
  border-color: rgb(255 255 255 / 32%);
  background: rgb(255 255 255 / 10%);
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .hero-metrics,
  .product-intro,
  .workflow-grid,
  .pricing-grid,
  .faq-grid,
  .signal-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    margin-top: 30px;
  }

  .signal-panel {
    gap: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
