:root {
  --blue-900: #0f2747;
  --blue-700: #184fbf;
  --blue-600: #1e5eff;
  --blue-100: #eaf2ff;
  --teal-700: #0f766e;
  --ink: #162033;
  --muted: #536172;
  --line: #d7e0ea;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --warning: #b42318;
  --success: #0f766e;
  --shadow: 0 18px 42px rgba(15, 39, 71, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-mark img {
  width: 34px;
  height: 34px;
}

.site-nav,
.header-actions,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a,
.text-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--blue-700);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--blue-600);
}

.button.primary:hover {
  background: var(--blue-700);
}

.button.secondary {
  color: var(--blue-900);
  background: #ffffff;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--blue-600);
}

.button.full {
  width: 100%;
}

.section-inner {
  width: min(calc(100% - 36px), 1160px);
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 42%, rgba(247, 251, 255, 0.34) 100%),
    url("/assets/hero-analizatab-intelligence.png") center right / cover no-repeat;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 86px 0 92px;
}

.hero-inner h1 {
  margin: 0;
  color: var(--blue-900);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 9.8rem);
  line-height: 0.92;
  font-weight: 700;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.data-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.data-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.44;
}

.data-row {
  position: absolute;
  right: 5vw;
  width: min(560px, 52vw);
  height: 46px;
  border: 1px solid rgba(24, 79, 191, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.data-row::before,
.data-row::after {
  content: "";
  position: absolute;
  top: 16px;
  height: 12px;
  border-radius: 6px;
  background: var(--blue-100);
}

.data-row::before {
  left: 18px;
  width: 34%;
}

.data-row::after {
  right: 18px;
  width: 22%;
  background: rgba(15, 118, 110, 0.14);
}

.data-row:nth-child(1) {
  top: 15%;
}

.data-row:nth-child(2) {
  top: 27%;
  right: 10vw;
}

.data-row:nth-child(3) {
  top: 39%;
}

.data-row:nth-child(4) {
  top: 51%;
  right: 13vw;
}

.data-row:nth-child(5) {
  top: 63%;
  right: 7vw;
}

.data-row.strong {
  border-color: rgba(30, 94, 255, 0.32);
}

.data-row.medium {
  width: min(480px, 48vw);
}

.data-row.short {
  width: min(420px, 42vw);
}

.signal-line {
  position: absolute;
  right: 0;
  height: 2px;
  background: var(--blue-600);
  opacity: 0.5;
}

.signal-line.one {
  top: 34%;
  width: 42vw;
}

.signal-line.two {
  top: 58%;
  width: 34vw;
  background: var(--teal-700);
}

.content-band {
  padding: 78px 0;
}

.content-band.soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

h2 {
  margin: 0;
  max-width: 760px;
  color: var(--blue-900);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
}

h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.08rem;
}

.rich-copy p,
.feature-card p,
.service-list p,
.three-column p,
.contact-inner p,
.form-intro p,
.form-note,
.status-message {
  color: var(--muted);
  line-height: 1.65;
}

.rich-copy p:first-child {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature-card,
.service-list article,
.three-column article,
.form-panel,
.login-panel,
.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-card,
.service-list article,
.three-column article {
  padding: 22px;
}

.feature-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--teal-700);
  font-weight: 800;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.service-list article {
  border: 0;
  border-radius: 0;
}

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

.contact-band {
  background: var(--blue-900);
  color: #ffffff;
}

.contact-band h2,
.contact-band .eyebrow,
.contact-band p {
  color: #ffffff;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-inner p {
  max-width: 660px;
  opacity: 0.82;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface-soft);
}

.form-layout,
.login-layout,
.status-layout {
  width: min(calc(100% - 36px), 1060px);
  margin: 0 auto;
  padding: 52px 0 72px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 38px;
  align-items: start;
}

.form-intro h1,
.login-panel h1,
.status-panel h1 {
  margin: 0;
  color: var(--blue-900);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.form-intro p {
  margin-top: 18px;
}

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

.trust-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--blue-600);
  background: #ffffff;
  color: var(--ink);
}

.form-panel,
.login-panel,
.status-panel {
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.field-hint.success {
  color: var(--success);
}

.field-hint.error {
  color: var(--warning);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(30, 94, 255, 0.16);
  border-color: var(--blue-600);
}

.form-footer {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.status-message {
  display: none;
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.status-message.visible {
  display: block;
}

.status-message.success {
  color: var(--success);
  border-color: rgba(15, 118, 110, 0.26);
  background: rgba(15, 118, 110, 0.08);
}

.status-message.error {
  color: var(--warning);
  border-color: rgba(180, 35, 24, 0.26);
  background: rgba(180, 35, 24, 0.08);
}

.login-layout,
.status-layout {
  max-width: 560px;
}

.login-panel .field-grid {
  grid-template-columns: 1fr;
}

.hidden {
  display: none;
}

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

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section {
    min-height: auto;
  }

  .data-row {
    right: -90px;
    width: 430px;
    opacity: 0.52;
  }

  .two-column,
  .form-layout,
  .feature-grid,
  .service-list,
  .three-column {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    display: block;
  }

  .contact-actions {
    margin-top: 24px;
  }
}

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

  .brand-mark {
    max-width: 100%;
  }

  .site-nav {
    gap: 16px;
    margin-inline: -14px;
    padding: 0 14px 6px;
  }

  .section-inner,
  .form-layout,
  .login-layout,
  .status-layout {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-copy,
  h2,
  .rich-copy,
  .feature-card,
  .service-list,
  .three-column,
  .form-panel,
  .status-panel {
    max-width: 100%;
  }

  .header-actions,
  .hero-actions,
  .contact-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-inner {
    padding: 56px 0 64px;
  }

  .hero-inner h1 {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 3.7rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
  }

  .hero-subtitle {
    font-size: clamp(1.32rem, 7vw, 1.75rem);
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.62;
  }

  .content-band {
    padding: 56px 0;
  }

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

@media (max-width: 380px) {
  .hero-inner h1 {
    font-size: clamp(2.65rem, 14vw, 3.05rem);
  }

  .site-nav a,
  .text-link {
    font-size: 0.9rem;
  }
}
