/* HUD tokens and FX mirrored from client/src/index.css + LandingPage.tsx
   (see Templates/Start Screen Style Guide.md). Keep in sync by hand. */
:root {
  --hud-bg:        #050d1a;
  --hud-primary:   #00b4d8;
  --hud-secondary: #00e5ff;
  --hud-accent:    #39ff88;
  --hud-panel-bg:  rgba(0, 180, 216, 0.04);
  --hud-border:    rgba(0, 180, 216, 0.45);
  --hud-glow:      rgba(0, 180, 216, 0.35);
  --hud-text:      rgba(0, 229, 255, 0.88);
  --hud-muted:     rgba(138, 214, 236, 0.92);
  --hud-grid:      rgba(0, 180, 216, 0.07);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --card-bg:        rgba(15, 23, 42, 0.72);
  --card-border:    rgba(0, 180, 216, 0.18);
  --accent:         #06b6d4;
  --accent-light:   rgba(6, 182, 212, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--hud-bg);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Keyframes ───────────────────────────────────────────────────── */
@keyframes rotate-cw  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(3%, -4%) scale(1.06); }
  66%      { transform: translate(-2%, 3%) scale(0.97); }
}
@keyframes scan-sweep {
  0%   { top: -2%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}
@keyframes hud-pulse    { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes corner-flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 8px var(--hud-glow); }
  50%      { box-shadow: 0 0 24px var(--hud-glow), 0 0 48px rgba(0, 180, 216, 0.15); }
}

/* ── Background FX ───────────────────────────────────────────────── */
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.landing-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--hud-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hud-grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.landing-blob-1, .landing-blob-2 { position: absolute; border-radius: 50%; }
.landing-blob-1 {
  width: min(70vw, 700px); height: min(70vw, 700px);
  background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  top: -25%; right: -15%;
  animation: blob-drift 45s ease-in-out infinite;
}
.landing-blob-2 {
  width: min(55vw, 550px); height: min(55vw, 550px);
  background: radial-gradient(ellipse at center, rgba(57, 255, 136, 0.06) 0%, transparent 70%);
  bottom: -20%; left: -10%;
  animation: blob-drift 60s ease-in-out infinite reverse;
}
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-rotate-cw      { transform-origin: 50px 50px; animation: rotate-cw 40s linear infinite; }
.ring-rotate-ccw     { transform-origin: 50px 50px; animation: rotate-ccw 60s linear infinite; }
.ring-rotate-cw-slow { transform-origin: 50px 50px; animation: rotate-cw 80s linear infinite; }

.page { position: relative; z-index: 1; }

/* ── HUD top bar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 32px;
  border-bottom: 1px dashed rgba(0, 180, 216, 0.4);
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status { display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: 0.1em; white-space: nowrap; }
.status .online { color: var(--hud-accent); font-size: 11px; }
.status .online::before { content: '◈'; margin-right: 8px; animation: hud-pulse 2s ease infinite; display: inline-block; }
.status .sep { color: rgba(0, 180, 216, 0.35); font-size: 11px; }
.status .brand { color: var(--hud-primary); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.link {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hud-muted); transition: color 0.2s;
}
.nav a.link:hover { color: var(--hud-secondary); }

/* DE | EN toggle, styled like the other nav links */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; font: inherit; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  color: var(--hud-muted);
  border: 0; background: none;
  transition: color 0.2s;
}
.lang-toggle:hover { color: var(--hud-secondary); }
.lang-toggle:focus-visible, .hud-btn:focus-visible, .nav a.link:focus-visible { outline: 1px solid var(--hud-secondary); outline-offset: 2px; }
.lang-toggle [data-lang] { opacity: 0.5; }
.lang-toggle [data-lang].active { opacity: 1; color: var(--hud-secondary); }
.lang-toggle .bar { color: rgba(0, 180, 216, 0.4); margin: 0 2px; }

.hud-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hud-secondary);
  border: 1px solid rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.18);
  padding: 16px 40px;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.hud-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.4), 0 0 64px rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.9);
}
.hud-btn:active { transform: scale(0.97); }
.hud-btn .sweep {
  position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.7), transparent);
  animation: scan-sweep 2.5s linear infinite;
}
.hud-btn.small { padding: 7px 14px; font-size: 10px; letter-spacing: 0.14em; }
.hud-btn.ghost {
  color: var(--hud-primary); border-color: rgba(0, 180, 216, 0.4);
  background: transparent; box-shadow: none;
}
.hud-btn.ghost:hover { color: var(--hud-secondary); background: rgba(0, 180, 216, 0.08); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 49px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px;
}
.panel {
  position: relative; overflow: hidden; width: 100%; max-width: 768px;
  padding: 40px;
  border: 1px solid var(--hud-border);
  background: var(--hud-panel-bg);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.12), inset 0 0 30px rgba(0, 180, 216, 0.03);
  margin-bottom: 32px;
}
.corner {
  position: absolute; width: 22px; height: 22px;
  border-color: rgba(0, 180, 216, 0.7); border-style: solid;
  animation: corner-flash 3s ease infinite;
}
.corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.panel .scan {
  position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
  animation: scan-sweep 4s linear infinite;
}
.panel-label {
  text-align: left; font-size: 9px; letter-spacing: 0.12em;
  color: var(--hud-muted);
  border-bottom: 1px dashed rgba(0, 180, 216, 0.2);
  padding-bottom: 8px; margin-bottom: 24px;
  white-space: nowrap; overflow: hidden;
}
.portrait {
  width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 50%;
  border: 2px solid rgba(0, 180, 216, 0.5);
  padding: 4px; background: rgba(0, 180, 216, 0.08);
  animation: glow-breathe 2.5s ease infinite;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.hero h1 {
  margin: 0 0 12px; font-weight: 900; line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-primary);
}
.tagline {
  margin: 0 0 24px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hud-muted);
}
.mission { margin: 0 auto 24px; max-width: 540px; font-size: 15px; line-height: 1.7; color: var(--text-primary); }
.ticker { min-height: 20px; font-size: 11px; letter-spacing: 0.1em; color: var(--hud-accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Stats strip ─────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed rgba(0, 180, 216, 0.3);
  border-bottom: 1px dashed rgba(0, 180, 216, 0.3);
  background: rgba(5, 13, 26, 0.7);
}
.stat { padding: 28px 16px; text-align: center; }
.stat + .stat { border-left: 1px dashed rgba(0, 180, 216, 0.2); }
.stat .num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-primary); letter-spacing: 0.02em; }
.stat .lbl { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hud-muted); }

/* ── Legal pages ─────────────────────────────────────────────────── */
.legal-page h2 { font-size: 18px; margin: 32px 0 8px; color: var(--text-primary); }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.legal-page ul { padding-left: 20px; }
.legal-page .todo { background: rgba(245, 158, 11, 0.18); color: #f59e0b; padding: 0 4px; }

/* ── Sections ────────────────────────────────────────────────────── */
section.block { padding: 88px 24px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.eyebrow::before { content: '══ '; opacity: 0.5; }
h2.title {
  margin: 0 0 16px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--text-primary);
}
.lead { max-width: 680px; margin: 0 0 40px; font-size: 16px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.card p { margin: 0; font-size: 14px; }

.badge {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); color: var(--accent);
  font-size: 13px; font-weight: 700;
}
.badge svg { width: 20px; height: 20px; }

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

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin: 0 0 16px; font-size: 15px; }
.about-text strong { color: var(--text-primary); font-weight: 600; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hud-muted); }
.fact .v { font-size: 14px; color: var(--text-primary); }

/* Lists */
.dots li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 14px; }
.dots li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.dots li strong { color: var(--text-primary); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 500;
  background: var(--accent-light); color: var(--accent);
}

.role { display: flex; gap: 16px; align-items: flex-start; }

/* Projects */
.projects { align-items: start; }
.project { padding: 0; }
.project summary { display: flex; gap: 16px; align-items: center; padding: 20px; cursor: pointer; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project summary:focus-visible { outline: 1px solid var(--hud-secondary); outline-offset: -2px; }
.project .ptxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.project .pmeta { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project .ptitle { font-size: 15px; color: var(--text-primary); line-height: 1.4; font-weight: 500; }
.project .chev { flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.25s; margin-right: 4px; }
.project[open] .chev { transform: rotate(-135deg); }
.project .pbody { padding: 0 20px 22px 20px; border-top: 1px dashed rgba(0, 180, 216, 0.25); }
.project .pbody h4 { margin: 18px 0 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hud-muted); font-weight: 600; }
.project .pbody p { color: var(--text-secondary); line-height: 1.7; }

/* Platform promo */
.platform {
  position: relative; overflow: hidden;
  border: 1px solid var(--hud-border);
  background: var(--hud-panel-bg);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.12), inset 0 0 30px rgba(0, 180, 216, 0.03);
  padding: 48px 40px;
}
.platform .scan {
  position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
  animation: scan-sweep 6s linear infinite;
}
.platform h2.title { color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 900; }
.tool { display: flex; flex-direction: column; gap: 12px; }
.tool .badge { width: 44px; height: 44px; }
.tool .pill {
  align-self: flex-start; margin-top: auto; border-radius: 999px;
  padding: 5px 12px; font-size: 11px; font-weight: 500;
}
.services { margin-top: 40px; }
.services a.card { color: inherit; text-decoration: none; cursor: pointer; }
.services a.card .pill::after { content: " \2197"; }
.services a.card:hover h3 { color: var(--accent); }
.services h3.sub { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hud-muted); margin: 0 0 16px; font-weight: 600; }
.service-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.service {
  border: 1px dashed rgba(0, 180, 216, 0.3); padding: 14px 16px;
  font-size: 13px; color: var(--text-primary);
}
.platform-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.platform-cta .note { font-size: 12px; color: var(--hud-muted); letter-spacing: 0.06em; }

/* Certifications */
.cert { display: flex; gap: 16px; align-items: flex-start; }
.cert small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.textlink { color: var(--accent); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 20px; }
.textlink:hover { text-decoration: underline; }

.cv-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cv-info { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 320px; }
.cv-card .hud-btn { flex-shrink: 0; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
footer {
  border-top: 1px dashed rgba(0, 180, 216, 0.3);
  background: rgba(5, 13, 26, 0.85);
  padding: 32px 24px;
}
.foot { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot img { width: 120px; height: auto; }
.foot .legal { font-size: 12px; line-height: 1.7; }
.foot .legal strong { color: var(--text-primary); font-weight: 600; }
.foot .caption { width: 100%; text-align: center; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hud-muted); padding-top: 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav a.link { display: none; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .status .sep, .status .ver { display: none; }
  .status { min-width: 0; gap: 10px; }
  .status .brand { display: none; }
  .nav { gap: 12px; flex-shrink: 0; }
  .hero { padding: 32px 16px; }
  .panel { padding: 28px 20px; }
  .hud-btn { padding: 14px 24px; font-size: 12px; letter-spacing: 0.14em; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { min-width: 0; padding: 22px 10px; }
  .stat .num { font-size: 1.5rem; overflow-wrap: anywhere; }
  .stat .lbl { letter-spacing: 0.08em; overflow-wrap: anywhere; }
  .stat:nth-child(n+3) { border-top: 1px dashed rgba(0, 180, 216, 0.2); }
  section.block { padding: 64px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .platform { padding: 32px 20px; }
  .service-list { grid-template-columns: 1fr; }
  .contact-links .hud-btn { max-width: 100%; font-size: 11px; letter-spacing: 0.06em; padding: 14px 18px; overflow-wrap: anywhere; }
  .card { padding: 22px; }
  h2.title { overflow-wrap: anywhere; hyphens: auto; }
  .cv-card .hud-btn { width: 100%; justify-content: center; text-align: center; white-space: normal; letter-spacing: 0.08em; }
}

.project .plinks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.project .plinks .textlink { margin-top: 8px; }
