:root {
  --bg: #0b1220;
  --surface: #111b2e;
  --surface-2: #162238;
  --border: #233350;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-bg: rgba(56, 189, 248, 0.12);
  --green: #34d399;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #334155;
  --muted: #64748b;
  --heading: #0f172a;
  --accent: #0284c7;
  --accent-strong: #0369a1;
  --accent-bg: rgba(2, 132, 199, 0.1);
  --green: #10b981;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.brand-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--heading);
  text-decoration: none;
}

.controls {
  display: flex;
  gap: 8px;
}

.chip-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn:hover {
  border-color: var(--accent);
  color: var(--heading);
}

.hero {
  padding: 54px 0 36px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 32%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 8px;
}

.hero-role {
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-summary {
  max-width: 780px;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-summary strong {
  color: var(--heading);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-strong);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn-ghost:hover {
  background: var(--accent-bg);
}

.email-output {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  color: var(--heading);
}

.email-output[hidden] {
  display: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  box-shadow: var(--shadow);
}

.metric-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 3px;
}

.metric-lbl {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-head p {
  color: var(--muted);
  font-size: 14.5px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-kicker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.03rem;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

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

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-item h3 {
  font-size: 1.08rem;
  color: var(--heading);
}

.company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.dates {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.timeline-item ul {
  padding-left: 18px;
}

.timeline-item li {
  margin-bottom: 6px;
  font-size: 14.3px;
}

.timeline-item li strong {
  color: var(--heading);
}

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

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.cert-featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--surface) 0%, var(--accent-bg) 100%);
}

.cert-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 6px;
}

.cert-card h3 {
  font-size: 0.98rem;
  color: var(--heading);
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 13px;
  color: var(--muted);
}

.cert-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px !important;
  word-break: break-all;
}

.edu-strip {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.8px;
  color: var(--muted);
}

.edu-strip strong {
  color: var(--heading);
}

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

.stack-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}

.stack-box h3 {
  font-size: 0.98rem;
  color: var(--heading);
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.stack-hygiene {
  border-color: color-mix(in srgb, var(--green) 45%, var(--border));
}

.mini-list {
  padding-left: 17px;
  font-size: 13.5px;
  color: var(--muted);
}

.mini-list li {
  margin-bottom: 6px;
}

.n8n-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.n8n-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.n8n-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--heading);
  font-size: 14.5px;
}

.n8n-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12.8px;
}

.n8n-canvas {
  padding: 24px 20px 16px;
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--border) 85%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  overflow-x: auto;
}

.n8n-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 820px;
}

.n8n-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  min-width: 138px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.n8n-node:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.n8n-node.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.n8n-node-p1.is-active {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.n8n-node-p2.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.node-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.node-trigger { color: #fb923c; background: rgba(251, 146, 60, 0.14); }
.node-http { color: #38bdf8; background: rgba(56, 189, 248, 0.14); }
.node-code { color: #c084fc; background: rgba(192, 132, 252, 0.14); }
.node-if { color: #facc15; background: rgba(250, 204, 21, 0.14); }
.node-crit { color: #f87171; background: rgba(248, 113, 113, 0.15); }
.node-high { color: #34d399; background: rgba(52, 211, 153, 0.15); }

.node-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}

.node-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.n8n-arrow {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  user-select: none;
}

.n8n-branches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.n8n-branches .n8n-node {
  min-width: 175px;
}

.n8n-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.n8n-inspector {
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.inspector-title {
  font-size: 13.8px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.n8n-inspector p {
  font-size: 13.8px;
  color: var(--text);
}

.contact-box {
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 6px;
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 680px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .certs-grid { grid-template-columns: 1fr; }
  .timeline-top { flex-direction: column; }
}
