:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-strong: #ececec;
  --text: #101010;
  --muted: #606060;
  --soft: #8a8a8a;
  --border: #dedede;
  --accent: #ff1f1f;
  --accent-dark: #c90000;
  --blue: #1469b8;
  --green: #16824a;
  --shadow: 0 24px 70px rgba(16, 16, 16, 0.14);
  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: var(--bg);
  color: var(--text);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(222, 222, 222, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(255, 31, 31, 0.24);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  font-size: 0.94rem;
  color: var(--muted);
}

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

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  min-height: calc(100vh - 64px);
  padding: clamp(44px, 7vw, 92px) clamp(20px, 6vw, 84px) 42px;
  background:
    linear-gradient(135deg, rgba(255, 31, 31, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.hero__content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.hero__copy,
.report-copy p,
.pro-section p,
.workflow-step p,
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero__copy {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 850;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 31, 31, 0.24);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 42px;
}

.hero__stats div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.hero__stats strong,
.hero__stats span {
  display: block;
}

.hero__stats strong {
  font-size: 1.15rem;
}

.hero__stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.phone-shell {
  justify-self: center;
  width: min(100%, 410px);
}

.phone {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 18.6;
  padding: 18px;
  border: 10px solid #151515;
  border-radius: 34px;
  background: #101010;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 20px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
  z-index: 2;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  padding: 2px 10px 14px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.scan-preview {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  height: calc(100% - 34px);
  color: #ffffff;
}

.scan-preview__top,
.quality-panel,
.report-preview__header,
.score-row,
.report-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill,
.risk-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 130, 74, 0.14);
  color: #36c976;
  font-size: 0.75rem;
  font-weight: 850;
}

.camera-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 280px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(145deg, #2d3338, #121212);
}

.camera-frame p {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 0.9rem;
}

.car-shape {
  position: relative;
  width: 76%;
  height: 96px;
  border-radius: 26px 42px 18px 18px;
  background: linear-gradient(135deg, #d9dfe5, #818a94);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.36);
}

.car-shape::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 22%;
  width: 45%;
  height: 58px;
  border-radius: 42px 42px 8px 8px;
  background: linear-gradient(135deg, #cbd5dd, #697580);
}

.car-shape::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 21px;
  width: 42px;
  height: 11px;
  border-radius: 999px;
  background: #ffdf7a;
}

.car-shape span {
  position: absolute;
  bottom: -16px;
  width: 42px;
  height: 42px;
  border: 8px solid #191919;
  border-radius: 50%;
  background: #4a5158;
}

.car-shape span:first-child {
  left: 28px;
}

.car-shape span:last-child {
  right: 32px;
}

.focus-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.9);
}

.focus-corner--tl {
  top: 20px;
  left: 20px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.focus-corner--tr {
  top: 20px;
  right: 20px;
  border-top: 3px solid;
  border-right: 3px solid;
}

.focus-corner--bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 3px solid;
  border-left: 3px solid;
}

.focus-corner--br {
  right: 20px;
  bottom: 20px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.quality-panel {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.quality-panel span,
.quality-panel strong {
  display: block;
}

.quality-panel span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.quality-panel strong {
  margin-top: 2px;
}

.quality-bars {
  display: grid;
  gap: 5px;
  width: 112px;
}

.quality-bars span {
  position: relative;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.quality-bars span::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #36c976;
}

.scan-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

.section--light {
  background: var(--surface);
}

.section__heading {
  max-width: 900px;
  margin-bottom: 34px;
}

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

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.report-section,
.pro-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(30px, 6vw, 86px);
}

.report-copy {
  max-width: 740px;
}

.report-copy p,
.pro-section p {
  max-width: 620px;
  font-size: 1.08rem;
}

.report-preview,
.pro-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.report-preview__header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.report-preview__header span,
.report-list span,
.score-row span,
.pro-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.report-preview__header strong {
  display: block;
  margin-top: 4px;
  font-size: 1.3rem;
}

.risk-badge {
  background: rgba(255, 31, 31, 0.1);
  color: var(--accent-dark);
}

.score-row {
  margin: 20px 0;
}

.score-row div {
  flex: 1;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
}

.score-row strong,
.score-row span {
  display: block;
}

.score-row strong {
  font-size: 1.8rem;
}

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

.report-list div {
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.report-list p {
  max-width: 260px;
  margin: 0;
  color: var(--text);
  text-align: right;
}

.workflow-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-step {
  padding: 10px 0;
}

.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 900;
}

.pro-section {
  background: #111111;
  color: #ffffff;
}

.pro-section .eyebrow,
.pro-section p {
  color: #ff6b6b;
}

.pro-section p {
  color: #c7c7c7;
}

.pro-card {
  background: #1f1f1f;
  border-color: #383838;
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.pro-card ul {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.pro-card li {
  position: relative;
  padding-left: 28px;
}

.pro-card li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 6vw, 84px);
  background: var(--surface);
}

.contact-section h2 {
  max-width: 820px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 84px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

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

  .nav {
    display: none;
  }

  .hero,
  .report-section,
  .pro-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .phone-shell {
    width: min(100%, 360px);
  }

  .feature-grid,
  .workflow-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand span {
    max-width: 126px;
    font-size: 0.92rem;
    line-height: 1.05;
  }

  .hero {
    padding: 34px 16px 28px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .hero__stats,
  .score-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .phone {
    border-width: 8px;
    border-radius: 30px;
    padding: 14px;
  }

  .camera-frame {
    min-height: 230px;
  }

  .report-list div {
    display: block;
  }

  .report-list p {
    max-width: none;
    margin-top: 6px;
    text-align: left;
  }

  .site-footer {
    display: grid;
    padding-right: 16px;
    padding-left: 16px;
  }
}
