/* Prygenix products site — same design language as prygenix.com:
   black canvas, gold accent, Plus Jakarta Sans, gradient cards with gold borders. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --gold: #d4af37;
  --gold-hover: #e2c14f;
  --gold-soft: rgba(212, 175, 55, .2);
  --gold-mid: rgba(212, 175, 55, .5);
  --gold-tint: rgba(212, 175, 55, .08);
  --ink: #ffffff;
  --text: #d1d5db;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, .1);
  --black: #000000;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --card: linear-gradient(135deg, rgba(31, 41, 55, .5), rgba(17, 24, 39, .5));
  --section-alt: linear-gradient(180deg, #000 0%, #111827 50%, #000 100%);
  --radius: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #000; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
/* same content width as prygenix.com: 85% of the window, 16px gutters (32px from 1024px) */
.wrap { max-width: 85%; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.gold { color: var(--gold); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.site-header .brand .mark { width: auto; height: 40px; border-radius: 0; box-shadow: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: 2px; }
.nav { display: flex; gap: 24px; flex: 1; justify-content: center; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 400; font-size: 1rem; white-space: nowrap; transition: color .3s; }
.nav a.active { color: var(--gold); font-weight: 500; }
.nav a:hover { color: var(--gold); }
.header-cta.btn { padding: 8px 16px; font-size: .875rem; font-weight: 500; border-radius: 8px; box-shadow: none; flex: none; }
.header-cta.btn:hover { transform: none; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn svg { transition: transform .15s; }
.nav-menu { position: absolute; top: 100%; left: -14px; min-width: 290px; padding: 8px; margin-top: 12px; background: #0b0f17; border: 1px solid var(--gold-soft); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav-menu a:hover { background: var(--gold-tint); }
.nav-menu b { display: block; font-weight: 600; color: var(--ink); }
.nav-menu a:hover b { color: var(--gold); }
.nav-menu span { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; margin-top: 2px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, background .2s, border-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #000; box-shadow: 0 8px 24px rgba(212, 175, 55, .22); }
.btn-primary:hover { background: var(--gold-hover); color: #000; }
.btn-ghost { border-color: var(--gold-mid); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }
.btn-outline { border-color: rgba(255, 255, 255, .22); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- hero */
.hero { background: radial-gradient(900px 460px at 85% -10%, rgba(212, 175, 55, .12), transparent 60%), radial-gradient(700px 420px at 0% 110%, rgba(45, 140, 255, .07), transparent 60%), #000; color: var(--ink); padding: 84px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1.15fr; gap: 56px; align-items: center; }
.hero .lead { color: var(--muted); }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-meta span::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 7px; }
.hero-visual { position: relative; }
.hero-visual .demo { box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px var(--gold-soft); }

/* ---------------------------------------------------------------- sections */
section { padding: 88px 0; }
.section-alt { background: var(--section-alt); }
.section-head { margin-bottom: 48px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 26px; transition: border-color .25s; }
.card:hover { border-color: var(--gold-mid); }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 10px; background: var(--gold-tint); border: 1px solid var(--gold-soft); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; }
/* the inline icons were drawn black/grey on white: recolour them for the dark theme */
.icon [stroke="#111111"] { stroke: var(--gold); }
.icon [fill="#111111"] { fill: var(--gold); }
.icon [stroke="#8a8a8a"] { stroke: #9ca3af; }
.icon [fill="#8a8a8a"] { fill: #9ca3af; }
.icon [fill="#fff"] { fill: #111827; }

/* product cards on the home page */
.product { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product .thumb { background: linear-gradient(150deg, #111827, #000); padding: 18px; border-bottom: 1px solid var(--gold-soft); }
.product .thumb .demo { border-radius: 8px; }
.product .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product .body p { color: var(--muted); }
.product .body .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-live { background: var(--gold); color: #000; }
.badge-soon { background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid var(--line); }
.soon-art { aspect-ratio: 16 / 9; border-radius: 8px; background: repeating-linear-gradient(45deg, rgba(212, 175, 55, .06) 0 12px, transparent 12px 24px); display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat b { display: block; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat span { color: var(--muted); font-size: .92rem; }

/* features list */
.feature { display: flex; gap: 16px; }
.feature .icon { flex: none; }
.feature h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* demo cards */
.demo-card { background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s; }
.demo-card:hover { border-color: var(--gold-mid); }
.demo-card .meta { padding: 18px 20px 20px; }
.demo-card h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.demo-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.demo-card .len { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--gold); background: var(--gold-tint); border: 1px solid var(--gold-soft); padding: 3px 8px; border-radius: 999px; }

/* the demo player (the animation itself stays light, like a Revit window) */
.demo { position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-radius: 10px; cursor: pointer; }
.demo-card .demo { border-radius: 0; border-bottom: 1px solid var(--gold-soft); }
.demo svg, .demo video { width: 100%; height: 100%; display: block; }
.demo video { object-fit: cover; }
.demo .progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); width: 0; }
.demo .replay { position: absolute; top: 10px; right: 10px; font-size: .72rem; font-weight: 700; color: #000; background: var(--gold); padding: 4px 9px; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.demo:hover .replay { opacity: 1; }
.demo-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.demo-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .25s, background .25s; }
.demo-dots button:hover { background: var(--gold-mid); }
.demo-dots button.on { width: 24px; background: var(--gold); }
.demo-now { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 30px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #000; display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 6px 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* screenshots */
.shot { border-radius: 12px; border: 1px solid var(--gold-soft); box-shadow: var(--shadow); background: #fff; }
.shot-caption { font-size: .88rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* licensing */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--text); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-tint), var(--shadow); }

/* compatibility strip */
.compat { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--gold-soft); background: rgba(255, 255, 255, .03); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta { background: radial-gradient(600px 300px at 100% 0%, rgba(212, 175, 55, .14), transparent 60%), linear-gradient(135deg, #111827, #000); border: 1px solid var(--gold-soft); color: var(--ink); border-radius: 18px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta p { color: var(--muted); margin: 0; }
.cta .btn-row { justify-content: flex-end; }

/* footer */
.site-footer { background: #000; color: var(--muted); padding: 56px 0 32px; font-size: .92rem; border-top: 1px solid var(--gold-soft); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--ink); font-size: .95rem; margin: 0 0 12px; font-weight: 600; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { display: flex; color: var(--ink); margin-bottom: 8px; gap: 12px; }
.site-footer .brand .mark { width: auto; height: 34px; border-radius: 0; box-shadow: none; }
.site-footer .tagline { color: var(--gold); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.site-footer .legal-links { white-space: nowrap; }
.site-footer .legal-links a { display: inline; padding: 0; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-footer .social a { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--gray-800); color: var(--gold); display: grid; place-items: center; transition: background .25s, color .25s; }
.site-footer .social a:hover { background: var(--gold); color: #000; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* hero of the Features, Demos, Licensing and Free trial pages */
.page-hero { padding: 72px 0 64px; }
.page-hero .wrap { display: block; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 720px; margin-bottom: 0; }
@media (max-width: 720px) { .page-hero { padding: 48px 0 44px; } }

/* page hero for product pages */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* product pages: feature groups, tool guide, linked chips */
.panel-title { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--gold-soft); }
.panel-title:first-of-type { margin-top: 0; }
a.chip { color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
a.chip:hover { border-color: var(--gold); color: var(--gold); }
[id] { scroll-margin-top: 88px; }
.guide .card h3 { margin-top: 0; }
.guide .card { font-size: .95rem; }
.guide .card p, .guide .card li { color: var(--muted); }
.guide .card b { color: var(--text); }
.guide ol { margin: 0 0 10px 1.1em; padding: 0; }
.guide li { margin: 3px 0; }
.guide li::marker { color: var(--gold); }
.guide .card.wide { grid-column: 1 / -1; }
.guide .card.wide ol { columns: 2; column-gap: 32px; }
.guide .card.wide li { break-inside: avoid; }
.hero .stats { grid-column: 1 / -1; margin-top: 8px; border-top: 1px solid var(--gold-soft); padding-top: 32px; }
.product .thumb .demo { box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.product-wide { grid-column: span 2; }
.product-wide .thumb { padding: 22px; }
.product .body .badge { align-self: flex-start; }
.product .body .btn-row { margin-top: auto; }
.plan a:not(.btn), .plan li a { color: inherit; }
.plan .btn-row { margin-top: auto; }
.plan .btn-row .btn { margin-top: 0; }

/* product brochure (preview image + view / download) */
.brochure-meta { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.brochure-thumb { display: block; justify-self: center; width: 100%; max-width: 380px; border-radius: 10px; overflow: hidden; border: 1px solid var(--gold-soft); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transition: transform .25s, border-color .25s; }
.brochure-thumb:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--gold-mid); }
.brochure-thumb img { width: 100%; height: auto; display: block; }

/* back to top (same gold circle as prygenix.com) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold); color: #000; cursor: pointer; box-shadow: 0 10px 30px rgba(212, 175, 55, .3); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s cubic-bezier(.22, 1, .36, 1), background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); background: var(--gold-hover); }
.to-top svg { display: block; }
@media (max-width: 720px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero .wrap, .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .product-wide { grid-column: auto; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #000; border-bottom: 1px solid var(--gold-soft); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-drop { width: 100%; }
  .nav-drop-btn svg { display: none; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; margin: 0; padding: 0 0 0 14px; border: 0; background: none; box-shadow: none; min-width: 0; }
  .nav-menu::before { display: none; }
  .nav-menu a { padding: 8px 0; }
  .nav-menu a:hover { background: none; }
  .nav-menu span { display: none; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 760px) { .guide .card.wide ol { columns: 1; } }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta { padding: 34px 26px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product, .card { transition: none; }
}
