/* sections/01_hero.css */

/* =========================
   01 HERO
========================= */

.hero-section {
  max-width: none;
  padding: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  width: 100%;

  padding: 54px 54px 38px;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;

  width: 520px;
  height: 520px;

  background: radial-gradient(
    circle,
    rgba(54, 95, 130, .10),
    transparent 66%
  );

  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;

  max-width: 900px;
  margin: 0 auto 30px;

  text-align: center;
}

.hero-copy .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin-bottom: 16px;

  font-size: clamp(2.35rem, 4.8vw, 4.75rem);
  line-height: .95;
  letter-spacing: -0.075em;
  font-weight: 620;
}

.accent-word {
  background: linear-gradient(90deg, var(--heading), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 780px;
  margin: auto;

  color: var(--muted);

  font-size: 1.05rem;
  line-height: 1.3;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 20px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;

  margin-top: 18px;

  color: #58738c;

  font-size: .88rem;
  font-weight: 700;
}

.trust-row i {
  margin-right: 8px;
  color: var(--accent);
}

/* =========================
   HERO DEMO
========================= */

.demo-area {
  position: relative;

  display: grid;
  grid-template-columns: .78fr 1.42fr;
  gap: 30px;
  align-items: stretch;

  width: 100%;
  max-width: 1120px;
  margin: auto;
}

/* =========================
   STEP LINE
========================= */

.step-line {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns:
    minmax(210px, 1fr)
    minmax(110px, .38fr)
    minmax(240px, 1fr)
    minmax(110px, .38fr)
    minmax(230px, 1fr);

  column-gap: 26px;
  align-items: center;

  padding: 0 56px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  min-width: 0;

  opacity: .45;
  filter: saturate(.65);

  transition:
    opacity .35s ease,
    filter .35s ease,
    transform .35s ease;
}

.step.is-active,
.step.is-done {
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-1px);
}

.bubble {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #e7eff6;
  color: #5a7790;

  font-size: .95rem;
  font-weight: 800;
  line-height: 1;

  transition: all .35s ease;
}

.step.is-active .bubble {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 28px rgba(54, 95, 130, .24);
}

.step.is-done .bubble {
  background: var(--green);
  color: white;
}

.step strong {
  display: block;

  color: #173d61;

  font-size: .92rem;
  line-height: 1.02;
}

.step div span {
  display: block;

  margin-top: 2px;

  color: #668097;

  font-size: .8rem;
}

.step-arrow {
  position: relative;

  width: 100%;
  min-width: 90px;
  height: 2px;

  overflow: hidden;

  border-radius: 999px;

  background: #dbe6ee;
}

.step-arrow::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;

  width: 0;
  height: 100%;

  border-radius: 999px;

  background: var(--accent);

  transition: width .85s ease;
}

.step-arrow.is-active::before {
  width: 100%;
}

/* =========================
   DEMO PANELS
========================= */

.panel {
  position: relative;
  overflow: hidden;

  min-height: 285px;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  background: #ffffff;

  box-shadow: none;
}

.excel-panel {
  padding: 20px;
}

.dropzone {
  position: relative;

  height: 190px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 1px solid #d9e8f3;
  border-radius: 12px;

  background: linear-gradient(180deg, #fbfdff, #f5f9fc);

  box-shadow: none;
}

.file-icon {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background: white;
  color: #18a85a;

  font-size: 1.75rem;

  box-shadow: none;

  animation: floatSoft 3.4s ease-in-out infinite;
}

.file-name {
  margin-top: 4px;

  color: #092c52;

  font-size: 1.1rem;
  font-weight: 800;
}

.file-size {
  margin-top: -8px;

  color: #768fa5;

  font-size: .9rem;
}

.progress {
  width: 78%;
  height: 8px;

  margin-top: 4px;

  overflow: hidden;

  border-radius: 999px;

  background: #e8eef5;
}

.progress span {
  display: block;

  width: 0;
  height: 100%;

  border-radius: 999px;

  background: var(--brand-gradient);

  transition: width .6s ease;
}

.file-status {
  color: #5d788f;

  font-size: .92rem;
  font-weight: 650;

  opacity: .38;

  transition: opacity .3s ease;
}

.file-status i {
  margin-right: 8px;
  color: var(--green);
}

.privacy {
  margin-top: 10px;
  padding: 9px 12px;

  border: 1px solid #e3ecf3;
  border-radius: 9px;

  background: #f2f6fa;

  color: #45637b;

  font-size: .78rem;
  font-weight: 650;

  box-shadow: none;
}

.privacy i {
  margin-right: 8px;
  color: var(--accent);
}

.download-ready {
  position: relative;

  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 10px;
  padding: 10px 12px;

  overflow: hidden;

  border: 1px solid #dfeaf2;
  border-radius: 12px;

  background: white;

  color: #234f78;

  font-size: .84rem;
  font-weight: 800;

  opacity: 0;
  transform: translateY(10px) scale(.985);

  cursor: pointer;

  box-shadow: none;

  transition:
    opacity .45s ease,
    transform .45s ease,
    border-color .45s ease;
}

.download-ready i {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: #ff4930;

  color: white;

  font-size: 1rem;

  box-shadow: none;
}

.excel-panel.is-report-ready .download-ready {
  opacity: 1;
  transform: none;
}

.download-ready.is-clicking {
  transform: translateY(0) scale(.965);
  border-color: rgba(54, 95, 130, .42);
}

.download-ready.is-clicking::after {
  content: "";

  position: absolute;
  inset: auto auto 50% 42px;

  width: 18px;
  height: 18px;

  border-radius: 999px;

  background: rgba(255, 90, 53, .28);

  transform: translate(-50%, 50%) scale(.2);

  animation: clickRipple .7s ease-out forwards;
}

.download-ready.is-clicking i {
  animation: pdfTap .7s ease-out;
}

/* =========================
   AI ORB
========================= */

.connector {
  display: none;
}

.ai-orb {
  position: absolute;

  left: calc(35.5% + 15px - 34px);
  top: 56%;

  z-index: 4;

  width: 68px;
  height: 68px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: white;
  color: var(--accent);

  font-size: 1.65rem;

  opacity: 0;
  transform: scale(.86);

  box-shadow: 0 18px 45px rgba(54, 95, 130, .14);

  transition:
    opacity .35s ease,
    transform .35s ease;
}

.ai-orb.is-visible {
  opacity: 1;
  transform: scale(1);
}

.ai-orb::before {
  content: "";

  position: absolute;

  inset: -10px;

  border-radius: inherit;

  border: 2px solid rgba(54, 95, 130, .16);
  border-top-color: var(--accent);
  border-right-color: rgba(255, 90, 53, .75);

  animation: spinSoft 1.8s linear infinite;
}

.ai-orb::after {
  content: "";

  position: absolute;

  inset: -19px;

  border-radius: inherit;

  border: 1px solid rgba(54, 95, 130, .12);

  animation: pulseSoft 2.3s ease-in-out infinite;
}

/* =========================
   REPORT PANEL
========================= */

.report-panel {
  padding: 16px 18px 14px;
}

.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;

  opacity: 0;
  transform: translateY(8px);

  transition: all .45s ease;
}

.report-panel.is-ready .report-top {
  opacity: 1;
  transform: none;
}

.pdf-badge {
  padding: 8px 10px;

  border-radius: 6px;

  background: #ff4930;

  color: white;

  font-weight: 900;

  box-shadow: none;
}

.report-actions {
  display: flex;
  gap: 10px;

  color: #315878;
}

.icon-btn {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: #f3f7fa;
}

.report-placeholder {
  position: absolute;

  inset: 24px;

  display: grid;
  place-items: center;

  text-align: center;

  border: 1.5px dashed #b6c8d8;
  border-radius: 12px;

  background: linear-gradient(180deg, #fbfdff, #f5f9fc);

  color: #7890a5;

  box-shadow: none;

  transition:
    opacity .35s ease,
    transform .35s ease;
}

.report-placeholder i {
  display: block;

  margin-bottom: 14px;

  color: #b2c4d5;

  font-size: 2.4rem;
}

.report-placeholder strong {
  display: block;

  margin-bottom: 6px;

  color: #42617b;
}

.report-panel.is-ready .report-placeholder {
  opacity: 0;
  transform: scale(.97);
  pointer-events: none;
}

.paper {
  min-height: 210px;

  padding: 18px 20px 14px;

  border: 1px solid #e2ebf2;
  border-radius: 10px;

  background: white;

  opacity: 0;
  transform: translateY(22px) scale(.985);

  box-shadow: none;

  transition:
    opacity .55s ease,
    transform .55s ease;
}

.report-panel.is-ready .paper {
  opacity: 1;
  transform: none;
}

.paper-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  align-items: stretch;
}

.paper-left,
.paper-right {
  min-width: 0;
}

.paper-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paper-right {
  display: flex;
  align-items: flex-end;
  padding-top: 46px;
}

.lab-logo {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #234f78;

  font-size: 1.18rem;
  font-weight: 900;

  letter-spacing: .035em;
}

.lab-mark {
  width: 26px;
  height: 26px;

  border-radius: 9px;

  background: var(--brand-gradient);
}

.paper h2 {
  margin: 8px 0 2px;

  color: #0d2d53;

  font-size: 1.02rem;
  line-height: 1.02;

  letter-spacing: -0.04em;
}

.paper-sub {
  margin-bottom: 4px;

  color: #5c748b;

  font-size: .84rem;
  font-weight: 650;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;

  margin: 0;

  color: #254963;

  font-size: .72rem;
  font-weight: 750;
}

.meta div {
  line-height: 1.05;
}

.meta span {
  display: block;

  margin-bottom: 2px;

  color: #68839a;

  font-weight: 650;
}

.paper table {
  width: 100%;
  margin-top: 2px;

  border-collapse: collapse;

  color: #123457;

  font-size: .74rem;
}

.paper th,
.paper td {
  padding: 5px;

  border: 1px solid #dfe8ef;

  text-align: center;
}

.paper th {
  background: #eef4f8;
  color: #315878;
  font-weight: 900;
}

.paper td i {
  color: var(--green);
}

/* =========================
   CHART
========================= */

.chart-card {
  width: 100%;
  height: 162px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 12px 16px 17px;

  border: 1px solid #e2ebf2;
  border-radius: 10px;

  background: #f8fbfd;

  box-shadow: none;
}

.chart-title {
  margin: 0 0 6px 2px;

  color: #315878;

  font-size: .78rem;
  font-weight: 900;

  letter-spacing: -0.01em;
}

.chart {
  position: relative;

  width: 100%;
  height: 110px;

  display: flex;
  align-items: end;
  justify-content: space-evenly;
  gap: 12px;

  padding: 14px 18px 0;

  border-left: 1px solid #d5e1ea;
  border-bottom: 1px solid #d5e1ea;

  background:
    linear-gradient(
      to top,
      rgba(223, 232, 239, .75) 1px,
      transparent 1px
    )
    0 0 / 100% 28px;
}

.chart::before {
  content: "MPa";

  position: absolute;

  top: 3px;
  left: 7px;

  color: #7890a5;

  font-size: .56rem;
  font-weight: 900;

  letter-spacing: .02em;
}

.bar {
  position: relative;

  width: 32px;

  border-radius: 6px 6px 0 0;

  background: linear-gradient(180deg, #6589a6, #365f82);

  transform: scaleY(.15);
  transform-origin: bottom;

  box-shadow: none;

  transition: transform .55s ease;
}

.bar::after {
  content: attr(data-label);

  position: absolute;

  left: 50%;
  bottom: -16px;

  transform: translateX(-50%);

  color: #7890a5;

  font-size: .46rem;
  font-weight: 900;

  white-space: nowrap;

  letter-spacing: -0.03em;
}

.bar:nth-child(1) { height: 52px; }
.bar:nth-child(2) { height: 64px; }
.bar:nth-child(3) { height: 76px; }
.bar:nth-child(4) { height: 88px; }
.bar:nth-child(5) { height: 100px; }

.report-panel.is-ready .bar {
  transform: scaleY(1);
}

.ready {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 10px;

  color: #315878;

  font-size: .88rem;
  font-weight: 800;

  opacity: 0;
  transform: translateY(8px);

  transition: all .45s ease;
}

.ready i {
  color: var(--green);
}

.report-panel.is-ready .ready {
  opacity: 1;
  transform: none;
}

/* =========================
   LOGOS
========================= */

.logos {
  max-width: 760px;
  margin: 24px auto 0;

  text-align: center;

  color: #6c8093;

  font-weight: 700;
}

.logos-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;

  margin-top: 12px;

  opacity: .74;

  font-size: 1.28rem;
  font-weight: 900;

  letter-spacing: -0.04em;
}

/* =========================
   RESPONSIVE HERO
========================= */

@media (max-width: 980px) {

  .hero-card {
    padding: 54px 22px 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 4.2rem);
  }

  .demo-area {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-line {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 12px;
  }

  .step-arrow {
    display: none;
  }

  .connector,
  .ai-orb {
    display: none;
  }

  .paper-layout {
    grid-template-columns: 1fr;
  }

  .report-panel,
  .excel-panel {
    padding: 18px;
  }

  .trust-row {
    gap: 16px;
    align-items: center;
  }

  .report-placeholder {
    inset: 18px;
  }

}