:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: #111a2e;
  --surface-2: #16223c;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6edf7;
  --muted: #8fa3bf;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #a78bfa;
  --green: #34d399;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #818cf8 55%, #a78bfa 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(129, 140, 248, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-3);
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
}

/* ---------- Layout ---------- */

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

section {
  padding: 96px 0;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gradient);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.02rem;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--text);
}

.brand .logo {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text);
  background: var(--gradient);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #04121e;
  box-shadow: 0 10px 30px rgba(99, 140, 248, 0.35);
}

.btn-primary:hover {
  color: #04121e;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99, 140, 248, 0.45);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  padding: 120px 0 100px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typing-line {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-top: 20px;
  min-height: 1.6em;
}

.typing-line .cursor {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  margin-top: 22px;
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}

.stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .lbl {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  box-shadow: var(--shadow);
}

.hero-card-inner {
  background: var(--surface);
  border-radius: calc(var(--radius) - 1px);
  padding: 28px;
}

.term {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}

.term .prompt { color: var(--green); }
.term .caret { color: var(--accent); }

.hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.node {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.node .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.node .val {
  font-size: 0.95rem;
  font-weight: 600;
}

.node .sub {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

/* ---------- Cards / showcase ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #04121e;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.card .arrow {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card .arrow span {
  transition: transform 0.25s ease;
}

.card:hover .arrow span {
  transform: translateX(5px);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 42px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-item .where {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.timeline-item ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 8px;
}

.timeline-item li::marker {
  color: var(--accent);
}

/* ---------- Tag cloud ---------- */

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.skill-group .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tag .dl {
  color: var(--muted);
  font-size: 0.72rem;
}

.skill-bars .bar-row {
  margin-bottom: 18px;
}

.skill-bars .bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.skill-bars .bar-top .pct {
  font-family: var(--font-mono);
  color: var(--muted);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Feature list / infogram ---------- */

.infograph {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.ino {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.ino .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.ino h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ino p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
}

.contact-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #04121e;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-card a, .contact-card span {
  font-size: 0.98rem;
  color: var(--text);
  word-break: break-word;
}

/* ---------- Impressum ---------- */

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 760px;
}

.legal-card h4 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--accent);
}

.legal-card h4:first-child {
  margin-top: 0;
}

.legal-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
}

.legal-card dt {
  color: var(--muted);
}

.legal-card dd {
  color: var(--text);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #04121e;
}

.cta-band h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
}

.cta-band p {
  margin-top: 8px;
  color: rgba(4, 18, 30, 0.75);
}

.cta-band .btn {
  background: #04121e;
  color: #fff;
}

.cta-band .btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 30px;
  margin-top: 40px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer h4 {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer ul a {
  color: var(--text);
  font-size: 0.92rem;
}

.footer ul a:hover {
  color: var(--accent);
}

.footer .brand-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Page header ---------- */

.page-head {
  padding: 88px 0 30px;
}

.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.page-head .crumb a {
  color: var(--muted);
}

.page-head .crumb a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  section {
    padding: 72px 0;
  }
  .cta-band {
    padding: 34px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .legal-card dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}