/* --- RESET & BASES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0d1117;
  color: #e6edf3;
  font-family: 'Syne', sans-serif;
  line-height: 1.5;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-tag {
  font-size: 0.75rem;
  color: #56d364;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: #f78166;
}

.hero-sub {
  font-size: 1rem;
  color: #8b949e;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  background: #f78166;
  color: #000;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
}

/* --- CHAOS --- */
.chaos {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.chaos h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

.chaos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #30363d;
  border-radius: 6px;
  overflow: hidden;
}

.chaos-col {
  background: #161b22;
  padding: 2rem;
  border-radius: 6px;
}

.chaos-col.bad  { border-top: 3px solid #f78166; }
.chaos-col.good { border-top: 3px solid #56d364; }

.chaos-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.chaos-col.bad  h3 { color: #f78166; }
.chaos-col.good h3 { color: #56d364; }

.chaos-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chaos-col ul li {
  background: #21262d;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #8b949e;
}

.chaos-col.bad ul li {
  color: #F7B2A6;
}

.chaos-col.good ul li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 2px solid #56d364;
  border-radius: 6px;
  padding: 0.8rem 1rem;
}

.hash { color: #79c0ff; font-size: 0.72rem; }
.msg  { color: #e6edf3; font-size: 0.82rem; font-weight: 700; }
.date { color: #8b949e; font-size: 0.68rem; }

/* --- COMMANDES --- */
.commands {
  padding: 4rem 2rem;
  background: #161b22;
}

.commands h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 auto 2rem auto;
  max-width: 900px;
}

.commands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.cmd-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cmd-card:hover {
  border-color: #e3b341;
  box-shadow: 0 0 12px rgba(227, 179, 65, 0.3),
              0 0 24px rgba(227, 179, 65, 0.1);
}

.cmd-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.cmd-name {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: #e6edf3;
}

.cmd-desc {
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cmd-code {
  background: #21262d;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #79c0ff;
  display: block;
  line-height: 1.5;
}

/* --- WORKFLOW --- */
.workflow {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.workflow h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.workflow-sub {
  color: #8b949e;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #f78166, #79c0ff, #56d364);
}

.workflow-step {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0 1.5rem 3.5rem;
  position: relative;
}

.step-dot {
  position: absolute;
  left: calc(1.2rem - 6px);
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #0d1117;
}

.step-dot.s1 { background: #f78166; }
.step-dot.s2 { background: #79c0ff; }
.step-dot.s3 { background: #56d364; }
.step-dot.s4 { background: #e3b341; }
.step-dot.s5 { background: #f78166; }

.step-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  flex: 1;
}

.step-number {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: #8b949e;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.6;
}

.step-cmd {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #79c0ff;
  background: #21262d;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

/* --- FOOTER --- */
.footer {
  background: #161b22;
  border-top: 1px solid #30363d;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer p {
  color: #8b949e;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #79c0ff;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid #30363d;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.footer-link:hover {
  border-color: #79c0ff;
  color: #fff;
}

.footer-credit {
  margin-top: 2rem;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
}

.footer-credit a {
  color: #8b949e;
  text-decoration: none;
}
/* --- RESPONSIVE --- */
@media (min-width: 600px) {
  .chaos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .commands-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- ANIMATIONS --- */
.workflow-step {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}

.workflow-step.visible {
  opacity: 1;
  transform: translateX(0);
}

