/* Page-specific styles for How It Works */

/* Hero */
#hero {
  padding: 160px 24px 100px;
  text-align: center;
  display: block;
  min-height: 0;
  height: auto;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--accent-raw),0.08) 0%, transparent 65%);
}

#hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hero h1 {
  font-family: var(--sans);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  max-width: 760px;
}

#hero .sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Steps */
#steps {
  padding: 80px 24px 100px;
}

.steps-label {
  text-align: center;
  margin-bottom: 72px;
}

.steps-label h1 {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

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

.step-row.reverse .step-text {
  order: 2;
}

.step-row.reverse .step-visual {
  order: 1;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-num-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num-big {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(var(--accent-raw),0.18);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.step-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(var(--accent-raw),0.25);
  border-radius: 100px;
  padding: 4px 12px;
}

.step-text h3 {
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.step-text p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 440px;
}

.step-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.step-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}

.step-tag.gold-tag {
  color: var(--gold);
  border-color: rgba(var(--accent-raw),0.2);
  background: rgba(var(--accent-raw),0.05);
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step 1 - form mockup */
.form-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 340px;
}

.form-mockup-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.form-mockup-bar-label {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-mockup-bar-val {
  font-size: 0.85rem;
  color: var(--cream);
  font-weight: 500;
}

.form-mockup-btn {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: block;
  margin-top: 16px;
}

/* Step 2 - planet grid */
.planet-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 340px;
}

.planet-header {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.planet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
}

.planet-row:last-child {
  border-bottom: none;
}

.planet-sym {
  width: 22px;
  color: var(--gold);
  font-size: 0.9rem;
}

.planet-name {
  color: var(--cream);
  flex: 1;
  margin-left: 8px;
}

.planet-pos {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: monospace;
}

.planet-house {
  color: var(--gold-dim);
  font-size: 0.72rem;
  margin-left: 10px;
}

/* Step 3 - AI mockup */
.ai-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-source {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-source-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.ai-source-icon.orange {
  background: rgba(var(--accent-raw),0.12);
}

.ai-source-icon.blue {
  background: rgba(100,130,220,0.1);
}

.ai-source-icon.green {
  background: rgba(80,180,120,0.1);
}

.ai-source-text {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.4;
}

.ai-source-text strong {
  color: var(--cream);
  display: block;
  font-weight: 600;
  margin-bottom: 1px;
}

.ai-arrow {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
}

.ai-output {
  background: rgba(var(--accent-raw),0.07);
  border: 1px solid rgba(var(--accent-raw),0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.ai-output-label {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.ai-line {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  margin-bottom: 6px;
}

.ai-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

/* Step 4 - branded mockup */
.brand-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 340px;
}

.brand-top {
  background: rgba(var(--accent-raw),0.08);
  border-bottom: 1px solid rgba(var(--accent-raw),0.15);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-mock {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.brand-logo-mock span {
  color: var(--gold);
}

.brand-domain {
  font-size: 0.7rem;
  color: var(--muted);
}

.brand-body {
  padding: 20px;
}

.brand-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 10px;
}

.brand-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.brand-line {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
}

.brand-line.w-full {
  width: 100%;
}

.brand-line.w-3q {
  width: 75%;
}

.brand-line.w-half {
  width: 50%;
}

.brand-actions {
  display: flex;
  gap: 8px;
}

.brand-act {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}

.brand-act.primary {
  background: var(--gold);
  color: #fff;
}

.brand-act.secondary {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Both worlds */
#both {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--accent-raw),0.04) 50%, transparent 100%);
}

.both-head {
  text-align: center;
  margin-bottom: 60px;
}

.both-head h1 {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.both-head p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.both-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.both-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.both-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.both-card:hover {
  border-color: rgba(var(--accent-raw),0.2);
  transform: translateY(-3px);
}

.both-card:hover::before {
  opacity: 1;
}

.both-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  background: rgba(var(--accent-raw),0.08);
  border: 1px solid rgba(var(--accent-raw),0.14);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.both-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.both-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.78;
}

/* WordPress section */
#wordpress {
  padding: 80px 24px 100px;
}

.wp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.wp-text .section-label {
  margin-bottom: 16px;
}

.wp-text h1 {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.wp-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 28px;
}

.wp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}

.wp-features li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.wp-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.65rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.wp-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wp-bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-r {
  background: rgba(255,95,86,0.45);
}

.dot-y {
  background: rgba(255,189,46,0.45);
}

.dot-g {
  background: rgba(39,201,63,0.45);
}

.wp-bar-url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 3px 10px;
}

.wp-code-body {
  padding: 24px;
}

.code-label {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

.code-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.code-block .kw {
  color: var(--gold);
}

.code-block .str {
  color: #9CDCFE;
}

.code-block .cmt {
  color: rgba(125,125,125,0.5);
}

.wp-gutenberg-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  margin-top: 4px;
}

.wp-gutenberg-pill::before {
  content: '◼';
  font-size: 0.5rem;
  color: var(--gold);
}

/* Final CTA */
#cta {
  padding: 100px 24px 120px;
  text-align: center;
  position: relative;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(var(--accent-raw),0.09) 0%, transparent 70%);
  pointer-events: none;
}

#cta h1 {
  font-family: var(--sans);
  font-size: 4.5rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

#cta p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.final-subtext {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 24px;
  display: block;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .step-row {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }

  .step-row.reverse .step-text {
    order: 1;
  }

  .step-row.reverse .step-visual {
    order: 2;
  }

  .step-text p {
    max-width: 100%;
  }

  .both-grid {
    grid-template-columns: 1fr;
  }

  .wp-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.75rem;
  }
}
