/* Neruna – Produktwebsite. Keine externen Abhängigkeiten, Schriften lokal (OFL). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #070b1a;
  --bg-2: #0b1130;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9edf9;
  --muted: #9ba7c9;
  --cyan: #38d5ff;
  --blue: #2f6bff;
  --violet: #8b5cf6;
  --pink: #ff5ca8;
  --lime: #b6ff5c;
  --gradient: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(10, 20, 80, 0.9);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* The decorative glows reach beyond the edges; clip (unlike hidden) keeps the sticky navigation working. */
  overflow-x: clip;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section {
  padding: 110px 0;
  position: relative;
}

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

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Ambient glow behind sections */
.glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.glow.cyan { background: var(--cyan); }
.glow.violet { background: var(--violet); }
.glow.blue { background: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 40px -10px rgba(47, 107, 255, 0.8);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px -10px rgba(139, 92, 246, 0.9);
  background: var(--gradient);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

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

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
}

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

.nav .btn {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

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

.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 .line2 {
  display: block;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 22px 0 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta span::before {
  content: "✓";
  color: var(--lime);
  margin-right: 7px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.window {
  border-radius: 14px;
  overflow: hidden;
  background: #0d1430;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 0 1px rgba(56, 213, 255, 0.08);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.hero-visual .window {
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg);
  transform-origin: left center;
}

.hero-visual .window.back {
  position: absolute;
  width: 62%;
  right: -10%;
  bottom: -14%;
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg) rotate(3deg);
  z-index: -1;
  opacity: 0.85;
}

/* "Sticker" – the cheeky part */
.sticker {
  position: absolute;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  padding: 14px 18px;
  border-radius: 14px;
  color: #0b0f24;
  background: var(--lime);
  transform: rotate(-8deg);
  box-shadow: 0 12px 30px -8px rgba(182, 255, 92, 0.6);
  z-index: 3;
}

.sticker.pink {
  background: var(--pink);
  color: #fff;
  transform: rotate(6deg);
  box-shadow: 0 12px 30px -8px rgba(255, 92, 168, 0.6);
}

.hero .sticker {
  top: -26px;
  left: -26px;
}

.hero .sticker.pink {
  top: auto;
  left: auto;
  bottom: 18px;
  right: -18px;
}

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  margin-left: 48px;
  color: var(--violet);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 213, 255, 0.35);
  background: var(--surface-strong);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.98rem;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.8);
}

.card .icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card.wide {
  grid-column: span 2;
}

/* ---------- Spotlight (alternating text / screenshot) ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 110px;
}

.spotlight:last-child {
  margin-bottom: 0;
}

.spotlight.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.spotlight.reverse .spotlight-text {
  order: 2;
}

.spotlight ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.spotlight li {
  padding: 8px 0 8px 34px;
  position: relative;
  color: var(--muted);
}

.spotlight li strong {
  color: var(--text);
  font-weight: 600;
}

.spotlight li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.shot {
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: auto;
}

/* ---------- Privacy diagram ---------- */

.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.diagram {
  display: grid;
  gap: 16px;
}

.node {
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.node strong {
  font-family: var(--display);
  font-size: 1.1rem;
  display: block;
}

.node small {
  color: var(--muted);
}

.node.you {
  border-color: rgba(56, 213, 255, 0.5);
  background: linear-gradient(135deg, rgba(56, 213, 255, 0.12), rgba(139, 92, 246, 0.12));
}

.flow {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.flow b {
  color: var(--lime);
}

.flow.config b {
  color: var(--violet);
}

/* ---------- Screenshot gallery ---------- */

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--gradient);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery[hidden] {
  display: none;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.gallery figcaption strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  overflow: hidden;
}

/* Picture and caption always fit together – no scrollbars. */
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox::backdrop {
  background: rgba(3, 6, 18, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox img {
  max-width: 94vw;
  max-height: calc(94vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox p {
  text-align: center;
  color: var(--text);
  margin: 12px 0 0;
  line-height: 24px;
}

.lightbox button {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product .badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(182, 255, 92, 0.14);
  color: var(--lime);
}

.product .badge.soon {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b1ff;
}

.product h3 {
  font-size: 1.6rem;
}

.product .domain {
  font-family: var(--display);
  color: var(--cyan);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--gradient) border-box;
  transform: translateY(-10px);
}

.price-card .price {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  margin: 10px 0 4px;
}

.price-card .price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  flex: 1;
}

.price-card li {
  padding: 7px 0 7px 28px;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}

.price-card .sticker {
  top: -20px;
  right: -12px;
  font-size: 0.9rem;
  padding: 8px 12px;
}

.note {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Versions / roadmap ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.release .version {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
}

.release .date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.release.current {
  border-color: rgba(182, 255, 92, 0.4);
}

.release .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(182, 255, 92, 0.14);
  color: var(--lime);
  margin-left: 8px;
  vertical-align: middle;
}

.release .tag.next {
  background: rgba(56, 213, 255, 0.14);
  color: var(--cyan);
}

.release .tag.later {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b1ff;
}

/* ---------- Download ---------- */

.download {
  border-radius: 28px;
  padding: 56px;
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(56, 213, 255, 0.25), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.download dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.download dt {
  color: var(--text);
  font-weight: 600;
}

.download dd {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  margin: 14px 0 0;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

footer h4 {
  color: var(--text);
  font-family: var(--display);
  margin: 0 0 12px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  padding: 4px 0;
}

footer a {
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 780px;
  padding: 80px 0;
}

.legal h1 {
  font-size: 2.6rem;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2em;
}

.legal .todo {
  background: rgba(255, 92, 168, 0.12);
  border: 1px dashed var(--pink);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ffc2de;
}

/* ---------- Reveal on scroll ---------- */

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1020px) {
  .hero-grid,
  .spotlight,
  .spotlight.reverse,
  .privacy,
  .download {
    grid-template-columns: 1fr;
  }

  .spotlight.reverse .spotlight-text {
    order: 0;
  }

  .features,
  .gallery,
  .products,
  .pricing,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .card.wide {
    grid-column: span 2;
  }

  .hero-visual .window {
    transform: none;
  }

  .hero-visual .window.back {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .nav-links,
  .nav .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 20px 24px 28px;
    gap: 18px;
    background: rgba(7, 11, 26, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .features,
  .gallery,
  .products,
  .pricing,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
  }

  .price-card.featured {
    transform: none;
  }

  .download {
    padding: 32px 24px;
  }

  .hero .sticker {
    left: 8px;
    top: -20px;
  }

  .hero .sticker.pink {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

/* Not yet priced (Cloud, Control) */
.price-card .price.tbd {
  font-size: 2rem;
  padding: 10px 0 9px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Language switcher ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  margin-left: -8px;
}

.lang-switch svg {
  margin-right: 6px;
  opacity: 0.8;
}

.lang-switch a,
.lang-mobile a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 6px;
}

.lang-switch a:hover,
.lang-mobile a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.lang-switch a.active,
.lang-mobile a.active {
  color: #fff;
  background: var(--surface-strong);
}

.lang-mobile {
  display: none;
}

.legal ~ * .lang-switch,
.nav .lang-always {
  margin-left: auto;
  margin-right: 16px;
}

/* Start page: only shown when JavaScript is off or detection takes a moment. */
.language-choice {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.language-choice .hero-cta {
  justify-content: center;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .nav .lang-switch:not(.lang-always) {
    display: none;
  }

  .nav.open .lang-mobile {
    display: flex;
    gap: 4px;
  }
}
