/* ─── How It Works Page ─── */

/* Hero */
.hiw-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hiw-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hiw-hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 800px;
}

.hiw-hero-subtitle {
  font-size: 20px;
  color: var(--muted-foreground);
  max-width: 640px;
  line-height: 1.65;
}

/* Workflow steps */
.hiw-workflow {
  padding: 40px 0 100px;
}

.workflow-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.workflow-step:last-child { border-bottom: none; }

.workflow-step-reverse {
  grid-template-columns: 1.2fr 1fr;
}

.workflow-step-full {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.workflow-step-reverse .workflow-content { order: 2; }
.workflow-step-reverse .workflow-visual  { order: 1; }

.workflow-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-phase {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-phase-line {
  width: 40px;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.workflow-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.workflow-desc {
  font-size: 17px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.workflow-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.workflow-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.workflow-feature-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.workflow-feature-text {
  flex: 1;
}

.workflow-feature-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.workflow-feature-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.workflow-visual {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow: 0 32px 64px -16px rgba(124,58,237,0.12);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.workflow-visual:hover {
  box-shadow: 0 40px 80px -16px rgba(124,58,237,0.22);
  transform: translateY(-4px);
}

.workflow-visual img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Tech Specs */
.tech-specs {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.spec-card {
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.spec-card:hover {
  border-color: rgba(124,58,237,0.25);
  transform: translateY(-3px);
}

.spec-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.spec-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
}

.spec-desc {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* CTA */
.hiw-cta {
  padding: 120px 0;
}

.hiw-cta-box {
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hiw-cta-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hiw-cta-desc {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 500px;
  line-height: 1.6;
}

.hiw-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* Active nav link */
.nav-link.active {
  color: var(--foreground);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .hiw-hero-title { font-size: 44px; }
  .workflow-step,
  .workflow-step-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .workflow-step-reverse .workflow-content { order: 0; }
  .workflow-step-reverse .workflow-visual  { order: 0; }
  .workflow-title { font-size: 30px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hiw-hero-title { font-size: 36px; }
  .hiw-cta-title { font-size: 30px; }
  .hiw-cta-actions { flex-direction: column; align-items: stretch; }
  .specs-grid { grid-template-columns: 1fr; }
}
