:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #172033;
  background: #f7f9fd;

  --background: #f7f9fd;
  --surface: #ffffff;
  --surface-soft: #f0f3fa;
  --text: #172033;
  --muted: #68758c;
  --border: #e1e7f0;
  --accent: #675cff;
  --accent-hover: #584de8;
  --accent-soft: #efedff;
  --success: #17865f;
  --danger: #ce4058;
  --shadow: 0 24px 70px rgba(37, 48, 81, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(225, 231, 240, 0.84);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

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

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      #7d73ff,
      #5c50ec
    );
  color: white;
  font-size: 22px;
  font-weight: 850;
  box-shadow: 0 9px 24px rgba(103, 92, 255, 0.24);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: #4c5870;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

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

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 9px 17px;
  text-decoration: none;
  font-weight: 720;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border 0.18s ease;
}

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

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

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

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

.button-secondary:hover {
  border-color: #cdd5e4;
  background: #fafbfe;
}

.button-large {
  min-height: 50px;
  padding: 12px 21px;
}

.hero {
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 10%,
      rgba(103, 92, 255, 0.13),
      transparent 36rem
    ),
    linear-gradient(
      180deg,
      #ffffff,
      #f7f9fd
    );
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.93fr)
    minmax(500px, 1.07fr);
  gap: 66px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 650px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 31px;
}

.hero-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-trust span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  background: white;
  color: #59667d;
  font-size: 12px;
}

.hero-preview {
  padding: 22px;
  border: 1px solid rgba(218, 224, 238, 0.9);
  border-radius: 25px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(0.5deg);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.preview-toolbar strong,
.preview-toolbar span {
  display: block;
}

.preview-label {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.preview-status {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eaf8f2;
  color: var(--success);
  font-size: 11px;
  font-weight: 750;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 17px 0;
}

.preview-kpis article {
  padding: 15px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.preview-kpis span,
.preview-kpis strong,
.preview-kpis small {
  display: block;
}

.preview-kpis span {
  color: var(--muted);
  font-size: 11px;
}

.preview-kpis strong {
  margin-top: 8px;
  font-size: 25px;
}

.preview-kpis small {
  margin-top: 4px;
  color: #8894a8;
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.preview-panel {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.preview-panel > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.preview-alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.preview-alert:first-of-type {
  border-top: 0;
}

.preview-alert strong,
.preview-alert small {
  display: block;
}

.preview-alert strong {
  font-size: 12px;
}

.preview-alert small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.preview-alert b {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 7px;
  background: #fff0f3;
  color: var(--danger);
  font-size: 9px;
}

.preview-topic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 11px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.preview-topic:first-of-type {
  border-top: 0;
}

.preview-topic i {
  height: 4px;
  position: absolute;
  left: 0;
  bottom: 4px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.34;
}

.preview-topic strong,
.preview-topic b {
  position: relative;
  z-index: 2;
  font-size: 11px;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: #eef2f9;
}

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

.section-heading h2,
.security-grid h2,
.cta-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.section-heading > p:last-child,
.security-grid > div > p:last-child,
.cta-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.feature-card {
  min-height: 242px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.feature-card h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.steps-grid article {
  padding: 25px;
  border-radius: 18px;
  background: white;
}

.steps-grid article > span {
  color: var(--accent);
  font-size: 28px;
  font-weight: 850;
}

.steps-grid h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.security-list {
  display: grid;
  gap: 13px;
}

.security-list article {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
}

.security-list strong,
.security-list span {
  display: block;
}

.security-list span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.cta-section {
  padding: 20px 0 90px;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border: 1px solid #dcd9ff;
  border-radius: 25px;
  background:
    linear-gradient(
      135deg,
      #f3f1ff,
      #ffffff
    );
}

.cta-card > div:first-child {
  max-width: 690px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner {
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

/* AUTH */

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 5% 5%,
      rgba(103, 92, 255, 0.12),
      transparent 34rem
    ),
    #f6f8fc;
}

.auth-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.auth-main {
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.auth-value h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.auth-value > p:not(.eyebrow) {
  max-width: 610px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.auth-benefits article {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.auth-benefits strong,
.auth-benefits span {
  display: block;
}

.auth-benefits span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
  font-size: 30px;
}

.auth-card-description {
  margin: 9px 0 0;
  color: var(--muted);
}

#loginForm {
  display: grid;
  gap: 17px;
  margin-top: 29px;
}

#loginForm label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 680;
}

#loginForm input {
  width: 100%;
  border: 1px solid #d6dde9;
  border-radius: 11px;
  padding: 13px 14px;
  background: #fbfcfe;
  color: var(--text);
  outline: none;
}

#loginForm input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 92, 255, 0.12);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.auth-register {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.auth-register a {
  color: var(--accent);
  font-weight: 720;
}

@media (max-width: 980px) {
  .header-nav {
    display: none;
  }

  .hero-grid,
  .auth-main,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    transform: none;
  }

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

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

  .auth-main {
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .container,
  .auth-header,
  .auth-main {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions .button-primary {
    display: none;
  }

  .hero {
    padding: 62px 0 68px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-grid {
    gap: 42px;
  }

  .preview-content,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .cta-card {
    display: block;
    padding: 30px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .auth-main {
    padding-top: 20px;
  }

  .auth-value h1 {
    font-size: 39px;
  }

  .auth-card {
    padding: 25px;
  }
}

/* COMPANY REGISTRATION */

#registerForm {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

#registerForm label:not(.agreement-label) {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 680;
}

#registerForm input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #d6dde9;
  border-radius: 11px;
  padding: 13px 14px;
  background: #fbfcfe;
  color: var(--text);
  outline: none;
}

#registerForm input:not([type="checkbox"]):focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px
    rgba(103, 92, 255, 0.12);
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.agreement-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.agreement-label input {
  margin-top: 3px;
}

.register-card {
  padding-top: 30px;
  padding-bottom: 30px;
}

.register-main {
  padding-top: 24px;
}
