/* How it works marketing layout — scoped to .hiw-page (avoids .hero / .btn-primary clashes) */
.hiw-page {
  --hiw-abyss: #091425;
  --hiw-command: #0d3b6e;
  --hiw-cyan: #00d4f5;
  --hiw-amber: #f5a623;
  --hiw-white: #ffffff;
  --hiw-muted: rgba(255, 255, 255, 0.55);
  --hiw-border: rgba(0, 212, 245, 0.12);
  --hiw-surface: rgba(13, 59, 110, 0.3);
  background: var(--hiw-abyss);
  color: var(--hiw-white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.hiw-page *,
.hiw-page *::before,
.hiw-page *::after {
  box-sizing: border-box;
}

.hiw-page .hiw-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hiw-page .hiw-bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 212, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 245, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: hiw-grid-shift 24s linear infinite;
}

@keyframes hiw-grid-shift {
  to {
    background-position: 60px 60px, 60px 60px;
  }
}

.hiw-page .hiw-hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(0, 212, 245, 0.07) 0%, transparent 65%);
  animation: hiw-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hiw-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.hiw-page .hiw-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--hiw-cyan);
  text-transform: uppercase;
  border: 1px solid rgba(0, 212, 245, 0.3);
  padding: 0.3rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: hiw-rise-in 0.8s 0.1s ease forwards;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.hiw-page .hiw-hero h1 {
  font-family: "Cairo", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.1;
  max-width: 760px;
  margin: 0 auto 1.4rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hiw-rise-in 0.9s 0.2s ease forwards;
}

.hiw-page .hiw-hero h1 em {
  color: var(--hiw-cyan);
  font-style: normal;
}

.hiw-page .hiw-hero-sub {
  font-size: 1.05rem;
  color: var(--hiw-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hiw-rise-in 0.9s 0.35s ease forwards;
}

@keyframes hiw-rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hiw-page .hiw-phone-wrap {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hiw-rise-in 1s 0.5s ease forwards;
}

.hiw-page .hiw-phone {
  width: 200px;
  height: 360px;
  background: rgba(13, 59, 110, 0.4);
  border: 1.5px solid rgba(0, 212, 245, 0.3);
  border-radius: 28px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 212, 245, 0.08);
}

.hiw-page .hiw-phone-notch {
  width: 60px;
  height: 8px;
  background: rgba(0, 212, 245, 0.2);
  border-radius: 100px;
  margin: 12px auto 0;
}

.hiw-page .hiw-phone-screen {
  padding: 12px;
  margin-top: 8px;
}

.hiw-page .hiw-p-img {
  width: 100%;
  height: 110px;
  background: rgba(0, 212, 245, 0.06);
  border: 1px solid rgba(0, 212, 245, 0.2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-page .hiw-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hiw-cyan), transparent);
  box-shadow: 0 0 12px 2px rgba(0, 212, 245, 0.5);
  animation: hiw-scan-beam 2.2s ease-in-out infinite;
}

@keyframes hiw-scan-beam {
  0% {
    top: 0;
    opacity: 1;
  }
  80% {
    top: 100%;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.hiw-page .hiw-p-dmg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hiw-amber);
  box-shadow: 0 0 8px var(--hiw-amber);
  position: absolute;
  opacity: 0;
  animation: hiw-dot-appear 2.2s ease-in-out infinite;
}

.hiw-page .hiw-p-dmg-dot:nth-child(2) {
  top: 35%;
  left: 28%;
  animation-delay: 0.8s;
}

.hiw-page .hiw-p-dmg-dot:nth-child(3) {
  top: 55%;
  left: 58%;
  animation-delay: 1s;
}

.hiw-page .hiw-p-dmg-dot:nth-child(4) {
  top: 25%;
  left: 65%;
  animation-delay: 1.2s;
}

@keyframes hiw-dot-appear {
  0%,
  45% {
    opacity: 0;
    transform: scale(0.4);
  }
  60% {
    opacity: 1;
    transform: scale(1.4);
  }
  80%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

.hiw-page .hiw-p-car-icon {
  opacity: 0.2;
}

.hiw-page .hiw-p-rows {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hiw-page .hiw-p-row {
  height: 10px;
  border-radius: 100px;
  background: rgba(0, 212, 245, 0.12);
}

.hiw-page .hiw-p-row.hiw-short {
  width: 60%;
}

.hiw-page .hiw-p-row.hiw-accent {
  background: rgba(245, 166, 35, 0.25);
}

.hiw-page .hiw-p-bar-wrap {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.hiw-page .hiw-p-bar {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: rgba(0, 212, 245, 0.08);
  border: 1px solid rgba(0, 212, 245, 0.15);
  position: relative;
  overflow: hidden;
}

.hiw-page .hiw-p-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 212, 245, 0.3);
  animation: hiw-bar-rise 3s ease-in-out infinite alternate;
}

.hiw-page .hiw-p-bar:nth-child(1) .hiw-p-bar-fill {
  height: 55%;
  animation-delay: 0s;
}

.hiw-page .hiw-p-bar:nth-child(2) .hiw-p-bar-fill {
  height: 80%;
  animation-delay: 0.3s;
}

.hiw-page .hiw-p-bar:nth-child(3) .hiw-p-bar-fill {
  height: 40%;
  animation-delay: 0.6s;
}

@keyframes hiw-bar-rise {
  from {
    transform: scaleY(0.7);
  }
  to {
    transform: scaleY(1.1);
  }
}

.hiw-page .hiw-p-btn {
  margin-top: 12px;
  height: 26px;
  background: rgba(0, 212, 245, 0.18);
  border: 1px solid rgba(0, 212, 245, 0.35);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--hiw-cyan);
  letter-spacing: 0.1em;
}

.hiw-page .hiw-scroll-cue {
  position: relative;
  z-index: 2;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: hiw-rise-in 1s 1.1s ease forwards;
}

.hiw-page .hiw-scroll-cue span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--hiw-muted);
  text-transform: uppercase;
}

.hiw-page .hiw-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--hiw-cyan), transparent);
  animation: hiw-line-grow 1.8s ease-in-out infinite;
}

@keyframes hiw-line-grow {
  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hiw-page .hiw-steps-section {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.hiw-page .hiw-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--hiw-cyan);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.2rem;
}

.hiw-page .hiw-section-title {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 5rem;
}

.hiw-page .hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-page .hiw-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2.5rem;
  position: relative;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hiw-page .hiw-step.hiw-visible {
  opacity: 1;
  transform: translateX(0);
}

.hiw-page .hiw-step:nth-child(even) {
  grid-template-columns: 1fr 80px;
  transform: translateX(24px);
}

.hiw-page .hiw-step:nth-child(even).hiw-visible {
  transform: translateX(0);
}

.hiw-page .hiw-step:nth-child(even) .hiw-step-line-col {
  order: 2;
}

.hiw-page .hiw-step:nth-child(even) .hiw-step-content {
  order: 1;
  text-align: right;
}

.hiw-page .hiw-step-line-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-page .hiw-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 245, 0.4);
  background: rgba(0, 212, 245, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  color: var(--hiw-cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hiw-page .hiw-step-num::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 245, 0.1);
  animation: hiw-step-ping 2.5s ease-in-out infinite;
}

@keyframes hiw-step-ping {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.hiw-page .hiw-step-connector {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, rgba(0, 212, 245, 0.3), rgba(0, 212, 245, 0.05));
  margin: 8px 0;
}

.hiw-page .hiw-step:last-child .hiw-step-connector {
  display: none;
}

.hiw-page .hiw-step-content {
  padding: 0.6rem 0 4rem;
}

.hiw-page .hiw-step-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--hiw-amber);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hiw-page .hiw-step-content h3 {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  color: var(--hiw-white);
}

.hiw-page .hiw-step-content p {
  font-size: 0.97rem;
  color: var(--hiw-muted);
  max-width: 440px;
  line-height: 1.75;
}

.hiw-page .hiw-step:nth-child(even) .hiw-step-content p {
  margin-right: 0;
  margin-left: auto;
}

.hiw-page .hiw-step-visual {
  margin-top: 1.4rem;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hiw-page .hiw-step:nth-child(even) .hiw-step-visual {
  justify-content: flex-end;
}

.hiw-page .hiw-sv-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 212, 245, 0.22);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 212, 245, 0.05);
}

.hiw-page .hiw-sv-pill.hiw-sv-accent {
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--hiw-amber);
  background: rgba(245, 166, 35, 0.06);
}

.hiw-page .hiw-mini-demo {
  margin-top: 1.6rem;
  width: min(260px, 100%);
  background: rgba(13, 59, 110, 0.25);
  border: 1px solid rgba(0, 212, 245, 0.15);
  border-radius: 12px;
  padding: 1rem;
}

.hiw-page .hiw-step:nth-child(even) .hiw-mini-demo {
  margin-right: auto;
}

.hiw-page .hiw-md-label {
  font-size: 0.67rem;
  color: var(--hiw-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hiw-page .hiw-md-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hiw-page .hiw-md-bar-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.hiw-page .hiw-md-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.hiw-page .hiw-md-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--hiw-cyan);
  opacity: 0.7;
}

.hiw-page .hiw-md-bar-fill.hiw-amber {
  background: var(--hiw-amber);
}

.hiw-page .hiw-md-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 212, 245, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hiw-page .hiw-md-total-label {
  font-size: 0.72rem;
  color: var(--hiw-muted);
}

.hiw-page .hiw-md-total-val {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  color: var(--hiw-cyan);
}

.hiw-page .hiw-report-prev {
  margin-top: 1.6rem;
  width: min(260px, 100%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 245, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.hiw-page .hiw-step:nth-child(even) .hiw-report-prev {
  margin-right: auto;
}

.hiw-page .hiw-rp-header {
  background: rgba(0, 212, 245, 0.08);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hiw-page .hiw-rp-logo {
  font-family: "Cairo", sans-serif;
  font-size: 0.82rem;
  color: var(--hiw-cyan);
}

.hiw-page .hiw-rp-badge {
  font-size: 0.6rem;
  background: rgba(0, 212, 245, 0.15);
  color: var(--hiw-cyan);
  padding: 2px 8px;
  border-radius: 100px;
}

.hiw-page .hiw-rp-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--hiw-cyan), transparent);
}

.hiw-page .hiw-rp-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hiw-page .hiw-rp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
}

.hiw-page .hiw-rp-row span:first-child {
  color: var(--hiw-muted);
}

.hiw-page .hiw-rp-row span:last-child {
  color: var(--hiw-white);
  font-weight: 500;
}

.hiw-page .hiw-rp-langs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.hiw-page .hiw-rp-lang {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 245, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.hiw-page .hiw-features-strip {
  padding: 5rem 2rem;
  border-top: 1px solid var(--hiw-border);
  border-bottom: 1px solid var(--hiw-border);
}

.hiw-page .hiw-features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}

.hiw-page .hiw-feat {
  padding: 2.2rem 1.8rem;
  border-right: 1px solid var(--hiw-border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hiw-page .hiw-feat:last-child {
  border-right: none;
}

.hiw-page .hiw-feat.hiw-visible {
  opacity: 1;
  transform: translateY(0);
}

.hiw-page .hiw-feat-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 212, 245, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 245, 0.05);
}

.hiw-page .hiw-feat h4 {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--hiw-white);
}

.hiw-page .hiw-feat p {
  font-size: 0.85rem;
  color: var(--hiw-muted);
  line-height: 1.65;
}

.hiw-page .hiw-who-section {
  padding: 7rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-page .hiw-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  margin-top: 3.5rem;
  border: 1.5px solid var(--hiw-border);
  border-radius: 18px;
  overflow: hidden;
}

.hiw-page .hiw-who-card {
  padding: 2.2rem;
  background: rgba(13, 59, 110, 0.15);
  border-right: 1.5px solid var(--hiw-border);
  border-bottom: 1.5px solid var(--hiw-border);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s;
}

.hiw-page .hiw-who-card:hover {
  background: rgba(13, 59, 110, 0.35);
}

.hiw-page .hiw-who-card.hiw-visible {
  opacity: 1;
  transform: scale(1);
}

.hiw-page .hiw-who-card:last-child {
  border-bottom: none;
}

.hiw-page .hiw-who-num {
  font-family: "Cairo", sans-serif;
  font-size: 2.2rem;
  color: rgba(0, 212, 245, 0.25);
  margin-bottom: 0.8rem;
}

.hiw-page .hiw-who-card h4 {
  font-family: "Cairo", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--hiw-white);
}

.hiw-page .hiw-who-card p {
  font-size: 0.85rem;
  color: var(--hiw-muted);
  line-height: 1.65;
}

.hiw-page .hiw-cta-section {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hiw-page .hiw-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 245, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hiw-page .hiw-cta-section h2 {
  font-family: "Cairo", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 640px;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
  color: var(--hiw-white);
}

.hiw-page .hiw-cta-section p {
  font-size: 1rem;
  color: var(--hiw-muted);
  max-width: 460px;
  margin: 0 auto 2.4rem;
  position: relative;
  z-index: 1;
}

.hiw-page a.hiw-btn-primary {
  display: inline-block;
  background: var(--hiw-cyan);
  color: var(--hiw-abyss);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2.4rem;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hiw-page a.hiw-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 212, 245, 0.25);
}

@media (max-width: 700px) {
  .hiw-page .hiw-step,
  .hiw-page .hiw-step:nth-child(even) {
    grid-template-columns: 50px 1fr;
    transform: none !important;
  }

  .hiw-page .hiw-step:nth-child(even) .hiw-step-line-col {
    order: 1;
  }

  .hiw-page .hiw-step:nth-child(even) .hiw-step-content {
    order: 2;
    text-align: left;
  }

  .hiw-page .hiw-step:nth-child(even) .hiw-step-content p {
    margin-left: 0;
  }

  .hiw-page .hiw-step:nth-child(even) .hiw-step-visual {
    justify-content: flex-start;
  }

  .hiw-page .hiw-step:nth-child(even) .hiw-mini-demo,
  .hiw-page .hiw-step:nth-child(even) .hiw-report-prev {
    margin-right: 0;
  }

  .hiw-page .hiw-feat {
    border-right: none;
    border-bottom: 1px solid var(--hiw-border);
  }

  .hiw-page .hiw-features-inner {
    gap: 0;
  }
}

/* RTL: keep step timeline readable */
[dir="rtl"] .hiw-page .hiw-step,
[dir="rtl"] .hiw-page .hiw-step:nth-child(even) {
  grid-template-columns: 50px 1fr;
  transform: none !important;
}

[dir="rtl"] .hiw-page .hiw-step:nth-child(even) .hiw-step-line-col {
  order: 1;
}

[dir="rtl"] .hiw-page .hiw-step:nth-child(even) .hiw-step-content {
  order: 2;
  text-align: right;
}

[dir="rtl"] .hiw-page .hiw-step:nth-child(even) .hiw-step-content p {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .hiw-page .hiw-step:nth-child(even) .hiw-step-visual {
  justify-content: flex-end;
}

[dir="rtl"] .hiw-page .hiw-md-bar-label {
  text-align: left;
}
