/* Parlour Systems — site styles.
   Palette from the Parlour dashboard: deep navy + gold, with warm ivory. */

:root {
  --navy-950: #0a0f16;
  --navy-900: #0f1620;
  --navy-800: #16202d;
  --navy-700: #213044;
  --gold: #e8b93a;
  --gold-soft: #f3cf6b;
  --gold-deep: #b9861f;
  --ivory: #f7f3ea;
  --ivory-2: #efe8d8;
  --ink: #18202b;
  --ink-2: #4a5566;
  --line: #e2dac7;
  --white: #ffffff;
  --on-dark: #e9edf3;
  --on-dark-2: #a9b4c4;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 22, 32, .06), 0 12px 32px rgba(15, 22, 32, .08);
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Gentle snapping: when you stop near a section, it settles with its heading
   just under the menu bar. "proximity" never forces a jump, so long sections
   can still be read at any point. */
html { scroll-behavior: smooth; scroll-padding-top: 68px; scroll-snap-type: y proximity; }
/* Not the hero: snapping there pulls each scroll back to the top, so the
   screenshot crossfade (driven by scroll position) was skipped or never seen. */
.section { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--navy-900); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .82em 1.35em; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 6px 20px rgba(232, 185, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { box-shadow: 0 10px 28px rgba(232, 185, 58, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--on-dark); border-color: rgba(233, 237, 243, .22); }
.btn-ghost:hover { border-color: rgba(233, 237, 243, .5); background: rgba(255, 255, 255, .04); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }
.btn-sm { padding: .62em 1.05em; font-size: .88rem; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 22, .94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand span { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }
.brand em { font-style: normal; font-weight: 400; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  color: var(--on-dark-2); text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(232, 185, 58, .14), transparent 60%),
              linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%);
  color: var(--on-dark);
  padding: 96px 0 112px;
}
.hero-glow {
  position: absolute; inset: auto -10% -40% auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(232, 185, 58, .12), transparent);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow.dark { color: var(--gold-deep); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.7rem); color: var(--white); }
.gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 24px; font-size: 1.14rem; color: var(--on-dark-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--on-dark-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Real screenshots, in a window frame */
.shot {
  margin: 0; border-radius: 16px; overflow: hidden; background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(232, 185, 58, .06);
}
.shot img, .shot picture { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #161616; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.hero-shot { box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 185, 58, .08), 0 0 120px rgba(232, 185, 58, .07); }

/* Hero slideshow: screenshots crossfade, each settling in from a slight zoom. */
.slideshow .shot-bar { align-items: center; }
.shot-caption {
  margin: 0 0 0 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .78rem; font-weight: 500; color: var(--on-dark-2);
  transition: opacity .4s ease;
}
.shot-caption.changing { opacity: 0; }
.slides { position: relative; aspect-ratio: 1880 / 960; overflow: hidden; background: #111; }
/* Opacity and zoom are set from the scroll position (js/main.js), so no
   transitions: the fade follows the scroll exactly, both ways. */
.slides .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; will-change: opacity, transform;
}
.slides .slide:first-child { opacity: 1; }

/* Desktop: the hero holds while you scroll through the screenshots, then
   the page carries on. Three screens ≈ two extra viewport heights. */
@media (min-width: 1021px) and (min-height: 620px) {
  .hero.scrolly { height: 240vh; padding: 0; }
  .hero.scrolly .hero-grid {
    position: sticky; top: 68px; min-height: calc(100vh - 68px);
    align-content: center; padding: 48px 0;
  }
}
.slide-dots { display: flex; align-items: center; gap: 7px; margin-left: 14px; }
.slide-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: width .35s ease, background .35s ease;
}
.slide-dots button.active { width: 22px; background: var(--gold); }
.slide-dots button:hover { background: rgba(255, 255, 255, .7); }
.slide-dots button.active:hover { background: var(--gold-soft); }
.showcase { background: var(--ivory); }
.showcase-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.showcase .shot { box-shadow: 0 30px 70px rgba(15, 22, 32, .28); }
.showcase-copy h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.showcase-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); }

/* ── Standards strip ─────────────────────────────────────────────────── */
.strip { background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .06); color: var(--on-dark-2); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding: 22px 0; flex-wrap: wrap; }
.strip-inner p { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #6d7a8c; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 500; }
.strip li { color: var(--on-dark); opacity: .85; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 112px 0; }
.section.tint { background: var(--ivory-2); }
.section.dark {
  background: radial-gradient(900px 500px at 10% 0%, rgba(232, 185, 58, .08), transparent 60%), var(--navy-900);
  color: var(--on-dark);
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); }
.dark .section-head h2 { color: var(--white); }
.dark .section-head p:not(.eyebrow) { color: var(--on-dark-2); }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(232, 185, 58, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9861f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 40px;
  box-shadow: var(--shadow);
}
.product-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-top img { border-radius: 14px; }
.product-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: #0f1620; }
.product-icon svg { width: 28px; height: 28px; fill: none; stroke: #e6bd55; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.tag { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-top: 4px; }
.product > p { color: var(--ink-2); font-size: 1.04rem; }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sec {
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .25s ease, transform .25s ease;
}
.sec:hover { border-color: rgba(232, 185, 58, .35); transform: translateY(-2px); }
.sec h3 { color: var(--white); margin: 18px 0 10px; }
.sec p { color: var(--on-dark-2); font-size: .97rem; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(232, 185, 58, .12); border: 1px solid rgba(232, 185, 58, .25);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feat { background: var(--ivory); padding: 34px 32px; transition: background .2s ease; }
.feat:hover { background: var(--white); }
.feat h3 { margin-bottom: 10px; }
.feat h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); margin-bottom: 16px; }
.feat p { color: var(--ink-2); font-size: .97rem; }

/* Architecture */
.arch { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.arch-copy h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.arch-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); }
.arch-fig { margin: 0; background: var(--navy-900); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px rgba(15, 22, 32, .22); }
.arch-fig svg { width: 100%; height: auto; font-family: var(--sans); }
.arch-fig figcaption { margin-top: 14px; color: var(--on-dark-2); font-size: .88rem; text-align: center; }
.zone { fill: rgba(255, 255, 255, .025); stroke: rgba(232, 185, 58, .35); stroke-dasharray: 5 6; }
.zone-t { fill: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.node rect { fill: #16202d; stroke: rgba(255, 255, 255, .14); }
.node text { fill: var(--white); font-size: 14px; font-weight: 600; text-anchor: middle; }
.node text.sub { fill: var(--on-dark-2); font-size: 11.5px; font-weight: 400; }
.node.gold rect { fill: rgba(232, 185, 58, .14); stroke: var(--gold); stroke-width: 1.5; }
.node.gold text:not(.sub) { fill: var(--gold-soft); font-family: var(--serif); font-size: 19px; }
.link { fill: none; stroke: rgba(233, 237, 243, .45); stroke-width: 1.6; }
.link.dash { stroke-dasharray: 4 5; stroke: rgba(233, 237, 243, .3); }
.link.gold-l { stroke: var(--gold); }
.arr { fill: rgba(233, 237, 243, .7); }

/* Deployment */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deploy { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.deploy h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.deploy p { color: var(--ink-2); margin: 10px 0 22px; font-size: .97rem; }
pre {
  margin: auto 0 0; padding: 14px 16px; border-radius: 12px; background: var(--navy-900); color: #e6ebf2;
  font: 400 .84rem/1.5 var(--mono); overflow-x: auto;
}
pre .c { color: var(--gold); margin-right: .5em; user-select: none; }
.airgap {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 34px 40px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(232, 185, 58, .22), rgba(232, 185, 58, .06)), var(--ivory-2);
  border: 1px solid rgba(185, 134, 31, .3);
}
.airgap h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.airgap p { color: var(--ink-2); margin-top: 6px; max-width: 40em; }
.airgap .btn { flex: none; }

/* Who */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.who { padding: 30px 26px; border-radius: 18px; background: var(--ivory); border: 1px solid var(--line); }
.who h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.who p { color: var(--ink-2); font-size: .96rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--white); }
.contact-grid > div > p:not(.eyebrow) { margin-top: 18px; color: var(--on-dark-2); font-size: 1.08rem; }
.mail a { color: var(--gold-soft); }
.form {
  display: grid; gap: 16px; padding: 34px; border-radius: 22px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--on-dark); }
.form input,
.form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--white);
  padding: 12px 14px; border-radius: 10px; background: rgba(10, 15, 22, .6);
  border: 1px solid rgba(255, 255, 255, .14); transition: border-color .2s ease;
  resize: vertical;
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: .88rem; color: var(--on-dark-2); min-height: 1.2em; }

/* Footer */
.footer { background: var(--navy-950); color: var(--on-dark-2); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--white); }

/* Reveal on scroll (only when JS runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slides .slide { transform: none !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid, .arch, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .sec-grid, .feat-grid, .deploy-grid { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 76px; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 42px; height: 42px;
    background: none; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
    padding: 8px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1rem; }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .products, .sec-grid, .feat-grid, .deploy-grid, .who-grid { grid-template-columns: 1fr; }
  .product, .form { padding: 26px; }
  .airgap { flex-direction: column; align-items: flex-start; padding: 28px; }
  .strip-inner { gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
