/* ============================================================
   vinco — shared design system (site.css)
   Used by: io-nio.de, vinco-it.de, and future sites.
   Colors are tokens. Dark mode follows the OS setting via
   prefers-color-scheme (no manual toggle) by overriding tokens.
   ============================================================ */

/* ---- Self-hosted Inter (DSGVO-clean, no CDN) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2');
}

/* ---- Tokens (light) ---- */
:root {
  --primary: #0071e3;
  --primary-2: #3aa0ff;
  --primary-ink: #0a4fa0;
  --primary-dark: #005bbf;
  --io: #3aab2e;
  --io-ink: #2f8a25;
  --io-rgb: 58, 171, 46;
  --nio: #e5484d;
  --eigenes: #007aff;
  --tag: #26c6f9;
  --ink: #0b1f33;
  --body: #3a4a5c;
  --muted: #718396;
  --line: #e6edf4;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  /* surfaces (kept separate from --ink so dark mode doesn't flip them) */
  --surface: #ffffff;
  --surface-border: #e1e9f2;
  --header-bg: rgba(255, 255, 255, .85);
  --menu-panel-bg: #ffffff;
  --hero-top: #f7fafd;
  --dot-grid: rgba(11, 31, 51, .05);

  /* footer */
  --footer-bg: #0b1f33;
  --footer-fg: #b9c7d6;
  --footer-fg-strong: #ffffff;
  --footer-muted: #8aa0b5;
  --footer-border: #1b324a;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 14px 36px rgba(0, 113, 227, .12);
  --shadow-lift: 0 18px 40px rgba(0, 80, 180, .14);
  --container: 1140px;
  --fs-h1: clamp(32px, 4.8vw, 54px);
  --fs-h2: clamp(28px, 4vw, 40px);
}

/* ---- Tokens (dark, follows OS setting) ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3aa0ff;
    --primary-2: #5cb0ff;
    --primary-ink: #9cc9ff;
    --primary-dark: #2b8ae6;
    --io: #46c93a;
    --io-ink: #6be05f;
    --io-rgb: 70, 201, 58;
    --nio: #ff6b66;
    --eigenes: #5cb0ff;
    --tag: #3ec7f0;
    --ink: #f2f6fb;
    --body: #c7d3df;
    --muted: #8fa3b8;
    --line: #232e3b;
    --bg: #0d1219;
    --bg-soft: #131a23;

    --surface: #141b24;
    --surface-border: #26313f;
    --header-bg: rgba(13, 18, 25, .85);
    --menu-panel-bg: #141b24;
    --hero-top: #121a24;
    --dot-grid: rgba(255, 255, 255, .04);

    --footer-bg: #0a0e14;
    --footer-fg: #9fb0c3;
    --footer-fg-strong: #f2f6fb;
    --footer-muted: #6b7c8f;
    --footer-border: #1f2a37;

    --shadow: 0 14px 36px rgba(0, 0, 0, .5);
    --shadow-lift: 0 18px 40px rgba(0, 0, 0, .55);
  }
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -0.03em; }
section { padding: 88px 0; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
/* pill = eyebrow variant used in hero */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-ink); background: rgba(0,113,227,.08);
  border: 1px solid rgba(0,113,227,.16); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: 16px; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,113,227,.30), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,113,227,.38); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--surface-border); box-shadow: 0 1px 2px rgba(11,31,51,.04); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 50px; display: block; }
.wordmark { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); }
.wordmark .brand-dot { color: var(--primary); }
.wordmark.light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--hero-top), var(--bg)); padding: 92px 0 84px; }
.hero.center { text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 88% 4%, rgba(58,160,255,.20), transparent 62%),
    radial-gradient(52% 52% at 6% 0%, rgba(0,113,227,.12), transparent 55%);
}
/* subtle dot-grid texture, faded toward bottom */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: var(--fs-h1); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 540px; }
.hero.center p.lead, .hero-inner p.lead { margin-left: auto; margin-right: auto; }
.hero.center .hero-actions, .hero-inner .hero-actions { justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 24px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero.center .hero-trust, .hero-inner .hero-trust { justify-content: center; }
.dot, .status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--io);
  box-shadow: 0 0 0 4px rgba(var(--io-rgb),.18);
  flex: 0 0 8px;
  animation: status-dot-blink 2.4s ease-in-out infinite;
}
.dot::after, .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--io);
  pointer-events: none;
  animation: status-dot-pulse 2.4s ease-out infinite;
}
@keyframes status-dot-blink {
  0%, 100% { opacity: .8; box-shadow: 0 0 0 4px rgba(var(--io-rgb),.12); }
  45% { opacity: 1; box-shadow: 0 0 0 4px rgba(var(--io-rgb),.22), 0 0 10px rgba(var(--io-rgb),.55); }
}
@keyframes status-dot-pulse {
  0%, 35% { opacity: 0; transform: scale(1); }
  45% { opacity: .38; }
  75%, 100% { opacity: 0; transform: scale(2.8); }
}

/* ---- Chips ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.chip-io { background: rgba(58,171,46,.14); color: var(--io-ink); }
.chip-nio { background: rgba(229,72,77,.12); color: var(--nio); }
.chip-eigenes { background: rgba(0,122,255,.12); color: var(--eigenes); }
.chip-tag { background: var(--tag); color: #fff; }

/* ---- Hierarchy mock ---- */
.mock { position: relative; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: 0 24px 50px rgba(0,80,180,.16); padding: 22px; }
.mock-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.mock-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.tree { display: grid; gap: 2px; }
.node { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.node:hover { background: var(--bg-soft); }
.node.hl { background: linear-gradient(90deg, rgba(0,113,227,.06), transparent); }
.node .lvl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-2); width: 70px; flex: 0 0 auto; }
.node .nm { font-weight: 600; color: var(--ink); font-size: 14px; }
.node .branch { color: var(--surface-border); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; white-space: pre; }
.node .chip { margin-left: auto; }
.mock-note { margin-top: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 13px; color: var(--body); }
.mock-note small { color: var(--muted); }

/* ---- Card grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--primary-2); }
.card .icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  color: var(--primary);
  background: linear-gradient(140deg, rgba(0,113,227,.10), rgba(58,160,255,.16));
  border: 1px solid rgba(0,113,227,.12); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.card .more { font-weight: 600; color: var(--primary); font-size: 15px; display: inline-block; margin-top: 10px; }
.card .more:hover { text-decoration: underline; }
.card .chips { display: flex; gap: 8px; margin-top: 6px; }
.card-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.ai-feature-card {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}
.ai-feature-card h3 { margin-top: 4px; }
.ai-feature-card .tag { margin-bottom: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: rgba(0,113,227,.08); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }

/* section tints */
.decider, .leistungen, .founder { background: var(--bg-soft); }
.decider .card, .why .card { border-color: var(--surface-border); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; }
.step .num { counter-increment: step; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.step .num::before { content: counter(step); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---- Founder / About ---- */
.founder-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.founder-photo, .about-photo { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); }
.founder-photo img, .about-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .ph { text-align: center; }
.founder-photo .initials, .about-photo .initials { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; }
.founder-photo .cap { font-size: 13px; opacity: .85; margin-top: 4px; }
.founder blockquote, .about blockquote { font-size: 19px; color: var(--ink); line-height: 1.55; margin: 0 0 18px; font-weight: 500; }
.founder .who, .about .who { font-weight: 700; color: var(--ink); }
.founder .role, .about .role { color: var(--muted); font-size: 15px; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-radius: 22px; padding: 56px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.15); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); position: relative; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin: 14px auto 28px; max-width: 580px; position: relative; }
.cta-band .btn { position: relative; }

/* ---- Footer ---- */
footer { background: var(--footer-bg); color: var(--footer-fg); padding: 60px 0 30px; }
.foot-grid { display: flex; flex-wrap: nowrap; gap: 24px 32px; justify-content: space-between; align-items: flex-start; }
.foot-grid > div { flex: 0 1 auto; min-width: 0; }
.foot-grid > div:first-child { max-width: 360px; }
.foot-logo img { height: 90px; }
footer h4 { color: var(--footer-fg-strong); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a:hover { color: var(--footer-fg-strong); }
footer .blurb { color: var(--footer-muted); font-size: 15px; margin-top: 16px; max-width: 330px; }
/* address contact block — left-aligned content, positioned by the footer flex row */
.foot-contact { display: flex; gap: 10px; align-items: flex-start; color: var(--footer-muted); font-size: 14px; font-style: normal; line-height: 1.7; }
.foot-contact svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; color: var(--primary-2); }
.foot-contact .rows span { display: block; }
.foot-contact .rows .name { color: var(--footer-fg-strong); font-weight: 600; }
.foot-bottom { border-top: 1px solid var(--footer-border); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--footer-muted); }

/* ---- iO-niO logo palette ---- */
.site-ionio {
  --primary: #00b2fe;
  --primary-2: #26c6f9;
  --primary-ink: #006b99;
  --primary-dark: #0096d7;
  --io: #72e128;
  --io-ink: #3d8c13;
  --io-rgb: 114, 225, 40;
  --nio: #ff4d49;
  --eigenes: #00b2fe;
  --tag: #26c6f9;
  --classic-primary: #0071e3;
  --classic-primary-2: #3aa0ff;
  --shadow: 0 14px 36px rgba(0,178,254,.16);
  --shadow-lift: 0 18px 40px rgba(0,178,254,.18);
}
.site-ionio .hero::before {
  background:
    radial-gradient(46% 58% at 92% 3%, rgba(114,225,40,.16), transparent 62%),
    radial-gradient(45% 55% at 5% 5%, rgba(255,77,73,.11), transparent 60%),
    radial-gradient(58% 58% at 55% 0%, rgba(38,198,249,.18), transparent 65%);
}
.site-ionio .pill {
  color: var(--primary-ink);
  background: linear-gradient(90deg, rgba(114,225,40,.10), rgba(38,198,249,.12), rgba(255,77,73,.08));
  border-color: rgba(38,198,249,.28);
}
.site-ionio .btn-primary {
  box-shadow: 0 10px 24px rgba(0,178,254,.30), inset 0 1px 0 rgba(255,255,255,.28);
}
.site-ionio .btn-primary:hover { box-shadow: 0 14px 30px rgba(0,178,254,.38); }
.site-ionio .chip-io { background: rgba(114,225,40,.15); }
.site-ionio .chip-nio { background: rgba(255,77,73,.12); }
.site-ionio .chip-eigenes { background: rgba(0,178,254,.12); }
.site-ionio .eyebrow { color: var(--classic-primary); }
.site-ionio .card:hover { border-color: var(--classic-primary-2); }
.site-ionio .card .icon {
  color: var(--classic-primary);
  background: linear-gradient(140deg, rgba(0,113,227,.10), rgba(58,160,255,.16));
  border-color: rgba(0,113,227,.12);
}
.site-ionio .node.hl { background: linear-gradient(90deg, rgba(0,113,227,.06), transparent); }
.site-ionio .cta-band {
  background:
    radial-gradient(circle at 92% 0%, rgba(255,77,73,.88), transparent 34%),
    radial-gradient(circle at 4% 100%, rgba(114,225,40,.72), transparent 38%),
    linear-gradient(135deg, #009ee5, #26c6f9);
}
.site-ionio .cta-band::after { background: rgba(255,255,255,.18); }
@media (prefers-color-scheme: dark) {
  .site-ionio {
    --primary: #26c6f9;
    --primary-2: #55d4fb;
    --primary-ink: #8ae1fc;
    --primary-dark: #00b2fe;
    --io: #72e128;
    --io-ink: #9aec63;
    --classic-primary: #3aa0ff;
    --classic-primary-2: #5cb0ff;
  }
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .status-dot, .dot::after, .status-dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .steps, .founder-grid, .about-grid { grid-template-columns: 1fr; }
  .ai-feature-card { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { flex-direction: column; }
  .hero .mock { transform: none; max-width: 440px; width: 100%; padding: 16px; overflow: hidden; }
  .founder-photo, .about-photo { max-width: 240px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--menu-panel-bg); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px; }
  .cta-band { padding: 40px 24px; }
  section { padding: 64px 0; }
  .nav-cta .btn-primary { display: none; }
  .hero-trust { flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
  .hero-trust .dot, .hero-trust .status-dot { flex: 0 0 8px; margin-top: 7px; }
  .mock .node { padding: 6px 4px; gap: 6px; flex-wrap: nowrap; }
  .mock .node .lvl { width: 52px; font-size: 10px; }
  .mock .node .nm { font-size: 12.5px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .mock .node .branch { font-size: 12px; }
  .mock .node .chip { flex: 0 0 auto; }
}

.site-vinco header .wordmark {
  font-size: 32px;
  line-height: 1;
}
