/* ==========================================================================
   Yazhi Software — home page sections
   ========================================================================== */


/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(11, 92, 240, 0.08), transparent 70%),
    linear-gradient(180deg, #f3f6fc 0%, #f8faff 60%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero-lead {
  max-width: 500px;
  margin-top: 22px;
  font-size: 17.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.btn-play { gap: 10px; }
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--primary);
}
.btn-play .play-icon svg { width: 11px; height: 11px; margin-left: 1px; transform: none; }
.btn-play:hover .play-icon svg { transform: none; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 56px;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.hero-badges svg { width: 22px; height: 22px; color: var(--ink); }

/* ---------- Laptop mockup ---------- */
.hero-visual {
  position: relative;
  margin-right: -40px;
  perspective: 2200px;
}
.hero-visual::before {
  /* dotted accent */
  content: "";
  position: absolute;
  top: -28px; right: 40px;
  width: 150px; height: 90px;
  background-image: radial-gradient(var(--primary) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: .22;
}

.laptop {
  position: relative;
  transform: rotateY(-12deg) rotateX(5deg) rotateZ(0.5deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 40px 50px rgba(16, 32, 72, 0.18));
}
.laptop-screen {
  padding: 2.2% 2.2% 2.6%;
  background: linear-gradient(160deg, #2b2f38, #0f1115);
  border-radius: 20px 20px 6px 6px;
  box-shadow: inset 0 0 0 1.5px #3d424d;
}
.laptop-base {
  position: relative;
  height: 18px;
  margin: 0 -7%;
  background: linear-gradient(180deg, #e6e9ef 0%, #c4c9d2 55%, #9aa0ab 100%);
  border-radius: 2px 2px 14px 14px;
}
.laptop-base::before {
  /* opening notch */
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 16%; height: 6px;
  transform: translateX(-50%);
  background: #aab0ba;
  border-radius: 0 0 8px 8px;
}

/* ---------- Dashboard (scales with the screen via container units) ---------- */
.dash {
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}
.dash-inner {
  display: flex;
  height: 100%;
  font-size: 1.55cqw;   /* everything below is sized in em */
  line-height: 1.3;
  color: var(--ink);
}

.dash-side {
  flex: 0 0 16%;
  padding: 1.6em 0.9em;
  border-right: 1px solid #eef1f6;
}
.dash-brand {
  display: grid;
  place-items: center;
  width: 2.1em; height: 2.1em;
  margin: 0 0 1.8em 0.4em;
  border-radius: 0.5em;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05em;
}
.dash-nav li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 0.7em;
  margin-bottom: 0.25em;
  border-radius: 0.5em;
  font-size: 0.82em;
  color: #5a6378;
}
.dash-nav i {
  width: 0.95em; height: 0.95em;
  border: 1.5px solid currentColor;
  border-radius: 0.25em;
  opacity: .8;
}
.dash-nav .is-active { background: var(--primary); color: #fff; }

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  padding: 1.5em 1.7em;
  background: #f8fafd;
  min-width: 0;
}
.dash-top {
  display: flex;
  align-items: center;
  gap: 1em;
}
.dash-top strong { font-size: 1.3em; margin-right: auto; }
.dash-search {
  width: 30%;
  padding: 0.45em 0.8em;
  border: 1px solid #e6eaf2;
  border-radius: 0.5em;
  background: #fff;
  font-size: 0.75em;
  color: #9aa2b4;
}
.dash-bell {
  width: 1em; height: 1em;
  border: 1.5px solid #5a6378;
  border-radius: 50% 50% 0.2em 0.2em;
}
.dash-avatar {
  width: 1.9em; height: 1.9em;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6c7a0, #c8875a);
}

.dash-card {
  padding: 1em 1.1em;
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 0.7em;
  box-shadow: 0 1px 3px rgba(16, 32, 72, 0.04);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
.dash-stats span { display: block; font-size: 0.78em; color: #6b7489; }
.dash-stats b { display: block; margin: 0.25em 0 0.15em; font-size: 1.75em; font-weight: 700; letter-spacing: -0.02em; }
.dash-stats em { font-style: normal; font-size: 0.72em; font-weight: 600; color: #12a150; }

.dash-bottom {
  flex: 1;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1em;
  min-height: 0;
}
.dash-chart { display: flex; flex-direction: column; min-height: 0; }
.dash-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6em;
  font-size: 0.85em;
  font-weight: 600;
}
.dash-chart-head small {
  padding: 0.2em 0.6em;
  border: 1px solid #e6eaf2;
  border-radius: 0.4em;
  font-size: 0.8em;
  font-weight: 500;
  color: #6b7489;
}
.dash-chart svg { flex: 1; width: 100%; min-height: 0; }
.dash-months {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4em;
  font-size: 0.62em;
  color: #9aa2b4;
}

.dash-title { display: block; margin-bottom: 0.9em; font-size: 0.85em; font-weight: 600; }
.dash-activity li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}
.dash-activity li + li { margin-top: 0.95em; }
.dash-activity i {
  flex: 0 0 auto;
  width: 1.5em; height: 1.5em;
  border-radius: 0.4em;
}
.dash-activity p { font-size: 0.74em; font-weight: 500; }
.dash-activity small { display: block; margin-top: 0.15em; font-size: 0.9em; font-weight: 400; color: #9aa2b4; }
.dot-orange { background: #fff1e0; box-shadow: inset 0 0 0 0.35em #fff1e0, inset 0 0 0 1em #f59e0b; }
.dot-blue   { background: #e7efff; box-shadow: inset 0 0 0 0.35em #e7efff, inset 0 0 0 1em var(--primary); }
.dot-green  { background: #e3f7ec; box-shadow: inset 0 0 0 0.35em #e3f7ec, inset 0 0 0 1em #12a150; }

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: fadeUp .7s both; }
  .hero-content > :nth-child(2) { animation-delay: .08s; }
  .hero-content > :nth-child(3) { animation-delay: .16s; }
  .hero-content > :nth-child(4) { animation-delay: .24s; }
  .hero-content > :nth-child(5) { animation-delay: .32s; }
  .hero-visual { animation: fadeIn .9s .2s both; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-content { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-badges { margin-top: 40px; }
  .hero-visual { margin: 0 auto; width: 100%; max-width: 640px; padding: 0 6%; }
  .laptop { transform: none; filter: drop-shadow(0 24px 30px rgba(16, 32, 72, 0.16)); }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-badges { gap: 12px 20px; }
  .hero-badges li { font-size: 13.5px; }
  .laptop-screen { border-radius: 12px 12px 4px 4px; }
  .laptop-base { height: 11px; }
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why { overflow: hidden; }
.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}
.why-content h2 {
  max-width: 460px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
}
.why-lead { max-width: 480px; margin-top: 18px; font-size: 17px; }

/* ---------- Device composition ----------
   The stage is a 60em x 47em canvas; 1em scales with the column width
   (container units), so the whole composition resizes as one picture. */
.why-visual { container-type: inline-size; }
.why-stage {
  position: relative;
  font-size: calc(100cqw / 60);
  height: 47em;
  line-height: 1.3;
  color: var(--ink);
}

.dots-tr { top: -1em; right: 1em; width: 16em; height: 7em; }
.dots-l  { left: 0; top: 18em; width: 7em; height: 12em; }

/* Tablet */
.tablet {
  position: absolute;
  top: 2em; right: 1.5em;
  width: 38em;
  padding: 1em;
  background: linear-gradient(160deg, #2b2f38, #0f1115);
  border-radius: 2.4em;
  box-shadow: 0 2.5em 4em rgba(16, 32, 72, 0.22), inset 0 0 0 0.15em #3d424d;
  transform: rotate(3deg);
}
.tablet-screen {
  padding: 1.8em 1.8em 1.6em 9em;   /* left padding leaves room behind the phone */
  background: #fff;
  border-radius: 1.5em;
}
.tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.2em;
}
.tab-head strong { font-size: 1.5em; }
.tab-pills { display: flex; gap: 0.5em; }
.tab-pills span {
  padding: 0.35em 0.9em;
  border-radius: 99em;
  background: #f1f4f9;
  font-size: 0.85em;
  font-weight: 500;
  color: #6b7489;
}
.tab-pills .pill-blue  { background: #e8f0ff; color: var(--primary); }
.tab-pills .pill-green { background: #e3f7ec; color: #16a34a; }
.tab-photo {
  height: 16em;
  overflow: hidden;
  border-radius: 1em;
}
.tab-photo svg { width: 100%; height: 100%; }
.tab-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
  font-size: 0.95em;
}
.tab-caption span { color: #6b7489; }

/* Phone */
.phone {
  position: absolute;
  top: 7em; left: 7.5em;
  width: 17.5em;
  height: 31em;
  padding: 1.4em 1.4em 0;
  background: #fff;
  border: 0.55em solid #14171d;
  border-radius: 2.8em;
  box-shadow: 0 3em 5em rgba(16, 32, 72, 0.25);
  overflow: hidden;
  z-index: 2;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
}
.phone-icons { display: flex; gap: 0.3em; }
.phone-icons i { width: 0.9em; height: 0.6em; border-radius: 0.15em; background: #14171d; }
.phone-title { display: block; margin: 1.3em 0 0.9em; font-size: 1.5em; }
.phone-pills { display: flex; gap: 0.35em; margin-bottom: 1.2em; }
.phone-pills span {
  padding: 0.35em 0.7em;
  border-radius: 99em;
  background: #f1f4f9;
  font-size: 0.72em;
  font-weight: 500;
  color: #6b7489;
  white-space: nowrap;
}
.phone-pills .is-active { background: var(--primary); color: #fff; }

.lead-list li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85em 0;
  border-bottom: 1px solid #f0f2f6;
}
.lead-list li:last-child { border-bottom: 0; }
.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.6em; height: 2.6em;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 700;
}
.av-orange { background: #fff1e0; color: #ea7a0c; }
.av-red    { background: #ffe6ea; color: #e11d48; }
.av-blue   { background: #e8f0ff; color: var(--primary); }
.av-green  { background: #e3f7ec; color: #16a34a; }
.lead-list p { min-width: 0; }
.lead-list b { display: block; font-size: 0.88em; }
.lead-list small { display: block; margin-top: 0.15em; font-size: 0.72em; color: #9aa2b4; white-space: nowrap; }
.lead-list em { font-style: normal; font-weight: 500; }
.st-blue   { color: var(--primary); }
.st-orange { color: #ea7a0c; }
.st-purple { color: #7c3aed; }
.st-green  { color: #16a34a; }

/* Growth card */
.growth-card {
  position: absolute;
  right: 0; bottom: 3em;
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.6em 1.8em;
  background: #fff;
  border-radius: 1.4em;
  box-shadow: 0 1.8em 3.5em rgba(16, 32, 72, 0.16);
  z-index: 3;
}
.growth-icon {
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
  width: 4.6em; height: 4.6em;
  padding: 1em 1.05em;
  border-radius: 1em;
  background: #e8f0ff;
}
.growth-icon i { flex: 1; border-radius: 0.2em; background: var(--primary); }
.growth-icon i:nth-child(1) { height: 40%; }
.growth-icon i:nth-child(2) { height: 70%; }
.growth-icon i:nth-child(3) { height: 100%; }
.growth-card small { display: block; font-size: 0.95em; font-weight: 600; }
.growth-card b { display: block; margin: 0.1em 0; font-size: 2.3em; font-weight: 800; color: #16a34a; letter-spacing: -0.02em; }
.growth-card span { font-size: 0.82em; color: #9aa2b4; }

@media (max-width: 960px) {
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-content { text-align: center; }
  .why-content h2, .why-lead { margin-left: auto; margin-right: auto; }
  .check-list { display: inline-block; text-align: left; }
  .why-content .btn { display: flex; width: fit-content; margin: 0 auto; }
  .why-visual { width: 100%; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .check-list li { font-size: 15px; }
}

/* Hero headline: fixed line breaks on desktop, natural wrapping on small screens */
@media (max-width: 960px) {
  .br-desk { display: none; }
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 16px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat svg { flex: 0 0 auto; width: 40px; height: 40px; color: var(--primary); }
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 15px; }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stat { flex-direction: column; gap: 10px; padding: 28px 8px; text-align: center; }
  .stat svg { width: 34px; height: 34px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 14px; }
}

/* ==========================================================================
   Industries
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.industry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 8px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  transition: background .25s, transform .25s;
}
.industry-icon {
  display: inline-flex;
  color: var(--navy);
  transition: color .25s, transform .25s;
}
.industry-icon svg { width: 44px; height: 44px; }
.industry:hover { background: var(--bg-soft); }
.industry:hover .industry-icon { color: var(--primary); transform: translateY(-4px); }

@media (max-width: 960px) {
  .industry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
  .industry { flex: 0 0 25%; }
}
@media (max-width: 560px) {
  .industry { flex-basis: 33.333%; font-size: 13.5px; padding: 16px 4px; }
  .industry-icon svg { width: 38px; height: 38px; }
}

/* ==========================================================================
   Our Process
   ========================================================================== */
.industries { padding-bottom: 32px; }
.process { padding-top: 56px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; }
.step:not(:last-child)::after {
  /* arrow to the next step */
  content: "";
  position: absolute;
  top: 16px;
  right: -40px;
  width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  transition: background .25s, color .25s, box-shadow .25s;
}
.step.is-first .step-num,
.step:hover .step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 92, 240, 0.28);
}
.step h3 { font-size: 19px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.65; }

@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
  .step::after { display: none; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: flex;
    gap: 18px;
    padding-bottom: 28px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-num { flex: 0 0 auto; width: 48px; height: 48px; margin: 0; font-size: 15px; }
  .step:not(:last-child)::before {
    /* vertical connector between steps */
    content: "";
    position: absolute;
    left: 23px; top: 56px; bottom: 6px;
    border-left: 2px dashed #c9d5ee;
  }
  .step h3 { margin-top: 2px; font-size: 17px; }
}
