:root {
  --bg: #f7fbfc;
  --paper: #ffffff;
  --ink: #07141f;
  --muted: #586a78;
  --line: #d8e6ec;
  --line-strong: #bed2dc;
  --teal: #0f9f95;
  --teal-deep: #08726d;
  --blue: #1769e8;
  --blue-soft: #e8f1ff;
  --amber: #f1a208;
  --amber-soft: #fff4d8;
  --shadow: 0 18px 50px rgba(10, 35, 55, 0.12);
  --radius: 8px;
  --shell: min(1180px, calc(100vw - 40px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body.is-loading {
  cursor: progress;
}

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

button,
input {
  font: inherit;
}

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

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 230, 236, 0.84);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--shell);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.header-actions,
.nav-links,
.lang-toggle,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  font-size: 18px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-links {
  gap: 28px;
  color: #314553;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--blue);
}

.header-actions {
  gap: 12px;
}

.lang-toggle {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fcfd;
}

.lang-button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536977;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.lang-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.header-cta {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 720;
}

.hero {
  min-height: min(700px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.85fr);
  align-items: center;
  gap: 44px;
}

.hero-copy h1,
.section-heading h2,
.analysis-band h2,
.cta-band h2 {
  margin: 0;
  color: var(--ink);
  line-height: 0.98;
  font-weight: 820;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(48px, 6.4vw, 82px);
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 34px;
  color: #334b5a;
  font-size: 20px;
  line-height: 1.55;
}

.analyzer-form {
  max-width: 760px;
}

.analyzer-form label {
  display: block;
  margin-bottom: 10px;
  color: #263a47;
  font-size: 14px;
  font-weight: 780;
}

.search-shell {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(17, 68, 88, 0.12);
}

.search-shell:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 159, 149, 0.14), 0 16px 40px rgba(17, 68, 88, 0.12);
}

.input-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
}

.input-icon svg,
.button svg,
.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 560;
}

.search-shell input::placeholder {
  color: #8da0ab;
}

.form-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.button {
  min-height: 48px;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 780;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 20, 31, 0.18);
}

.button.primary:hover {
  background: #0d2433;
}

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

.button.ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.text-link {
  color: var(--blue);
  font-size: 15px;
  font-weight: 760;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 620px);
  border-radius: var(--radius);
  filter: drop-shadow(0 28px 46px rgba(5, 33, 55, 0.14));
}

.signal-panel {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: min(330px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(190, 210, 220, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #455b68;
  font-size: 13px;
  font-weight: 760;
}

.panel-topline strong {
  color: var(--teal-deep);
  font-size: 28px;
  line-height: 1;
}

.mini-bars {
  margin: 14px 0 12px;
  display: grid;
  gap: 8px;
}

.mini-bars span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) var(--w), #e2edf2 0);
}

.signal-panel p {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
}

.analysis-band {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef7fa;
}

.result-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(260px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 28px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.analysis-band h2,
.section-heading h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.result-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.score-ring {
  --score: 82;
  width: 100px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--score) * 1%), #d6e7ed 0);
  color: var(--ink);
  font-weight: 830;
  font-size: 30px;
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #ffffff;
}

.score-ring span {
  position: relative;
}

.score-ring.small {
  width: 82px;
  font-size: 24px;
}

.result-status {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.muted {
  margin: 0;
  color: var(--muted);
}

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

.category-item {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 1fr) 42px;
  align-items: center;
  gap: 12px;
  color: #344a58;
  font-size: 13px;
  font-weight: 720;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe9ee;
}

.bar-fill {
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.services {
  background: #ffffff;
}

.services-grid,
.readiness-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: start;
}

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

.section-heading p:not(.section-label) {
  margin: 24px 0 0;
  color: #415767;
  font-size: 18px;
}

.section-heading .button {
  margin-top: 28px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fcfd;
  color: var(--teal-deep);
}

.service-row h3,
.timeline h3,
.recommendation-box h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.service-row p,
.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.readiness {
  background:
    linear-gradient(90deg, #f3fbfd 0%, #ffffff 58%);
}

.report-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 26px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.report-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.report-header strong {
  overflow-wrap: anywhere;
  font-size: 22px;
}

.report-categories {
  margin: 24px 0;
}

.recommendation-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.recommendation-box ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #415767;
}

.recommendation-box li + li {
  margin-top: 8px;
}

.process {
  background: #ffffff;
}

.section-heading.compact {
  max-width: 780px;
  margin-bottom: 42px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  width: 36px;
  height: 36px;
  margin-bottom: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 820;
}

.timeline article:nth-child(4) span {
  background: var(--amber-soft);
  color: #a46600;
}

.cta-band {
  padding: 64px 0;
  background: #07141f;
  color: #ffffff;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.cta-band h2 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.cta-band p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #bad0dc;
  font-size: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.cta-band .button.primary {
  background: #ffffff;
  color: #07141f;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid #102838;
  background: #07141f;
  color: #bad0dc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.footer-inner span:first-child {
  color: #ffffff;
  font-weight: 820;
}

.is-error .score-ring,
.score-ring.is-error {
  background: conic-gradient(#d64545 calc(var(--score) * 1%), #f0d6d6 0);
}

.loading-line {
  position: relative;
  overflow: hidden;
}

.loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-grid,
  .services-grid,
  .readiness-grid,
  .result-shell,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

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

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .timeline article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: min(100vw - 28px, 1180px);
  }

  .site-header {
    position: static;
  }

  .section-pad {
    padding: 64px 0;
  }

  .header-actions {
    width: auto;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 18px;
  }

  .search-shell {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .search-shell .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-visual {
    min-height: 340px;
  }

  .signal-panel {
    position: static;
    width: 100%;
    margin-top: -18px;
  }

  .category-item {
    grid-template-columns: minmax(100px, 0.85fr) minmax(90px, 1fr) 38px;
  }

  .service-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .service-icon {
    width: 46px;
    height: 46px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article:last-child {
    border-bottom: 0;
  }

  .timeline span {
    margin-bottom: 34px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
