/* ============================================================
   rasum.net · Landingpage Styles
   Single-file deployable. Pures CSS, keine Frameworks.
   ============================================================ */

:root {
  /* Brand palette — rasum.net (Cyan → Indigo → Violett) */
  --c-from: #22D3EE;
  --c-via:  #6366F1;
  --c-to:   #A855F7;

  /* Surface */
  --bg:        #0E1020;
  --surface:   #16182C;
  --line:      rgba(255,255,255,0.06);
  --line-soft: rgba(255,255,255,0.08);

  /* Ink */
  --ink:       #F4F4FA;
  --ink-soft:  #B8B8D0;
  --ink-muted: #8888A0;

  --grad: linear-gradient(135deg, var(--c-from), var(--c-via) 50%, var(--c-to));

  --radius: 24px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  --pad-x: clamp(20px, 4.4vw, 64px);

  --font: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Page transitions ---------- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pageFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes ambientFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: pageFadeIn 380ms ease-out both;
}
body.is-leaving {
  animation: pageFadeOut 260ms ease-in forwards;
  pointer-events: none;
}
.ambient { animation: ambientFadeIn 1200ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving, .ambient { animation: none !important; }
}

/* Per-section reveal on first scroll */
.section, .hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.section.in-view, .hero.in-view,
.no-reveal .section, .no-reveal .hero {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .section, .hero { opacity: 1; transform: none; transition: none; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

/* ---------- ambient blobs ---------- */
.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  border-radius: 50%;
}
.ambient-1 {
  top: -200px; right: -260px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.30) 0%, transparent 60%);
}
.ambient-2 {
  top: 600px; left: -360px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34,211,238,0.18) 0%, transparent 60%);
}
.ambient-3 {
  top: 1500px; right: -260px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.22) 0%, transparent 60%);
}

/* ---------- helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.grad-text-from-via {
  background: linear-gradient(135deg, var(--c-from), var(--c-via));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.grad-text-via-to {
  background: linear-gradient(135deg, var(--c-via), var(--c-to));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.grad-text-from-to {
  background: linear-gradient(135deg, var(--c-from), var(--c-to));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.muted { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* ---------- vogel logo (CSS mask) ---------- */
.vogel {
  display: inline-block;
  background: var(--grad);
  -webkit-mask: url(assets/vogel-mask.png) center/contain no-repeat;
          mask: url(assets/vogel-mask.png) center/contain no-repeat;
  /* aspect ratio of the mask is ~2.62:1 */
}
.vogel-xs { width: 28px; height: 11px; }
.vogel-sm { width: 40px; height: 16px; }
.vogel-hero {
  width: clamp(180px, 28vw, 280px);
  height: clamp(70px, 10.7vw, 107px);
  filter: drop-shadow(0 18px 60px rgba(168,85,247,0.45));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #0A0A14;
  box-shadow: 0 10px 30px -10px rgba(168,85,247,0.55);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(168,85,247,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-dark {
  background: #0A0A14;
  color: var(--ink);
  padding: 18px 30px;
  font-size: 16px;
}

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad-x);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-text {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 11px 22px;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 40px var(--pad-x) 120px;
  text-align: center;
}
.hero-vogel {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--c-via);
  box-shadow: 0 0 12px var(--c-via);
}

.display {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 32px auto 0;
  max-width: 1100px;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 28px auto 0;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}

/* ---------- sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 80px var(--pad-x);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.h2 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
  text-wrap: balance;
}
.prose {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 940px;
  margin: 0 0 56px;
  text-wrap: pretty;
}
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- cards ---------- */
.card {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* question cards */
.q-card { padding-top: 36px; }
.q-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.85;
}
.q-card-1::before { background: var(--c-from); }
.q-card-2::before { background: var(--c-via);  }
.q-card-3::before { background: var(--c-to);   }
.q-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.q-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  opacity: 0.5;
}
.q-title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}

/* tag chips */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--ink-soft);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* service card */
.service { min-height: 320px; display: flex; flex-direction: column; }
.service-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.service-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
  line-height: 1.1;
}
.service .muted { flex: 1; }

/* ---------- gedankenspiel block ---------- */
.thought {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(99,102,241,0.10) 50%, rgba(168,85,247,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  margin-top: 40px;
}
.thought::before, .thought::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.thought::before {
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(168,85,247,0.30) 0%, transparent 60%);
}
.thought::after {
  bottom: -120px; left: -120px;
  background: radial-gradient(circle, rgba(34,211,238,0.22) 0%, transparent 60%);
}
.pill {
  position: relative; z-index: 1;
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #0A0A14;
  margin-bottom: 26px;
}
.thought-quote {
  position: relative; z-index: 1;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  max-width: 980px;
}
.thought-note {
  position: relative; z-index: 1;
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 920px;
}
.thought-note strong { color: var(--ink); }

/* ---------- methode ---------- */
.method {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 920px) {
  .method { grid-template-columns: 1fr; }
}
.method-h2 { margin: 18px 0 18px; line-height: 1.05; font-size: clamp(32px, 4.2vw, 52px); }
.method-text .muted { font-size: 18px; line-height: 1.55; }

.terminal {
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 999px; background: #444; }
.terminal-bar .dot-r { background: #FF5F56; }
.terminal-bar .dot-y { background: #FFBD2E; }
.terminal-bar .dot-g { background: #27C93F; }
.terminal-path {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-muted);
}
.terminal-body {
  padding: 22px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.t-cyan   { color: var(--c-from); }
.t-indigo { color: var(--c-via);  }
.t-violet { color: var(--c-to);   }
.t-muted  { color: var(--ink-muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 32px;
  padding: clamp(40px, 5vw, 64px);
  color: #0A0A14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-bg {
  position: absolute;
  right: -80px; bottom: -80px;
  width: 500px; height: 191px;
  background: #0A0A14;
  -webkit-mask: url(assets/vogel-mask.png) center/contain no-repeat;
          mask: url(assets/vogel-mask.png) center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.cta-text { position: relative; max-width: 720px; }
.cta-h2 { color: #0A0A14; margin: 0; line-height: 1; font-size: clamp(34px, 5.2vw, 64px); }
.cta-sub { font-size: clamp(16px, 1.4vw, 19px); margin-top: 16px; opacity: 0.78; max-width: 520px; }

/* ---------- footer ---------- */
.foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
  gap: 20px;
  flex-wrap: wrap;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 22px;
    flex-direction: column;
    gap: 14px;
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 20px; padding-bottom: 80px; }
  .hero-vogel { margin-bottom: 32px; }
  .section { padding: 60px var(--pad-x); }
  .card { padding: 28px 24px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .btn-dark { width: 100%; justify-content: center; }
}
