:root {
  --ink: #08141f;
  --avorix-bg: #080d18;
  --avorix-surface: #0f1728;
  --avorix-accent: #78f0be;
  --avorix-blue: #7694ff;
  --navy: #0d2233;
  --teal: #11b99a;
  --teal-dark: #0e806f;
  --mint: #dff8f1;
  --paper: #fbfcfb;
  --line: #d9e3e2;
  --muted: #62707b;
  --amber: #f1a33b;
  --danger: #e4544f;
  --shadow: 0 24px 70px rgba(8, 20, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 20, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 20, 31, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  color: #f4f7fb;
  background: rgba(8, 13, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
}

html[dir="rtl"] body {
  text-align: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--avorix-accent);
  transform: rotate(45deg);
}

.brand-mark i,
.brand-mark b {
  position: absolute;
  display: block;
  background: var(--avorix-accent);
}

.brand-mark i {
  top: 8px;
  left: 18px;
  width: 2px;
  height: 23px;
}

.brand-mark b {
  top: 18px;
  left: 8px;
  width: 23px;
  height: 2px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  color: #9da9bb;
  font-size: 10px;
  margin-top: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #9da9bb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-utilities {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-link:hover,
.portal-link:focus-visible {
  border-color: var(--avorix-accent);
}

.admin-link {
  color: #07110d;
  background: var(--avorix-accent);
  border-color: var(--avorix-accent);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9da9bb;
  font-size: 12px;
  font-weight: 800;
}

.language-switcher select {
  min-height: 38px;
  max-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  color: #f4f7fb;
  background: var(--avorix-surface);
  font: inherit;
}

.nav a:hover {
  color: #f4f7fb;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #f4f7fb;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - 78px);
  padding: clamp(56px, 7vw, 98px) clamp(20px, 4vw, 64px) clamp(38px, 5vw, 72px);
  background:
    radial-gradient(circle at 4% 18%, rgba(17, 185, 154, 0.14), transparent 26%),
    linear-gradient(125deg, #ffffff 0%, #f6fbf9 46%, #e8f1f0 100%);
}

.hero.compact-hero {
  min-height: min(760px, calc(100vh - 78px));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.hero-lead {
  max-width: 660px;
  color: #334552;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(8, 20, 31, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

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

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics dt {
  font-size: 24px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(8px);
}

.hero-media img {
  width: 100%;
  height: auto;
}

section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 64px);
}

.section-heading {
  max-width: 780px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.problem-band {
  background: var(--ink);
  color: white;
}

.problem-band .eyebrow {
  color: #7ee6d1;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.problem-grid article,
.plan-card {
  border-radius: 8px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
}

.problem-grid article {
  min-height: 210px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.problem-grid p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.status-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--teal);
}

.status-dot.warning {
  background: var(--amber);
}

.status-dot.danger {
  background: var(--danger);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}

.checklist-panel {
  border-radius: 8px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(8, 20, 31, 0.08);
}

.checklist-panel ul,
.plan-card ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist-panel li,
.plan-card li {
  position: relative;
  padding-left: 28px;
  color: #344653;
  line-height: 1.5;
}

.checklist-panel li::before,
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.workflow {
  background: #edf6f3;
}

.steps,
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.steps article {
  padding-top: 18px;
  border-top: 2px solid var(--teal);
}

.steps span {
  color: var(--teal-dark);
  font-weight: 800;
}

.steps p,
.plan-card p,
.report-list p,
.health-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.pricing {
  background: white;
}

.plan-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
}

.plan-card.featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: translateY(-16px);
}

.plan-card.featured p,
.plan-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.plan-name {
  margin-bottom: 20px;
  color: var(--teal-dark);
  font-weight: 800;
}

.plan-card.featured .plan-name {
  color: #7ee6d1;
}

.plan-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 18px;
}

.plan-card h3 span {
  font-size: 34px;
}

.plan-card h3 small {
  font-size: 16px;
  font-weight: 700;
}

.plan-card ul {
  margin-top: auto;
}

.report-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  background: #f6f8f6;
}

.report-preview {
  border-radius: 8px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.report-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.report-top strong {
  color: var(--teal-dark);
}

.report-bars {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.report-bars span {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) var(--value), #e7eeee var(--value));
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-list p {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #f7faf9;
}

.faq-section {
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #f7faf9;
}

.faq-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.health-check {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
  color: white;
  background: var(--navy);
}

.mvp-section {
  background: white;
}

.mvp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.mvp-grid article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #f7faf9;
}

.mvp-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-weight: 800;
}

.mvp-grid p,
.starter-products p {
  color: var(--muted);
  line-height: 1.6;
}

.starter-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.starter-products article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: 0 16px 40px rgba(8, 20, 31, 0.07);
}

.starter-products h3 {
  font-size: 28px;
}

.internal-card {
  background: var(--ink) !important;
  color: white;
}

.internal-card p {
  color: rgba(255, 255, 255, 0.72);
}

.internal-card .plan-name {
  color: #7ee6d1;
}

.health-check .eyebrow {
  color: #7ee6d1;
}

.health-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.check-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.check-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.check-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.health-result {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-summary div,
.result-check,
.result-recommendations {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.result-summary div {
  padding: 14px;
}

.result-summary span,
.result-check span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.result-checks,
.result-recommendations ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.result-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.result-check::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.result-check.warn::before {
  background: var(--amber);
}

.result-check.fail::before {
  background: var(--danger);
}

.result-check strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.result-recommendations {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.result-recommendations > strong {
  font-size: 14px;
}

.result-recommendations li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #f4f7fb;
  background: var(--avorix-bg);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  color: #9da9bb;
  margin-top: 5px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  color: var(--avorix-accent);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .hero,
  .split-section,
  .report-section,
  .health-check {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .problem-grid,
  .steps,
  .plans,
  .mvp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--avorix-surface);
    box-shadow: 0 20px 40px rgba(8, 20, 31, 0.12);
  }

  .header-utilities {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .language-switcher {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher select {
    max-width: 220px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .hero-metrics,
  .problem-grid,
  .faq-grid,
  .steps,
  .plans,
  .mvp-grid,
  .starter-products {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer,
  .report-top,
  .result-check {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-check strong {
    text-align: left;
  }
}
