/* Forma Studio Landing Page — Dark CAD Studio Look */

:root {
  --bg: #0a0d12;
  --bg-alt: #0e1218;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --text-dim: #9aa4b2;
  --accent: #2eb8ff;
  --accent-deep: #2870e6;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint-Grid als globales Hintergrundmotiv */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    /* grobe Hauptlinien alle 240px */
    linear-gradient(rgba(46, 184, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 184, 255, 0.10) 1px, transparent 1px),
    /* feine Hilfslinien alle 48px */
    linear-gradient(rgba(46, 184, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 184, 255, 0.055) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 25%, transparent 80%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.08);
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  line-height: 1;
}

.lang-switch a,
.lang-switch strong {
  min-width: 30px;
  padding: 7px 8px;
  border-radius: 999px;
  color: var(--text-dim);
  text-align: center;
  text-decoration: none;
  font-weight: 650;
}

.lang-switch strong {
  background: rgba(46, 184, 255, 0.16);
  color: var(--text);
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 184, 255, 0.35);
  color: var(--accent);
  background: rgba(46, 184, 255, 0.08);
}

.badge-header {
  white-space: nowrap;
}

.badge-hero {
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 184, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(46, 184, 255, 0);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}

/* Wandernde Lichtkegel im Hero */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.75;
}

.hero-glow-a {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(40, 112, 230, 0.5), transparent 65%);
  animation: drift-a 14s ease-in-out infinite alternate;
}

.hero-glow-b {
  width: 460px;
  height: 460px;
  top: -100px;
  right: -140px;
  background: radial-gradient(circle, rgba(46, 184, 255, 0.35), transparent 65%);
  animation: drift-b 18s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(90px, 50px) scale(1.15); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-80px, 70px) scale(0.95); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.lead {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--text-dim);
}

.hero-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-chips span {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent), var(--accent-deep));
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 24px rgba(46, 184, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 8px 36px rgba(46, 184, 255, 0.45);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(46, 184, 255, 0.35);
}

.hero-shot {
  margin-top: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(46, 184, 255, 0.08);
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.hero-shot img {
  display: block;
  width: 100%;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  position: relative;
  overflow: hidden;
  background: #080a0f;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Bühnen-Scheinwerfer: ein weiches Lichtfeld von oben, mittig über den Screenshots */
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(160, 210, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 8%, rgba(46, 184, 255, 0.07), transparent 75%);
}

/* Lichtpool auf dem Bühnenboden */
.section-alt::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -140px;
  width: 130%;
  height: 340px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(46, 184, 255, 0.14), transparent 65%);
}

.section-alt .container {
  position: relative;
  z-index: 1;
}

.section-title {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  padding-bottom: 18px;
}

/* Konstruktionslinie unter dem Titel */
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 17px;
}

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  margin-top: 56px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-shots {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Akzent-Kante, die beim Hover aufleuchtet */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  border-color: rgba(46, 184, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(-6deg);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

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

/* ---------- Screenshots ---------- */

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 24px 60px rgba(46, 184, 255, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
  border-color: rgba(46, 184, 255, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 24px 70px rgba(46, 184, 255, 0.14);
}

.shot img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.shot:hover img {
  transform: scale(1.03);
}

.shot figcaption {
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- Format list ---------- */

.format-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.format-list li {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.format-list li:hover {
  color: var(--accent);
  border-color: rgba(46, 184, 255, 0.4);
  transform: translateY(-2px);
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(40, 112, 230, 0.16), transparent 70%),
    var(--bg);
}

.cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-inline: auto;
  padding-inline: 24px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- Lightbox ---------- */

.hero-shot img,
.shot img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  transform: scale(0.97);
  transition: transform 0.2s ease;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(46, 184, 255, 0.4);
}

/* ---------- Scroll Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow,
  .pulse-dot,
  .accent {
    animation: none;
  }

  .hero-shot {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3,
  .grid-shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .grid-shots {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .badge-header {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}
