/* ==========================================================================
   DESIGN TOKENS
   Konzept: "Studio Viewport" — die Ästhetik einer 3D-Software (Blender/
   Unity-Viewport-Chrome: dünne Linien, Eckmarkierungen, Mono-Labels für
   Koordinaten) neu interpretiert als ruhige, luxuriöse Markenwelt.
   Kein Gaming-Neon, kein Template-Look.
   ========================================================================== */

:root {
  /* Farben */
  --bg: #0a0a0c;
  --bg-elevated: #131316;
  --panel: #17171b;
  --line: rgba(242, 241, 237, 0.1);
  --line-strong: rgba(242, 241, 237, 0.22);
  --ink: #f2f1ed;
  --ink-dim: #a5a4a1;
  --ink-faint: #6b6a68;
  --accent: #5b6ef5; /* electric indigo — "viewport select" */
  --accent-soft: rgba(91, 110, 245, 0.14);

  /* Typografie */
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Sonstiges */
  --radius-s: 3px;
  --radius-m: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.section {
  padding: 120px clamp(24px, 6vw, 96px);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 56ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius-s);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-arrow {
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 200;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.85), transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.82);
  border-bottom-color: var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 1px;
  background: var(--ink);
  width: 100%;
}

/* ==========================================================================
   HERO STRIP (above the viewport banners)
   ========================================================================== */

.hero-strip {
  padding: calc(var(--nav-h) + 56px) clamp(24px, 6vw, 96px) 40px;
}

.hero-strip .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.hero-strip h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  max-width: 15ch;
}

.hero-strip h1 em {
  font-style: normal;
  color: var(--ink-dim);
}

/* ==========================================================================
   THE THREE VIEWPORT BANNERS — signature element
   ========================================================================== */

.viewports {
  display: flex;
  height: 84vh;
  min-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 clamp(24px, 6vw, 96px) 0;
}

.viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
  transition: flex 0.6s var(--ease);
  isolation: isolate;
}

.viewport:last-child {
  border-right: none;
}

.viewport-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease);
}

/* Placeholder gradients — replace with real background-image via inline
   style="background-image:url(...)" on .viewport-bg once you have renders. */
.viewport--avatar .viewport-bg {
  background-image: radial-gradient(ellipse at 30% 20%, #2a2f52 0%, #14151c 55%), linear-gradient(160deg, #1c1e2e, #08080a);
}
.viewport--assets .viewport-bg {
  background-image: radial-gradient(ellipse at 70% 15%, #2a2320 0%, #15130f 55%), linear-gradient(160deg, #21201c, #08080a);
}
.viewport--worlds .viewport-bg {
  background-image: radial-gradient(ellipse at 50% 10%, #142a29 0%, #0e1614 55%), linear-gradient(160deg, #182420, #08080a);
}

.viewport-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.92) 0%, rgba(6, 6, 7, 0.35) 46%, rgba(6, 6, 7, 0.12) 100%);
  transition: background 0.5s var(--ease);
}

.viewport:hover .viewport-bg {
  transform: scale(1.12);
}

.viewport:hover {
  flex: 1.18;
}

.viewport:hover .viewport-scrim {
  background: linear-gradient(to top, rgba(6, 6, 7, 0.85) 0%, rgba(6, 6, 7, 0.25) 46%, rgba(6, 6, 7, 0.05) 100%);
}

/* corner brackets — viewfinder chrome */
.viewport-frame {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.4s var(--ease), inset 0.5s var(--ease);
}
.viewport:hover .viewport-frame {
  opacity: 0.9;
  inset: 16px;
}
.viewport-frame span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}
.viewport-frame span:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.viewport-frame span:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.viewport-frame span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.viewport-frame span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.viewport-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.viewport-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.viewport-content {
  position: relative;
  padding: 0 28px 34px;
}

.viewport-content .eyebrow {
  color: var(--ink-dim);
}

.viewport-content h3 {
  font-size: clamp(22px, 2.1vw, 30px);
  margin-top: 10px;
  max-width: 13ch;
}

.viewport-content .btn {
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(4px);
}
.viewport:hover .viewport-content .btn {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.viewports-caption {
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(24px, 6vw, 96px) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .viewports {
    flex-direction: column;
    height: auto;
    margin: 0;
    border-left: none;
    border-right: none;
  }
  .viewport {
    height: 62vh;
    min-height: 420px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .viewport:last-child { border-bottom: none; }
  .viewport:hover { flex: 1; }
  .viewports-caption { display: none; }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.35s var(--ease);
}
.project-card:hover {
  background: var(--panel);
}

.project-cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, #1c1c22, #0c0c0e);
  overflow: hidden;
  position: relative;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-cover::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-status {
  color: var(--accent);
}

.project-card h3 {
  font-size: 19px;
}

.project-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, #1c1e2a, #0a0a0c);
  border: 1px solid var(--line);
}

.about-copy p {
  color: var(--ink-dim);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 60ch;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.about-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
}
.about-stats div span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   COMMUNITY
   ========================================================================== */

.community {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.community-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  width: 100%;
}

.social-link {
  background: var(--bg-elevated);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.social-link:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  padding: 56px clamp(24px, 6vw, 96px) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  list-style: none;
  font-size: 13px;
  color: var(--ink-dim);
}
.footer-nav a:hover { color: var(--ink); }

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   INNER PAGES — shared
   ========================================================================== */

.page-hero {
  padding: calc(var(--nav-h) + 90px) clamp(24px, 6vw, 96px) 80px;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { margin-bottom: 18px; }

.page-hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  max-width: 18ch;
}

.page-hero p {
  margin-top: 22px;
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 60ch;
}

.page-hero-media {
  margin-top: 48px;
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.page-hero-media.tone-avatar { background: radial-gradient(ellipse at 30% 30%, #2a2f52, #0a0a0c); }
.page-hero-media.tone-assets { background: radial-gradient(ellipse at 70% 30%, #2a2320, #0a0a0c); }
.page-hero-media.tone-worlds { background: radial-gradient(ellipse at 50% 20%, #142a29, #0a0a0c); }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.gallery-strip div {
  aspect-ratio: 3/4;
  background: linear-gradient(150deg, #17171d, #0b0b0d);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill {
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--ink-dim);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: 32px 28px;
}
.step .eyebrow { color: var(--accent); }
.step h3 { margin-top: 14px; font-size: 19px; }
.step p { margin-top: 10px; color: var(--ink-dim); font-size: 14.5px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.price-card {
  background: var(--bg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card.is-featured { background: var(--panel); }
.price-card .eyebrow { color: var(--ink-dim); }
.price-card .amount {
  font-family: var(--font-display);
  font-size: 40px;
}
.price-card .amount span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}
.price-card li::before {
  content: "—";
  color: var(--accent);
  margin-right: 8px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--ink-faint);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 62ch;
}

/* ---- Forms ---- */

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(28px, 4vw, 56px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-upload {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

.form-submit-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 13px;
  color: var(--ink-faint);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  display: none;
}
.form-status.is-visible { display: block; }

/* ---- Marketplace ---- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.market-card {
  background: var(--bg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-card .project-cover { aspect-ratio: 1 / 1; }

.market-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.market-heading h3 { font-size: 18px; }
.market-price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}

.market-features {
  list-style: none;
  font-size: 13px;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.market-features li::before { content: "—"; color: var(--ink-faint); margin-right: 8px; }

.market-card .btn { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding: 80px 20px; }
  .social-grid { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 199;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.nav-drawer.is-open { transform: translateY(0); }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 28px;
}
