:root {
  --bg-dark: #081120;
  --bg-dark-soft: #0e1b31;
  --bg-header: #ffffff;
  --bg-light: #f6f9ff;
  --bg-light-alt: #edf3fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.08);
  --text-main: #182332;
  --text-soft: #5e6e81;
  --text-light: #d9e4f4;
  --text-light-soft: #9eb0c8;
  --text-header-soft: #6c7b8d;
  --blue: #0b3b82;
  --blue-2: #1e63bd;
  --blue-3: #365edc;
  --wa: #25d366;
  --wa-dark: #1fb85a;
  --line: rgba(90, 115, 146, 0.16);
  --line-dark: rgba(174, 196, 222, 0.16);
  --shadow: 0 18px 48px rgba(10, 24, 46, 0.12);
  --shadow-soft: 0 10px 28px rgba(10, 24, 46, 0.08);
  --gradient-hero: linear-gradient(180deg, #07101e 0%, #0b1730 58%, #13264b 100%);
  --gradient-primary: linear-gradient(135deg, #0b3b82 0%, #1e63bd 60%, #365edc 100%);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90, 115, 146, 0.12);
  box-shadow: 0 10px 28px rgba(10, 24, 46, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

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

.brand__logo {
  width: 200px;
  max-width: min(200px, 42vw);
  height: auto;
  flex: 0 0 auto;
}

.brand__text {
  display: grid;
  gap: 2px;
  color: var(--text-main);
}

.brand__text strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.brand__text span {
  color: var(--text-header-soft);
  font-size: 0.85rem;
}

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

.topbar__phone {
  color: var(--text-main);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 14px 36px rgba(30, 99, 189, 0.34);
}

.btn--secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(120, 145, 178, 0.22);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(173, 194, 220, 0.2);
}

.btn--wa {
  color: #fff;
  background: linear-gradient(135deg, var(--wa) 0%, #2ee071 100%);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.28);
}

.btn--wa:hover {
  background: linear-gradient(135deg, var(--wa-dark) 0%, #27ce65 100%);
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.34);
}

.btn--large {
  min-height: 60px;
  padding: 0 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: calc(100vh - 78px);
}

.hero__bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
}

.hero__bg--one {
  inset: 50px auto auto -140px;
  width: 420px;
  height: 420px;
  background: rgba(54, 94, 220, 0.22);
}

.hero__bg--two {
  inset: 120px -120px auto auto;
  width: 520px;
  height: 520px;
  background: rgba(30, 99, 189, 0.22);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 42px;
  min-height: calc(100vh - 78px);
  align-items: center;
  padding: 72px 0 72px;
}

.hero__content {
  padding-top: 0px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #8fb7ff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
}

.text-accent {
  display: block;
  color: #cfe1ff;
}

.hero__lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text-light);
  font-size: 1.18rem;
}

.hero__points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 760px;
}

.hero__points li {
  position: relative;
  padding: 14px 18px 14px 48px;
  border: 1px solid rgba(179, 201, 230, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.hero__points li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7db3ff 0%, #cce1ff 100%);
  box-shadow: 0 0 0 6px rgba(125, 179, 255, 0.12);
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__panel {
  display: grid;
  gap: 18px;
  align-self: center;
}

.hero-card {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card--image {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 213, 238, 0.12);
}

.hero-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card--stats {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
}

.hero-card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card--stats strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.section {
  padding: 88px 0;
}

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

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

.section--dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading--light h2,
.section-heading--light p {
  color: #fff;
}

.section-heading h2,
.cta h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.section-heading p,
.cta__content p {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.section-heading--light p {
  color: var(--text-light-soft);
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.system-card,
.side-card,
.result-card,
.qr-card {
  border-radius: var(--radius-md);
}

.info-card {
  padding: 28px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.info-card__num {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-2);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.info-card h3,
.system-card h3,
.defect-item h3,
.side-card h3,
.result-card h3,
.qr-card h3 {
  margin: 0 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.24rem;
  line-height: 1.24;
}

.info-card p,
.system-card p,
.defect-item p,
.side-card p,
.result-card p,
.qr-card p {
  margin: 0;
  color: var(--text-soft);
}

.system-card {
  min-height: 240px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: #fff;
}

.system-card p {
  color: var(--text-light-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.defect-list {
  display: grid;
  gap: 18px;
}

.defect-item {
  padding: 24px 24px 24px 28px;
  background: var(--surface);
  border-left: 4px solid var(--blue-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-soft);
}

.split__side {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 28px;
  background: var(--bg-light);
  border: 1px solid var(--line);
}

.side-card--accent {
  background: linear-gradient(135deg, #0b3b82 0%, #1b4f9c 100%);
  border-color: transparent;
}

.side-card--accent h3,
.side-card--accent p {
  color: #fff;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

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

.result-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.form-section {
  background:
    radial-gradient(circle at top right, rgba(54, 94, 220, 0.08), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #edf4fd 100%);
}

.form-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 620px);
  gap: 28px;
  align-items: start;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.section-heading--compact {
  max-width: 680px;
  margin-bottom: 0;
  align-self: start;
}

.section-heading--compact p {
  margin-top: 10px;
}

.form-shell {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(90, 115, 146, 0.12);
  box-shadow: var(--shadow-soft);
}

.form-shell--compact {
  display: contents;
}

.custom-upload {
  padding: 0;
  border: 0;
  background: transparent;
  grid-column: 2;
  align-self: start;
  max-width: 620px;
}

.custom-upload__intro,
.custom-upload__agreement {
  display: none;
}

.custom-upload__form {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.upload-dropzone {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 24px;
  border: 1.5px dashed rgba(30, 99, 189, 0.35);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover,
.upload-dropzone.is-filled {
  border-color: rgba(30, 99, 189, 0.7);
  background: #f8fbff;
}

.upload-dropzone.is-filled {
  border-color: rgba(28, 124, 69, 0.42);
  background: linear-gradient(180deg, #fdfefd 0%, #eef9f1 100%);
  box-shadow: 0 14px 32px rgba(28, 124, 69, 0.14);
}

.upload-dropzone.is-dragover {
  transform: translateY(-1px);
}

.upload-dropzone__input {
  display: none;
}

.upload-dropzone__title {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.upload-dropzone__meta {
  display: block;
  color: var(--text-soft);
}

.upload-dropzone__file {
  overflow: hidden;
  color: var(--blue-2);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-upload__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.custom-upload__text {
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(90, 115, 146, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.custom-upload__text:focus {
  outline: none;
  border-color: rgba(30, 99, 189, 0.48);
  box-shadow: 0 0 0 4px rgba(30, 99, 189, 0.1);
}

.custom-upload__status {
  min-height: 24px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.custom-upload__result {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(90, 115, 146, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.custom-upload__result[hidden] {
  display: none !important;
}

.custom-upload__loading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  color: var(--blue-2);
  font-size: 0.95rem;
}

.custom-upload__loading[hidden] {
  display: none !important;
}

.custom-upload__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(30, 99, 189, 0.18);
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.custom-upload__download[hidden] {
  display: none;
}

.custom-upload__download {
  white-space: nowrap;
}

.custom-upload__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-share-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-share-menu[hidden] {
  display: none !important;
}

.custom-share-menu__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(90, 115, 146, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.custom-share-menu__item:hover {
  border-color: rgba(30, 99, 189, 0.35);
  color: var(--blue-2);
}

.custom-upload__status[data-state="success"] {
  color: #1c7c45;
}

.custom-upload__status[data-state="error"] {
  color: #b23434;
}

.custom-upload__status[data-state="pending"] {
  color: var(--blue-2);
}

.custom-upload__actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  filter: grayscale(0.08);
}

.custom-upload__actions .btn[disabled]:hover {
  transform: none;
}

.custom-upload.is-loading .custom-upload__actions .btn:not(.custom-upload__download) {
  opacity: 0.72;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #09111f 0%, #0c1730 100%);
}

.cta__bg {
  position: absolute;
  inset: auto -100px -180px auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 94, 220, 0.2) 0%, rgba(54, 94, 220, 0) 70%);
  filter: blur(20px);
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
}

.cta__content {
  color: #fff;
}

.cta__content p {
  color: var(--text-light);
}

.cta__panel {
  justify-self: end;
}

.qr-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  max-width: 340px;
}

.qr-card img {
  width: 100%;
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .hero__grid,
  .split,
  .cta__grid,
  .card-grid--four,
  .form-section .container,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .custom-upload {
    grid-column: auto;
    max-width: none;
  }

  .hero__panel,
  .cta__panel {
    justify-self: stretch;
  }

  .qr-card {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .card-grid--three,
  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero__points li::before{
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
  }
  .system-card{
    min-height: unset;
  }
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
  }

  .brand {
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .brand__logo {
    width: 150px;
    max-width: 48vw;
  }

  .brand__text {
    display: none;
  }

  .topbar__actions {
    display: contents;
  }

  .topbar__phone {
    display: none;
  }

  .btn--wa {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-height: 46px;
    padding: 0 18px;
  }

  .btn,
  .btn--ghost,
  .btn--primary,
  .btn--secondary {
    width: 100%;
  }

  .hero__grid {
    min-height: auto;
    padding: 34px 0 64px;
    gap: 28px;
  }

  .hero__content {
    padding-top: 8px;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .form-section .container {
    gap: 18px;
  }

  .section-heading--compact h2 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .section-heading--compact p {
    max-width: 320px;
  }

  .custom-upload__form {
    gap: 12px;
  }

  .upload-dropzone {
    min-height: 132px;
    padding: 20px;
    border-radius: 22px;
  }

  .upload-dropzone__title {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .upload-dropzone__meta,
  .upload-dropzone__file {
    line-height: 1.4;
    word-break: break-word;
  }

  .custom-upload__text,
  .custom-upload__actions .btn {
    min-height: 52px;
  }

  .custom-upload__result-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .custom-share-menu {
    grid-template-columns: 1fr;
  }

  .hero__points li,
  .info-card,
  .system-card,
  .side-card,
  .result-card,
  .qr-card,
  .form-shell {
    padding: 22px;
  }

  .section {
    padding: 68px 0;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
  }

  .custom-upload__actions {
    grid-template-columns: 1fr;
  }
}
