/* ============================================================
   FLOQO — Designsystem
   Apple-clean · viel Weißraum · große ruhige Typografie
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@400;450;500;600&display=swap');

:root {
  --accent:        #7d1f2d;
  --accent-deep:   #5e1722;
  --accent-tint:   #faf3f4;
  --accent-tint-2: #f4e7e9;

  --ink:        #131110;
  --ink-soft:   #46413f;
  --ink-mute:   #7b7470;
  --ink-faint:  #a8a29d;
  --line:       #e8e4df;
  --line-soft:  #f0ece7;
  --paper:      #ffffff;
  --paper-2:    #faf8f5;
  --paper-3:    #f4f1ec;
  --tile:       #f3f0eb;

  --live:    #2f9e5b;
  --wip:     #c98a2b;
  --planned: #9a948f;

  --font-display: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-sm: 13px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -0.006em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ============================================================
   Typo-Helfer
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.99;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 100px;
  background: var(--ink); color: #fff;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo svg { width: 26px; height: 26px; color: var(--accent); display: block; }
.logo .wordmark {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 168px 0 96px; position: relative; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  margin-top: 30px;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.hero-actions { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body);
  font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Section-Gerüst
   ============================================================ */
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 60ch; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.032em; line-height: 1.04;
}
.section-head p {
  margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft); max-width: 46ch;
}

.rule { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   Apps
   ============================================================ */
.apps-bar {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.apps-count { font-size: 14px; color: var(--ink-mute); font-weight: 500; }
.apps-count b { color: var(--ink); font-weight: 600; }

.apps-grid {
  margin-top: 36px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 224px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-tint) 0%, transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-soft); box-shadow: 0 26px 50px -30px rgba(20,12,10,.32); }
.card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--tile); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.04em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .tile { transform: scale(1.04); }
.card:hover .tile:not(:has(img)) { background: var(--accent); color: #fff; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--planned); }
.status[data-s="live"] .dot { background: var(--live); }
.status[data-s="wip"] .dot { background: var(--wip); }
.status[data-s="planned"] .dot { background: var(--planned); }

.card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.4rem; letter-spacing: -0.025em; margin-top: 22px;
}
.card .cat { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.02em; margin-top: 3px; }
.card .desc { margin-top: 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.card .more {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  position: relative; z-index: 1;
}
.card .more .arrow { transition: transform .25s var(--ease); }
.card:hover .more .arrow { transform: translateX(4px); }

/* ============================================================
   Studio / Philosophie
   ============================================================ */
.studio { background: var(--paper-2); border-block: 1px solid var(--line); }
.principles {
  margin-top: 56px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.principle {
  padding: 32px 30px 36px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.principle .pn { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.principle h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.025em; margin-top: 20px; line-height: 1.1; }
.principle p { margin-top: 12px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   CTA-Band
   ============================================================ */
.cta-band { text-align: center; }
.cta-band .inner {
  background: var(--ink); color: #fff;
  border-radius: 28px;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  position: relative; overflow: hidden;
}
.cta-band .inner::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, var(--accent) 0%, transparent 70%);
  opacity: .55;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; position: relative; }
.cta-band p { margin: 18px auto 0; max-width: 44ch; color: rgba(255,255,255,.7); font-size: 1.1rem; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 72px 0 48px; }
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer .logo { margin-bottom: 18px; }
.footer .tag { font-size: 15px; color: var(--ink-mute); max-width: 30ch; line-height: 1.55; }
.footer h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14.5px; color: var(--ink-soft); transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--accent); }
.footer-base {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-faint);
}
.footer-base .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-base .legal a:hover { color: var(--ink-soft); }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .apps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 132px; }
  .apps-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
