/**
 * PAGE: home (WMSProApp — HomePage)
 * Sections: home-hero, home-trust-bar, home-highlights, + workflow, integration, home-cta
 */

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  padding: 4rem 0 5rem;
}

@media (min-width: 1024px) {
  .home-hero { padding: 6rem 0 8rem; }
}

.home-hero-blob-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(96,165,250,.2);
  filter: blur(100px);
  transform: translate(33%, -48px);
}

.home-hero-blob-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(129,140,248,.2);
  filter: blur(100px);
  transform: translate(-33%, 33%);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.home-hero-copy .home-hero-actions,
.home-hero-copy .home-trust-cards {
  width: 100%;
}

@media (min-width: 640px) {
  .home-hero-copy .home-hero-actions {
    width: auto;
  }
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
  }

  .home-hero-grid > * {
    min-width: 0;
    width: 100%;
  }

  /* Высоту секции задаёт только .home-hero-copy; mockup подстраивается */
  .home-hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
  }

  .home-mockup-wrap {
    grid-column: 2;
    grid-row: 1;
    height: 0;
    min-height: 100%;
    align-self: stretch;
  }
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(191,219,254,.6);
  background: rgba(219,234,254,.5);
  font-size: 0.875rem;
  font-weight: 800;
  color: #1d4ed8;
}

.home-hero h1 {
  max-width: 64rem;
  margin: 0 auto;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  text-align: center;
}

@media (min-width: 1024px) {
  .home-hero h1 { margin: 0; text-align: right; font-size: 3.75rem; }
}

.home-hero h1 .gradient {
  display: block;
  margin-top: 0.5rem;
  background: linear-gradient(to left, #2563eb, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-lead {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: #475569;
  text-align: center;
}

@media (min-width: 1024px) {
  .home-hero-lead { margin: 1.5rem 0 0; text-align: right; }
}

.home-trust-cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-trust-cards { grid-template-columns: repeat(3, 1fr); }
}

.home-trust-card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.7);
  padding: 1rem;
  text-align: right;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  backdrop-filter: blur(4px);
}

.home-trust-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  color: #0f172a;
}

.home-trust-card p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: #64748b;
}

.home-mockup-wrap {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .home-mockup-wrap {
    max-width: none;
    margin: 0;
  }
}

.home-mockup-glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 3rem;
  background: linear-gradient(to bottom right, rgba(191,219,254,.6), rgba(199,210,254,.3));
  filter: blur(48px);
  pointer-events: none;
}

.home-mockup-frame {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  border: 1px solid rgba(226,232,240,.8);
  background: #f4f6f8;
  box-shadow: 0 25px 50px -12px rgba(15,23,42,.25);
  overflow: hidden;
}

.home-mockup-scaler {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .home-mockup-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .home-mockup-scaler {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }

  /* scale(0.9) + компенсация ширины — без белых полос по бокам */
  .home-mockup-scaler .ui-mockup--hero {
    width: 111.12%;
    margin-inline: -5.56%;
    transform: scale(0.9);
    transform-origin: top center;
  }
}

/* ExactUIMockup — hero variant (WMSProApp.txt) */
.ui-mockup--hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.8125rem;
  background: #f4f6f8;
}

.ui-mockup--hero .ui-mockup-body {
  display: flex;
  flex-direction: row-reverse;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #f4f6f8;
}

.ui-mockup--hero .ui-mockup-sidebar {
  flex-shrink: 0;
}

.ui-mockup--hero .ui-mockup-topbar {
  width: 100%;
  flex-shrink: 0;
}

.ui-mockup--hero .ui-mockup-topbar-user-text {
  text-align: right;
  line-height: 1.2;
}

.ui-mockup--hero .ui-mockup-brand-icon {
  color: #60a5fa;
}

.ui-mockup--hero .ui-mockup-sidebar {
  width: 11rem;
}

.ui-mockup--hero .ui-mockup-sidebar-brand {
  padding: 1rem 0.75rem 0.5rem;
  font-size: 1rem;
}

.ui-mockup--hero .ui-mockup-nav-item {
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.ui-mockup--hero .ui-mockup-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0.875rem;
  overflow: hidden;
}

.ui-mockup--hero .ui-mockup-welcome {
  margin-bottom: 0.75rem;
  padding: 0.875rem;
}

.ui-mockup--hero .ui-mockup-welcome p {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.ui-mockup--hero .ui-mockup-welcome-title {
  font-size: 1rem;
}

.ui-mockup--hero .ui-mockup-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.ui-mockup--hero .ui-mockup-dashboard-head {
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.ui-mockup--hero .ui-mockup-dashboard-head h3 {
  font-size: 1rem;
}

.ui-mockup--hero .ui-mockup-dashboard-head p {
  font-size: 0.75rem;
}

.ui-mockup--hero .ui-mockup-kpis {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.ui-mockup--hero .ui-mockup-kpi {
  padding: 0.75rem 0.5rem;
}

.ui-mockup--hero .ui-mockup-kpi h4 {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}

.ui-mockup--hero .ui-mockup-kpi strong {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.ui-mockup--hero .ui-mockup-kpi-icon {
  width: 2rem;
  height: 2rem;
}

.ui-mockup--hero .ui-mockup-kpi-icon .icon {
  width: 1rem;
  height: 1rem;
}

.ui-mockup--hero .ui-mockup-panels {
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .ui-mockup--hero .ui-mockup-panels {
    grid-template-columns: 1fr 0.85fr;
  }
}

.ui-mockup--hero .ui-mockup-panel {
  padding: 0.75rem;
}

.ui-mockup--hero .ui-mockup-panel-head {
  margin-bottom: 0.5rem;
}

.ui-mockup--hero .ui-mockup-panel-head h4 {
  font-size: 0.8125rem;
}

.ui-mockup--hero .ui-mockup-task {
  padding: 0.375rem 0.5rem;
  font-size: 0.6875rem;
  margin-bottom: 0.375rem;
}

.ui-mockup--hero .ui-mockup-task-badge {
  border-radius: 9999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  flex-shrink: 0;
}

.ui-mockup--hero .ui-mockup-scan-value {
  font-size: 1.75rem;
}

.ui-mockup--hero .ui-mockup-scan-note {
  font-size: 0.6875rem;
  margin-top: 0.25rem;
}

/* Trust bar / logos */
.home-trust-bar {
  background: #fff;
  padding: 2.5rem 0;
  border-block: 1px solid #e2e8f0;
}

.home-trust-bar p {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.home-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 0.75rem;
  opacity: 0.5;
  filter: grayscale(100%);
}

.home-logos .home-logo {
  flex: 0 0 calc((100% - 1.5rem) / 3);
  max-width: calc((100% - 1.5rem) / 3);
  font-size: 1rem;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-logos {
    gap: 4rem;
  }

  .home-logos .home-logo {
    flex: 0 0 auto;
    max-width: none;
    font-size: 1.25rem;
  }
}

/* Highlights */
.home-highlights {
  background: #f8fafc;
  padding: 6rem 0;
}

.home-highlights-grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-highlights-grid { grid-template-columns: repeat(3, 1fr); }
}

.home-highlight-card {
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(15,23,42,.08);
}

.home-highlight-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
}

.home-highlight-text {
  margin-top: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  color: #475569;
}

.home-stat-strip { margin-top: 3rem; }

.home-logo {
  font-size: 1.25rem;
  font-weight: 900;
}

.home-logo--serif { font-style: italic; }
.home-logo--caps { letter-spacing: 0.05em; }
.home-logo--mono { font-family: ui-monospace, monospace; }


/* Bottom CTA */
.home-cta {
  position: relative;
  overflow: hidden;
  background: #2563eb;
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}

.home-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.home-cta .site-container {
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  position: relative;
  font-size: 1.875rem;
  font-weight: 900;
}

@media (min-width: 640px) {
  .home-cta h2 { font-size: 3rem; }
}

.home-cta p {
  position: relative;
  margin: 1.5rem auto 2.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #bfdbfe;
}
