/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #22253a;
  --border: #2a2d3a;
  --text: #e1e4ed;
  --text-dim: #8b8fa3;
  --accent-zapier: #ff4a00;
  --accent-workato: #00b4d8;
  --accent-canva: #7b2ff7;
  --accent-green: #22c55e;
  --accent-yellow: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Nav === */
nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,17,23,.92);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: .875rem; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* === Hero === */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--accent-zapier), var(--accent-canva), var(--accent-workato)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; }

/* === Badge === */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.badge-free { background: rgba(34,197,94,.15); color: #4ade80; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .875rem; cursor: pointer;
  border: none; transition: all .2s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: #555; }
.btn-zapier { background: var(--accent-zapier); color: #fff; }
.btn-workato { background: var(--accent-workato); color: #000; }
.btn-canva { background: var(--accent-canva); color: #fff; }

/* === Grid === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.section { padding: 60px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.section-header p { color: var(--text-dim); margin-top: 8px; }

/* === Tool Cards === */
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all .25s; position: relative; overflow: hidden;
}
.tool-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.tool-card.zapier::before { background: var(--accent-zapier); }
.tool-card.workato::before { background: var(--accent-workato); }
.tool-card.canva::before { background: var(--accent-canva); }

.tool-card .icon { font-size: 2rem; margin-bottom: 16px; }
.tool-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.tool-card p { color: var(--text-dim); font-size: .9rem; margin-bottom: 20px; }
.tool-card .meta { display: flex; gap: 12px; font-size: .8rem; color: var(--text-dim); margin-bottom: 20px; }
.tool-card .meta span { background: rgba(255,255,255,.05); padding: 3px 10px; border-radius: 100px; }

/* === Learning Path === */
.path-steps { display: flex; flex-direction: column; gap: 0; }
.path-step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.path-step:last-child { border-bottom: none; }
.path-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
  border: 2px solid var(--border);
}
.path-num.done { background: var(--accent-green); border-color: var(--accent-green); color: #000; }
.path-step h4 { font-weight: 600; margin-bottom: 4px; }
.path-step p { color: var(--text-dim); font-size: .875rem; }

/* === Exercise Box === */
.exercise-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 16px 0;
}
.exercise-box h4 { font-weight: 600; margin-bottom: 8px; }
.exercise-box .difficulty {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
}
.diff-beginner { background: rgba(34,197,94,.15); color: #4ade80; }
.diff-intermediate { background: rgba(245,158,11,.15); color: #fbbf24; }
.diff-advanced { background: rgba(239,68,68,.15); color: #f87171; }

/* === Progress Bar === */
.progress-bar {
  height: 8px; background: var(--border); border-radius: 100px;
  overflow: hidden; margin: 12px 0;
}
.progress-fill { height: 100%; border-radius: 100px; transition: width .5s ease; }
.progress-fill.zapier { background: var(--accent-zapier); }
.progress-fill.workato { background: var(--accent-workato); }
.progress-fill.canva { background: var(--accent-canva); }

/* === Module Page === */
.module-header {
  padding: 60px 0 40px;
  text-align: center;
}
.module-header h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.module-header p { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; margin: 12px auto 0; }

.content-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
}
.content-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.content-card h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px; }
.content-card p, .content-card li { color: var(--text-dim); font-size: .925rem; line-height: 1.75; }
.content-card ul, .content-card ol { padding-left: 24px; margin: 12px 0; }
.content-card li { margin-bottom: 6px; }
.content-card code {
  background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .85rem;
}
.content-card pre {
  background: #0d0f15; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; overflow-x: auto; margin: 16px 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .85rem;
}
.content-card .highlight { color: var(--accent-yellow); }

/* === Checklist === */
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  padding: 10px 16px; background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: background .2s;
}
.checklist li:hover { background: rgba(255,255,255,.06); }
.checklist li.done { text-decoration: line-through; opacity: .6; }
.checklist .check {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.checklist li.done .check { background: var(--accent-green); border-color: var(--accent-green); }
.checklist li.done .check::after { content: '✓'; font-size: .75rem; font-weight: 700; color: #000; }

/* === Timeline === */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-green); border: 2px solid var(--bg);
}
.timeline-item h4 { font-weight: 600; margin-bottom: 4px; }
.timeline-item p { color: var(--text-dim); font-size: .875rem; }

/* === Resource Links === */
.resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.resource-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: all .2s;
}
.resource-link:hover { border-color: var(--border); background: rgba(255,255,255,.06); }
.resource-link .rl-icon { font-size: 1.25rem; }
.resource-link .rl-text { font-size: .875rem; }
.resource-link .rl-text small { color: var(--text-dim); display: block; font-size: .75rem; }

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center; color: var(--text-dim);
  font-size: .8rem; margin-top: 80px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* simplified for mobile */
  .resource-list { grid-template-columns: 1fr; }
}

/* === Print === */
@media print {
  body { background: #fff; color: #000; }
  .content-card { background: #fff; border: 1px solid #ddd; }
  nav, footer { display: none; }
}
