/* ============================================================
   NOVA — Digital Craft Studio
   Premium dark landing page · vanilla CSS, keine Abhängigkeiten
   ============================================================ */

:root {
  --bg:        #06070d;
  --bg-soft:   #0b0d18;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);
  --text:      #f4f5fb;
  --muted:     #9aa0b6;
  --faint:     #5b6079;

  --violet: #7c5cff;
  --cyan:   #22d3ee;
  --pink:   #ff5c8a;

  --grad: linear-gradient(115deg, var(--violet) 0%, var(--cyan) 50%, var(--pink) 100%);
  --grad-text: linear-gradient(115deg, #b9a8ff 0%, #7be7f7 55%, #ff9bb8 100%);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Custom Cursor blendet System-Cursor aus — nur auf feinen Zeigern */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-cursor] { cursor: none; }
}

::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===================== Hintergrund ===================== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }

#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob--1 {
  width: 50vw; height: 50vw; max-width: 680px; max-height: 680px;
  top: -12%; left: -8%;
  background: radial-gradient(circle, var(--violet), transparent 68%);
  animation: drift1 22s var(--ease) infinite alternate;
}
.blob--2 {
  width: 44vw; height: 44vw; max-width: 600px; max-height: 600px;
  top: 18%; right: -12%;
  background: radial-gradient(circle, var(--cyan), transparent 68%);
  opacity: 0.38;
  animation: drift2 26s var(--ease) infinite alternate;
}
.blob--3 {
  width: 40vw; height: 40vw; max-width: 540px; max-height: 540px;
  bottom: -10%; left: 28%;
  background: radial-gradient(circle, var(--pink), transparent 68%);
  opacity: 0.32;
  animation: drift3 30s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 12vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(8vw, -12vh) scale(1.2); } }

.grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== Cursor ===================== */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .2s;
}
.cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease),
              border-color .25s, background .25s, opacity .2s;
}
.cursor.is-hover .cursor__ring {
  width: 60px; height: 60px;
  border-color: transparent;
  background: rgba(124, 92, 255, 0.18);
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__ring {
  width: 76px; height: 76px;
  background: rgba(255,255,255,0.95);
  border-color: transparent;
}
.cursor__label {
  position: fixed; top: 0; left: 0; transform: translate(-50%,-50%);
  font: 600 11px/1 var(--font-display); letter-spacing: .04em;
  color: #06070d; text-transform: uppercase; opacity: 0;
  transition: opacity .2s;
}
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ===================== Scroll-Progress ===================== */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

/* ===================== Navigation ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(6, 7, 13, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; font-size: 18px; }
.nav__mark { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 16px rgba(124,92,255,.7); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 14.5px; color: var(--muted); position: relative; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--grad); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: 100px;
  border: 1px solid var(--border-2); color: var(--text);
  background: var(--surface); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; margin-left: 0; }
.nav .btn--sm { margin-left: 0; }
.btn--lg { padding: 18px 30px; font-size: 17px; }

.btn--primary { background: var(--grad); border-color: transparent; color: #0a0a12; font-weight: 600; box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35); }
.btn--primary:hover { box-shadow: 0 12px 44px rgba(124, 92, 255, 0.55); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--text); background: var(--surface-2); }

/* ===================== Eyebrow / Headings ===================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 13px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 56px) 80px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero__inner { max-width: 820px; position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 28px; }
.hero__title { font-size: clamp(2.7rem, 8vw, 6rem); margin-bottom: 28px; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 540px; margin-bottom: 38px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* schwebender Orb */
.orb {
  position: absolute; top: 50%; right: clamp(-80px, 2vw, 40px);
  width: clamp(280px, 34vw, 460px); aspect-ratio: 1;
  transform: translateY(-50%); z-index: 1; pointer-events: none;
}
.orb__core {
  position: absolute; inset: 28%;
  border-radius: 50%; background: var(--grad);
  filter: blur(6px); opacity: 0.92;
  animation: breathe 6s var(--ease) infinite;
}
.orb__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.55), transparent 65%); filter: blur(30px); }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border-2); }
.orb__ring--1 { animation: spin 18s linear infinite; border-top-color: var(--cyan); border-right-color: rgba(124,92,255,.5); }
.orb__ring--2 { inset: 14%; animation: spin 12s linear infinite reverse; border-bottom-color: var(--pink); }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; z-index: 2; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--text); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } }

/* ===================== Marquee ===================== */
.marquee { overflow: hidden; padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 38px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--faint); transition: color .3s; }
.marquee__track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== Stats ===================== */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: 90px clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ===================== Sections ===================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 12vw, 140px) clamp(20px, 5vw, 56px); }
.section__head { margin-bottom: 56px; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }

/* ===================== Bento ===================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { grid-column: span 1; }
.card.span-2 { grid-column: span 2; }
.card {
  position: relative; border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  padding: 30px; min-height: 220px; overflow: hidden;
  transition: border-color .4s, transform .4s var(--ease);
}
.card:hover { border-color: var(--border-2); }
.card__body { position: relative; z-index: 2; }
.card__icon { display: inline-flex; align-items:center; justify-content:center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 20px; margin-bottom: 18px; color: var(--text); }
.card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__spot, .work__spot {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,0.16), transparent 45%);
}
.card:hover .card__spot { opacity: 1; }

/* ===================== Work ===================== */
.work { display: flex; flex-direction: column; gap: 16px; }
.work__item {
  position: relative; display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 28px;
  border: 1px solid var(--border); border-radius: 20px; padding: 22px 28px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  transition: border-color .4s, transform .4s var(--ease), background .4s;
}
.work__item:hover { border-color: var(--border-2); }
.work__spot { background: radial-gradient(460px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%); }
.work__item:hover .work__spot { opacity: 1; }
.work__visual {
  position: relative; z-index: 2; height: 78px; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, #0b0d18), #0b0d18);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: rgba(255,255,255,.85);
  transition: transform .4s var(--ease);
}
.work__item:hover .work__visual { transform: scale(1.05) rotate(-2deg); }
.work__meta { position: relative; z-index: 2; }
.work__meta h3 { font-size: 1.6rem; margin-bottom: 4px; transition: color .3s; }
.work__item:hover .work__meta h3 { color: var(--accent); }
.work__meta p { color: var(--muted); font-size: 14.5px; }
.work__tag { position: relative; z-index: 2; font-family: var(--font-display); font-size: 13px; color: var(--faint); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; }

/* ===================== Steps ===================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); position: relative; transition: transform .4s var(--ease), border-color .4s; }
.step:hover { transform: translateY(-6px); border-color: var(--border-2); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--violet); letter-spacing: .1em; }
.step h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ===================== Quote ===================== */
.quote { max-width: 920px; margin: 0 auto; padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 56px); text-align: center; }
.quote blockquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.25; letter-spacing: -0.02em; }
.quote footer { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 15px; }
.quote__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #0a0a12; }
.quote strong { color: var(--text); font-weight: 600; }

/* ===================== CTA ===================== */
.cta { padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 56px); }
.cta__inner {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  border: 1px solid var(--border); border-radius: 32px; padding: clamp(50px, 8vw, 90px) 28px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(124,92,255,0.14), transparent 60%), var(--bg-soft);
  position: relative; overflow: hidden;
}
.cta__inner::before { content:""; position:absolute; inset:-1px; border-radius:32px; padding:1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity:.35; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 18px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }

/* ===================== Footer ===================== */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 60px clamp(20px, 5vw, 56px); border-top: 1px solid var(--border); }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 30px; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: .1em; }
.footer__dot { color: var(--violet); }
.footer__links { display: flex; gap: 26px; }
.footer__links a { color: var(--muted); font-size: 14.5px; transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: 13.5px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ===================== Reveal-Animation ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================== Tilt ===================== */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-2 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .orb { opacity: 0.5; right: -120px; }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; inset: 0 0 auto; top: 0; flex-direction: column; gap: 0;
    background: rgba(6,7,13,0.96); backdrop-filter: blur(20px); padding: 100px 32px 40px;
    transform: translateY(-100%); transition: transform .5s var(--ease); margin-left: 0; height: 100svh; justify-content: flex-start; }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.6rem; font-family: var(--font-display); padding: 16px 0; border-bottom: 1px solid var(--border); }
  .nav .btn--sm { display: none; }
  .nav__toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; z-index: 101; background: none; border: none; padding: 8px; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav__toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .work__item { grid-template-columns: 70px 1fr; }
  .work__tag { display: none; }
  .orb { display: none; }
}

/* ===================== Reduced Motion ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .blob, .orb { display: none; }
}
