/* ==========================================================================
   PilotOS — Website Designsystem
   Marke gemäß marke_pilotos.md (verbindlich)
   Navy #0A1626 / #132A49 · Blau #2F6BFF / #3B82F6 · Teal #17B891
   Ampel rot #E5484D · gelb #F5B301 · grün #17B891 · Ring #A9CCF5
   ========================================================================== */

:root {
  --navy-900: #0A1626;
  --navy-800: #0F2038;
  --navy-700: #132A49;
  --blue-600: #1E4FD8;
  --blue-500: #2F6BFF;
  --blue-400: #3B82F6;
  --blue-300: #6EB1FF;
  --teal-500: #17B891;
  --amber:    #F5B301;
  --red:      #E5484D;
  --green:    #17B891;
  --ring:     #A9CCF5;

  --ink:      #16202E;
  --ink-soft: #4A5568;
  --muted:    #6B7789;
  --line:     #E4E9F0;
  --line-soft:#EEF2F7;
  --bg:       #FFFFFF;
  --bg-soft:  #F6F8FC;
  --bg-tint:  #EEF4FF;

  --radius:   14px;
  --radius-lg:22px;
  --shadow-sm: 0 1px 2px rgba(10,22,38,.06), 0 1px 3px rgba(10,22,38,.08);
  --shadow-md: 0 10px 30px rgba(10,22,38,.10);
  --shadow-lg: 0 24px 60px rgba(10,22,38,.16);
  --container: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.24rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; }

/* ---------- Wortmarke ---------- */
.wordmark { font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.wordmark .pilot { color: var(--blue-500); }
.wordmark .os { color: var(--teal-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 6px 18px rgba(47,107,255,.32); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 10px 24px rgba(47,107,255,.40); }
.btn--ghost { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue-300); }
.btn--light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(169,204,245,.35); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy-800); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--blue-500); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 78% -10%, #1c3763 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 12% 110%, rgba(23,184,145,.18), transparent 70%);
}
.hero .container { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #C7D6EC; font-size: 1.25rem; max-width: 560px; }
.hero .eyebrow { color: var(--ring); }
.hero-claim {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 15px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: #DCE8FA; background: rgba(169,204,245,.10); border: 1px solid rgba(169,204,245,.22);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; color: #B9CBE6; font-size: .92rem; }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; }

/* Hero visual card */
.hero-visual { position: relative; }
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(169,204,245,.20); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.glass-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 4px; }
.glass-card .muted { color: #9FB4D2; font-size: .86rem; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.stat {
  background: rgba(10,22,38,.35); border: 1px solid rgba(169,204,245,.14);
  border-radius: 12px; padding: 14px;
}
.stat .k { font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat .l { font-size: .8rem; color: #9FB4D2; }
.ledger { margin-top: 16px; border-top: 1px solid rgba(169,204,245,.14); padding-top: 12px; }
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: .88rem; color: #C7D6EC; }
.ledger-row .tag { font-size: .72rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.tag--green { background: rgba(23,184,145,.16); color: #6FE3C4; }
.tag--amber { background: rgba(245,179,1,.16); color: #F7CB5B; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D6E0EE; }
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card .icon-badge { margin-bottom: 16px; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(160deg, var(--blue-400), var(--blue-600));
}
.icon-badge svg { width: 24px; height: 24px; stroke: #fff; }
.icon-badge--teal { background: linear-gradient(160deg, #2BD1A6, #0E9B79); }
.icon-badge--navy { background: linear-gradient(160deg, #274268, #132A49); }

.pill-list { list-style: none; margin: 0; padding: 0; }
.pill-list li { position: relative; padding: 9px 0 9px 30px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.pill-list li:last-child { border-bottom: 0; }
.pill-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--teal-500);
}

/* ---------- Module list ---------- */
.module {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%;
  box-shadow: var(--shadow-sm);
}
.module .icon-badge { flex: 0 0 auto; }
.module h3 { font-size: 1.1rem; margin-bottom: 6px; }
.module p { font-size: .95rem; margin: 0; }
.badge-soft {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; margin-top: 10px;
}
.badge-soft--live { background: rgba(23,184,145,.12); color: #0E9B79; }
.badge-soft--soon { background: rgba(245,179,1,.14); color: #A9760B; }
.badge-soft--dev  { background: rgba(47,107,255,.10); color: var(--blue-600); }

/* ---------- 3SL steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 66px; margin-bottom: 30px; }
.step:last-child { margin-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  background: linear-gradient(160deg, var(--blue-400), var(--blue-600)); box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.panel {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius-lg); padding: 30px; color: #fff; box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; }
.panel code, .code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .85rem;
}
.codeblock {
  background: rgba(10,22,38,.5); border: 1px solid rgba(169,204,245,.16); border-radius: 12px;
  padding: 16px 18px; color: #C7D6EC; overflow-x: auto; white-space: pre; font-size: .82rem; line-height: 1.7;
}
.codeblock .c-key { color: #6EB1FF; }
.codeblock .c-str { color: #6FE3C4; }
.codeblock .c-com { color: #6B7C99; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); height: 100%;
}
.price--featured { border-color: var(--blue-400); box-shadow: 0 18px 44px rgba(47,107,255,.18); position: relative; }
.price--featured::before {
  content: "Empfohlen"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-500); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price h3 { font-size: 1.15rem; }
.price .amount { font-size: 2.5rem; font-weight: 700; color: var(--navy-900); margin: 8px 0 2px; }
.price .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price .desc { color: var(--muted); font-size: .92rem; min-height: 42px; }
.price ul { list-style: none; margin: 20px 0 26px; padding: 0; }
.price li { position: relative; padding: 8px 0 8px 28px; font-size: .94rem; color: var(--ink-soft); }
.price li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px;
  border-left: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}
.price .btn { margin-top: auto; justify-content: center; }
.price-grid--4 { grid-template-columns: repeat(4, 1fr); }
.price--sm { padding: 24px 20px; }
.price--sm .amount { font-size: 2rem; }
.price--sm ul { margin: 14px 0 18px; }
.price--sm li { font-size: .88rem; padding: 6px 0 6px 24px; }
.price .per { font-size: .82rem; color: var(--muted); margin-top: -2px; }
.tier-label { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--blue-500); margin-bottom:6px; }
.founder-band { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color:#fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); display:grid; grid-template-columns: 1.5fr 1fr; gap:28px; align-items:center; }
.founder-band h3 { color:#fff; }
.founder-band p { color:#C7D6EC; margin:0; }
.founder-band .amount { font-size:2.4rem; font-weight:700; color:#fff; }
.enterprise-band { border:1px dashed var(--line); border-radius: var(--radius-lg); padding:28px; display:grid; grid-template-columns: 1.4fr 1fr; gap:24px; align-items:center; background:var(--bg-soft); }
@media (max-width: 940px) {
  .price-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .founder-band, .enterprise-band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .price-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Manifest / values ---------- */
.value { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 100%; }
.value .k { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7D6EC; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-soft); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,107,255,.15); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 22px; }
.prose .placeholder { background: #FFF6DA; border: 1px dashed #E7C765; border-radius: 6px; padding: 1px 6px; color: #8A6A0B; font-size: .95em; }
.note-box { background: var(--bg-tint); border: 1px solid #D4E2FF; border-left: 4px solid var(--blue-500); border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.note-box p { margin: 0; color: var(--navy-800); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #A9B7CC; padding: 60px 0 30px; }
.site-footer a { color: #C7D6EC; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #8FA0B8; font-size: .92rem; margin-top: 14px; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #A9B7CC; font-size: .94rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(169,204,245,.14); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #7E8FA8; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .split--reverse { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
  body { font-size: 16px; }
}
