/* Cygnus Networks — dark terminal look, colors derived from the logo
   navy #254083, light blue #5EA5FC */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a1020;
  --bg-raise: #0e1730;
  --panel: #121d3c;
  --line: #26355e;
  --navy: #254083;
  --accent: #5ea5fc;
  --accent-soft: #8dbffd;
  --text: #dde5f4;
  --muted: #93a0be;
  --ok: #5fce9a;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--mono); letter-spacing: -0.02em; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--w); margin: 0 auto; padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-name {
  font-family: var(--mono); font-weight: 800; font-size: 1.15rem;
  color: var(--text); letter-spacing: -0.03em;
}
.brand-sub { color: var(--accent); font-weight: 500; margin-left: 0.45em; letter-spacing: 0.18em; font-size: 0.72em; text-transform: uppercase; }
.topbar nav { display: flex; align-items: center; gap: 1.4rem; font-family: var(--mono); font-size: 0.88rem; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.85rem;
}
.nav-cta:hover { border-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 4.5rem 1.5rem 5rem; border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: var(--w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 9fr);
  gap: 3.5rem; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  letter-spacing: 0.12em; margin: 0 0 1.2rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800;
  line-height: 1.18; margin: 0 0 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 34em; margin: 0 0 2rem; }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 0.92rem; font-weight: 500;
  padding: 0.7rem 1.3rem; border-radius: 7px; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #081022; }
.btn-primary:hover { background: var(--accent-soft); color: #081022; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* terminal window */
.term {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.term-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar .term-dot:first-child { background: var(--navy); }
.term-title { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: 0.5rem; }

.cap {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.5;
}
.cap th, .cap td {
  padding: 0.28rem 0.6rem; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.cap th {
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line);
  font-size: 0.7rem; letter-spacing: 0.06em;
}
/* fixed column widths so the stream doesn't reflow the table */
.cap th:nth-child(1) { width: 3.1rem; }   /* No.    */
.cap th:nth-child(2) { width: 5.5rem; }   /* Time   */
.cap th:nth-child(3) { width: 8.0rem; }   /* Source */
.cap th:nth-child(4) { width: 4.5rem; }   /* Proto  */
.cap td { color: var(--muted); }
.cap tbody tr:nth-child(odd) { background: rgba(37, 64, 131, 0.14); }
.p-dns    { color: #7fd7f0; }
.p-tcp    { color: var(--accent-soft); }
.p-tls    { color: #b7a6f7; }
.p-radius { color: #f0c777; }
.p-ospf   { color: #90d5b2; }
.p-snmp   { color: #f2a09b; }
.p-bgp    { color: #d9a9e8; }
.p-igmp   { color: #8fd9c9; }
.p-sip    { color: var(--accent); }
.p-icmp   { color: #c2cde4; }
.p-vrrp   { color: #e0b8d0; }
.p-dhcp   { color: #e8c9a0; }
.p-ntp    { color: #a9c7e8; }
.ok       { color: var(--ok); }

/* ---------- stats ---------- */

.stats { border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.stats dl {
  max-width: var(--w); margin: 0 auto; padding: 1.6rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.5rem;
}
.stats div { display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.stats dd { margin: 0; font-family: var(--mono); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.stats dt { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ---------- sections ---------- */

.section { max-width: var(--w); margin: 0 auto; padding: 4.5rem 1.5rem 1rem; }
.section h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.6rem; }
.prompt { color: var(--accent); margin-right: 0.4em; font-weight: 500; }
.section-lede { color: var(--muted); max-width: 46em; margin: 0 0 2.4rem; }

/* leistungen */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.6rem 1.7rem;
}
.card-tag {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.1em; margin: 0 0 0.7rem;
}
.card h3 { font-size: 1.12rem; margin: 0 0 0.6rem; }
.card p:last-child { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* projekte */
.projects { display: flex; flex-direction: column; gap: 1.3rem; }
.project {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.8rem 1.9rem;
}
.project-text { max-width: 62em; }
.project h3 { font-size: 1.12rem; margin: 0 0 0.3rem; }
.project-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin: 0 0 0.8rem; }
.project-text p:not(.project-meta) { margin: 0; color: var(--muted); font-size: 0.98rem; }
.project-text p.project-press { font-family: var(--mono); font-size: 0.78rem; margin-top: 0.9rem; }

/* ueber uns */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.person {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.6rem 1.7rem;
}
.person-tag { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin: 0 0 0.8rem; }
.person-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.person-head h3 { margin: 0; }
.person-head .person-role { margin: 0.2rem 0 0; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--line); background: #000;
  flex-shrink: 0;
}
.person h3 { font-size: 1.12rem; margin: 0; }
.person-role { font-family: var(--mono); font-size: 0.98rem; color: var(--muted); margin: 0.2rem 0 0.8rem; }
.person > p:last-child { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* kontakt */
#kontakt { padding-bottom: 4.5rem; }
.contact { display: grid; gap: 1.2rem; max-width: 46em; }
.contact-card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem 1.7rem; font-family: var(--mono); font-size: 0.95rem;
}
.contact-line { margin: 0.3rem 0; }
.contact-line .k { color: var(--muted); margin-right: 1em; }
.contact-note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-raise); }
.footer-inner {
  max-width: var(--w); margin: 0 auto; padding: 1.4rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1.4rem; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.built-claude {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  text-decoration: none; opacity: 0.6;
}
.built-claude:hover { opacity: 1; color: var(--muted); }
.built-claude svg { flex-shrink: 0; }

/* legal pages */
.legal { max-width: 46em; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal h1 { font-size: 1.6rem; }
.legal h2 { font-size: 1.1rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats dl { grid-template-columns: 1fr 1fr; }
  .cards, .people { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 0.8rem 1rem; }
  .topbar nav { gap: 0.9rem; font-size: 0.8rem; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .hero { padding: 3rem 1rem 3.5rem; }
  .section { padding: 3.2rem 1rem 0.5rem; }
  .stats dl { grid-template-columns: 1fr 1fr; padding: 1.3rem 1rem; }
  .cap { font-size: 0.68rem; }
  .cap th:nth-child(2), .cap td:nth-child(2) { display: none; }
}
