/* neonplan.app – the neon look of NeonPlan 3D */
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 300 900; font-display: swap; src: url(/fonts/bricolage-grotesque.woff2) format("woff2"); }

:root {
  --bg: #070b14;
  --bg2: #0c1322;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(120, 200, 255, 0.16);
  --text: #e8f1ff;
  --muted: #93a4bf;
  --accent: #00e5ff;
  --accent2: #b25cff;
  --green: #35e59a;
  --title: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* the hero's grid reaches past the sides: never a sideways scroll */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(178, 92, 255, 0.1), transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 "Figtree", system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* the bar at the top */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 11, 20, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--title); font-weight: 800; font-size: 20px; color: var(--text); }
.brand .logo { color: var(--accent); text-shadow: 0 0 12px var(--accent); }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: var(--text); text-decoration: none; }
.bar nav .demo { color: var(--bg); background: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.bar nav .lang { border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: 72px 0 24px; }
h1, h2, h3 { font-family: var(--title); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 19px; }
.sub { color: var(--muted); max-width: 760px; margin: 0 0 28px; }

/* the hero */
.hero { text-align: center; padding-top: 72px; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; margin: 0 0 14px; }
.hero h1 {
  font-size: clamp(42px, 8vw, 88px); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--accent) 55%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.25));
}
.lead { max-width: 760px; margin: 0 auto 28px; color: #c9d6ea; font-size: 19px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 8px 0 16px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700;
  border: 1px solid var(--line); color: var(--text); background: var(--card);
}
.btn:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 18px -4px var(--accent); }
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); box-shadow: 0 0 28px -6px var(--accent); }
.note { color: var(--muted); font-size: 14px; }
.shot, .card img { border-radius: 16px; border: 1px solid var(--line); }
.hero-shot { margin: 36px auto 0; box-shadow: 0 30px 80px -30px rgba(0, 229, 255, 0.45); }

/* the hero: a glowing grid behind it, the picture in a neon frame, the numbers below */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -40px -50vw 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  animation: drift 24s linear infinite;
}
@keyframes drift { to { background-position: 48px 48px, 48px 48px; } }
.hero-frame { position: relative; margin: 40px auto 0; max-width: 1100px; border-radius: 20px; padding: 2px; background: linear-gradient(120deg, var(--accent), var(--accent2), var(--accent)); box-shadow: 0 0 60px -10px rgba(0, 229, 255, 0.55), 0 40px 90px -40px rgba(178, 92, 255, 0.6); }
.hero-frame .hero-shot { margin: 0; border: 0; border-radius: 18px; width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; max-width: 900px; margin: 36px auto 0; }
.stat { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.stat strong { display: block; font-family: var(--title); font-size: 34px; color: var(--accent); text-shadow: 0 0 18px rgba(0, 229, 255, 0.5); }
.stat span { color: var(--muted); font-size: 14px; }
.motion { text-align: center; }
.motion .sub { margin-left: auto; margin-right: auto; }
.motion img { margin: 0 auto; max-width: 900px; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } .card { transition: none; } html { scroll-behavior: auto; } }

/* why: five tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tile .icon { font-size: 30px; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }
.jab {
  margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--accent2); border-radius: 0 12px 12px 0;
  background: rgba(178, 92, 255, 0.08); font-weight: 600;
}

/* cards with a picture */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { margin: 0; padding: 0; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0, 229, 255, 0.5); }
.card img { border: 0; border-radius: 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card figcaption { padding: 16px 18px 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.new3 { position: relative; }
.badge {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color: var(--bg); font-weight: 800;
}

/* the big list of what is free */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.group { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(53, 229, 154, 0.22); background: rgba(53, 229, 154, 0.04); }
.group h3 { font-size: 17px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 3px 0 3px 24px; position: relative; color: #cfe0f5; font-size: 15px; }
.group li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.foot-note { margin-top: 24px; font-weight: 700; color: var(--green); text-align: center; font-size: 19px; }

/* extras */
/* the add-ons: three in a row, each with its picture */
.extra-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extra { margin: 0; border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.extra:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(255, 210, 122, 0.45); }
.extra img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.extra figcaption { padding: 14px 18px 18px; }
.extra h3 { font-size: 17px; color: #ffd27a; margin-bottom: 6px; }
.extra p { margin: 0; color: var(--muted); font-size: 14.5px; }
.extra h3 a { color: inherit; }
.extra h3 a:hover { text-decoration: underline; }
.extra p.buy { margin-top: 10px; font-size: 14px; font-weight: 700; }
.extra p.buy a { color: var(--accent); }
.cta .same { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; text-align: center; }
.install .cta .same { text-align: left; }
@media (max-width: 900px) { .extra-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .extra-list { grid-template-columns: 1fr; } }

/* extras: the furniture count beside the library, pictures of the add-ons */
.furniture { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: center; margin-bottom: 22px; padding: 22px; border-radius: 20px; border: 1px solid rgba(255, 210, 122, 0.3); background: linear-gradient(135deg, rgba(255, 210, 122, 0.07), rgba(178, 92, 255, 0.06)); }
.furniture strong { display: block; font-family: var(--title); font-size: clamp(54px, 8vw, 92px); line-height: 1; color: #ffd27a; text-shadow: 0 0 30px rgba(255, 210, 122, 0.45); }
.furniture h3 { margin: 6px 0 10px; font-size: 24px; }
.furniture p { margin: 0; color: var(--muted); }
.furniture img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.pro-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.pro-shots figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pro-shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pro-shots figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(7, 11, 20, 0.82); color: #ffd27a; font-weight: 700; font-size: 14px; }
@media (max-width: 820px) { .furniture { grid-template-columns: 1fr; } }

/* install */
.install ol { max-width: 700px; padding-left: 22px; }
.install li { margin: 8px 0; }
.install .cta { justify-content: flex-start; }

/* the editor on the home page */
.editor-show { text-align: center; }
.editor-show .sub { margin-left: auto; margin-right: auto; }
.editor-show .hero-frame { margin-top: 12px; }
.editor-show img { width: 100%; height: auto; border: 0; border-radius: 18px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 28px auto 0; max-width: 1100px; text-align: left; }
.points li { padding: 14px 16px 14px 44px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; }
.points li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--accent); font-weight: 800; }

/* manual: contents beside the text */
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0; }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; font-size: 14px; display: grid; gap: 2px; }
.toc a { color: var(--muted); padding: 3px 8px; border-radius: 6px; }
.toc a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.toc .d1 { color: var(--accent); font-weight: 800; margin-bottom: 6px; }
.toc .d2 { color: var(--text); font-weight: 700; margin-top: 6px; }
.toc .d2.on { background: rgba(0, 229, 255, 0.12); color: var(--accent); }
.toc .d3 { padding-left: 18px; }
.md { min-width: 0; }
/* a jump lands below the bar at the top, not under it */
.md [id] { scroll-margin-top: 84px; }
.md img { height: auto; }
.md h1 { font-size: 40px; }
.md h2 { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 30px; }
.md h3 { margin-top: 30px; }
.md img { border-radius: 12px; border: 1px solid var(--line); margin: 16px 0; }
.md table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--bg2); }
.md code { background: var(--bg2); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }
.md pre { background: var(--bg2); padding: 14px; border-radius: 10px; overflow-x: auto; border: 1px solid var(--line); }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; }

/* news */
.news { padding-top: 48px; max-width: 900px; }
.release { margin: 32px 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.release .date { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

/* footer */
.foot { margin-top: 80px; padding: 32px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.foot .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

@media (max-width: 820px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
  .bar nav { gap: 12px; font-size: 14px; }
  body { font-size: 16px; }
}

/* the manual's start: a card per chapter; at the end of a chapter the previous and the next one */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 28px; }
.chapter { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); }
.chapter:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 18px -6px var(--accent); }
.chapter span { color: var(--muted); font-size: 13.5px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px 0 8px; }
.pager a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-weight: 700; font-family: var(--title); font-size: 18px; }
.pager a:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 18px -6px var(--accent); }
.pager a span { color: var(--accent); font-family: "Figtree", sans-serif; font-size: 13px; font-weight: 700; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }
