/* ============================================================
   EIDEVS — workflow.css
   ============================================================ */

/* ============================================================
   WORKFLOW HERO
   ============================================================ */
.workflow-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.workflow-hero .container { position: relative; z-index: 1; }

.workflow-hero-orb-1 { width: 480px; height: 480px; top: -180px; left: -100px; }
.workflow-hero-orb-2 { width: 360px; height: 360px; bottom: -80px; right: -60px; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-section { padding: 56px 0 var(--section-padding); }

.process-header { max-width: 600px; margin: 0 auto 72px; text-align: center; }

/* ── Vertical spine ── */
.process-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Central line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-orange) 10%,
    rgba(255,123,0,0.3) 60%,
    rgba(255,123,0,0.1) 90%,
    transparent 100%
  );
}

/* ── Single step ── */
.process-step {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  position: relative;
  min-height: 120px;
  padding: 0 0 56px;
}

/* Left-aligned steps (odd) */
.process-step.left .step-content  { grid-column: 1; text-align: right; padding-right: 48px; }
.process-step.left .step-node     { grid-column: 2; }
.process-step.left .step-spacer   { grid-column: 3; }

/* Right-aligned steps (even) */
.process-step.right .step-spacer  { grid-column: 1; }
.process-step.right .step-node    { grid-column: 2; }
.process-step.right .step-content { grid-column: 3; text-align: left; padding-left: 48px; }

/* ── Node (circle on the line) ── */
.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-node-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-orange);
  box-shadow: 0 0 0 6px rgba(255,123,0,0.07), 0 0 28px rgba(255,123,0,0.18);
  transition: var(--t-mid);
  flex-shrink: 0;
}

.process-step:hover .step-node-circle {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(255,123,0,0.12), 0 0 48px rgba(255,123,0,0.35);
}

/* Connector tick below circle */
.step-node::after {
  content: '';
  display: block;
  width: 1px;
  flex: 1;
  background: rgba(255,123,0,0.18);
  margin-top: 4px;
}

/* ── Step Content ── */
.step-content {
  padding-top: 8px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 8px;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 14px;
}

.step-detail-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.step-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* right-aligned reverse the flex */
.process-step.left .step-detail { flex-direction: row-reverse; }
.process-step.left .step-detail-list { align-items: flex-end; }

.step-detail i {
  color: var(--accent-orange);
  font-size: 11px;
  width: 14px;
  flex-shrink: 0;
}

/* ── Duration badge ── */
.step-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,123,0,0.07);
  border: 1px solid rgba(255,123,0,0.2);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 12px;
}
.step-duration i { font-size: 10px; }

/* Glass card wrapper for step content */
.step-content-card {
  background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.process-step:hover .step-content-card {
  border-color: rgba(255,123,0,0.2);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}

/* ============================================================
   WHAT TO EXPECT STRIP
   ============================================================ */
.expect-section {
  padding: var(--section-padding) 0;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.expect-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--t-mid), border-color var(--t-mid);
}
.expect-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,123,0,0.22);
}

.expect-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,123,0,0.08);
  border: 1px solid rgba(255,123,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--accent-orange);
  margin: 0 auto 16px;
  transition: background var(--t-mid);
}
.expect-card:hover .expect-icon { background: rgba(255,123,0,0.15); }

.expect-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.expect-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   CONTRACT DOWNLOAD SECTION
   ============================================================ */
.contract-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.contract-inner {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  position: relative;
}

/* Left: info panel */
.contract-info {
  padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(140deg, rgba(255,123,0,0.06), transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.contract-info::after {
  content: '';
  position: absolute;
  top: 10%; bottom: 10%;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.contract-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.contract-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.15;
}

.contract-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contract-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.contract-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.contract-item i { color: #2ecc71; font-size: 12px; width: 14px; }

/* Right: PDF preview visual */
.contract-preview {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* Background grid on preview side */
.contract-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,123,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,123,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Fake PDF page */
.pdf-mockup {
  width: 200px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  animation: pdf-float 5s ease-in-out infinite;
}

@keyframes pdf-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%       { transform: translateY(-12px) rotate(-1.5deg); }
}

/* Page 2 shadow behind */
.pdf-mockup::before {
  content: '';
  position: absolute;
  bottom: -10px; left: 10px; right: -10px;
  height: 100%;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  z-index: -1;
}

.pdf-header {
  background: var(--bg-void);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-logo-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
}
.pdf-logo-text span { color: var(--accent-orange); }

.pdf-body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pdf-line { height: 5px; background: #1a1a2e; border-radius: 2px; }
.pdf-line.title  { height: 8px; width: 70%; background: #0a0a1e; margin-bottom: 6px; }
.pdf-line.short  { width: 55%; }
.pdf-line.medium { width: 78%; }
.pdf-line.full   { width: 100%; background: #e8e8f0; }
.pdf-line.med    { width: 85%; background: #e8e8f0; }
.pdf-line.sm     { width: 60%; background: #e8e8f0; }

.pdf-divider { height: 1px; background: #ddd; margin: 6px 0; }

.pdf-sig-area {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  gap: 10px;
}
.pdf-sig {
  flex: 1;
  border-top: 1px solid #bbb;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pdf-sig .pdf-line { background: #ccc; }

/* Download button styled differently on this section */
.btn-download {
  background: linear-gradient(130deg, var(--accent-orange), var(--accent-orange-dim));
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
  font-size: 12.5px;
  padding: 14px 28px;
}
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px var(--accent-glow), 0 10px 28px rgba(0,0,0,0.4);
}

/* ============================================================
   WORKFLOW CTA
   ============================================================ */
.workflow-cta {
  padding: var(--section-padding) 0;
  text-align: center;
}

.workflow-cta-inner {
  border: 1px solid rgba(255,123,0,0.2);
  border-radius: var(--r-xl);
  padding: clamp(56px, 8vw, 88px) clamp(24px, 6vw, 72px);
  background: linear-gradient(140deg, rgba(255,123,0,0.06), rgba(26,63,168,0.06));
  position: relative;
  overflow: hidden;
}
.workflow-cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Collapse timeline to single column */
  .process-timeline::before { left: 24px; }

  .process-step {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto;
  }

  .process-step.left .step-content,
  .process-step.right .step-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding-left: 28px;
    padding-right: 0;
  }
  .process-step.left .step-node,
  .process-step.right .step-node {
    grid-column: 1;
    grid-row: 1;
  }
  .process-step.left .step-detail { flex-direction: row; }
  .process-step.left .step-detail-list { align-items: flex-start; }
  .step-node-circle { width: 44px; height: 44px; font-size: 13px; }
  .step-content-card { padding: 20px; }

  .process-step.left .step-spacer,
  .process-step.right .step-spacer { display: none; }

  .expect-grid { grid-template-columns: repeat(2, 1fr); }
  .contract-inner { grid-template-columns: 1fr; }
  .contract-info::after { display: none; }
  .contract-preview { padding: 48px 24px; }
}

@media (max-width: 640px) {
  .process-timeline::before { display: none; }
  .process-step {
    grid-template-columns: 44px 1fr;
  }
  .expect-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .expect-grid { grid-template-columns: 1fr; }
}