/* Hallmark macrostructure: 05 · Workbench — product screens lead; docs trail. */
/* Direction: Signal desk — cool slate paper, deep ink, coral status signal. */

:root {
  --ink: #0b1219;
  --ink-soft: #1c2836;
  --paper: #e6edf2;
  --paper-elevated: #f4f7fa;
  --line: rgba(11, 18, 25, 0.12);
  --muted: #5a6b7c;
  --signal: #e8462f;
  --ok: #0d8f6b;
  --accent: #1f6feb;
  --desk: #0f1720;
  --desk-panel: #161f2a;
  --glow: rgba(31, 111, 235, 0.22);
  --radius: 14px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 111, 235, 0.12), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(232, 70, 47, 0.08), transparent 55%),
    linear-gradient(180deg, #dfe8ef 0%, var(--paper) 32%, #d9e3ea 100%);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(230, 237, 242, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.brand span {
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

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

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

.nav-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 18, 25, 0.18);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn--signal {
  background: var(--signal);
  color: #fff;
}

.btn--signal:hover {
  background: #cf3a25;
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: #185ec9;
  color: #fff;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section__lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Hero (Workbench hanging title + product shot) —— */
.hero {
  padding: 3.25rem 0 2rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: end;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(13, 143, 107, 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--signal);
}

.hero__copy {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero__shot {
  position: relative;
}

.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--desk);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 60px rgba(11, 18, 25, 0.28);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2.5deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero__shot:hover .hero__figure,
.hero__shot:focus-within .hero__figure {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 32px 64px rgba(11, 18, 25, 0.34);
}

.hero__figure-frame {
  background: var(--desk);
}

.hero__figure-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.hero__figure figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.88rem;
  color: #c5d0dc;
  background: var(--desk-panel);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__figure figcaption strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* —— Workbench bento (3 equal cards) —— */
.workbench {
  padding: 1rem 0 3rem;
}

.workbench__bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.shot-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--desk-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(11, 18, 25, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.shot-card:hover,
.shot-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 18, 25, 0.22);
  outline: none;
}

.shot-card:focus-visible {
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 4px var(--accent),
    0 20px 40px rgba(11, 18, 25, 0.22);
}

.shot-card__media {
  background: var(--desk);
  aspect-ratio: 16 / 11;
  overflow: hidden;
  flex: 1;
}

.shot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.shot-card__media--contain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.65rem 0;
}

.shot-card__media--contain img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}

.shot-card__caption {
  display: block;
  padding: 0.85rem 1rem 1rem;
  color: #c5d0dc;
  font-size: 0.88rem;
  line-height: 1.45;
}

.shot-card__caption strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* —— Lightbox —— */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 12, 18, 0.82);
  cursor: zoom-out;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 96vw);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--desk);
}

.lightbox__caption {
  margin: 0;
  color: #d7dee8;
  font-size: 0.92rem;
  text-align: center;
  max-width: 40rem;
}

.lightbox__close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ink);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__close:hover {
  background: var(--ink-soft);
}

/* —— Install —— */
.install {
  background: var(--desk);
  color: #d7dee8;
  border-radius: 22px;
  margin: 0 1.25rem;
  padding: 3rem 0;
  box-shadow: 0 24px 50px rgba(11, 18, 25, 0.2);
}

.install .wrap {
  max-width: calc(var(--max) - 2.5rem);
}

.install .section__eyebrow {
  color: #8a9aab;
}

.install .section__title {
  color: #fff;
}

.install .section__lede {
  color: #9aabbc;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.steps strong {
  display: block;
  color: #fff;
  margin-bottom: 0.25rem;
}

.steps code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.install__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Features —— */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— FAQ —— */
.faq {
  max-width: 44rem;
  margin: 2rem 0 0;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* —— Support band —— */
.support {
  margin: 0 1.25rem;
  border-radius: 22px;
  padding: 2.5rem 0;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.12), transparent 50%),
    linear-gradient(225deg, rgba(232, 70, 47, 0.1), transparent 45%),
    var(--paper-elevated);
  border: 1px solid var(--line);
}

.support__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.support__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— About —— */
.about {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.about__photo {
  width: 200px;
  height: 200px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(11, 18, 25, 0.18);
  border: 3px solid #fff;
}

.about h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.about__role {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.about__links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.about__links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Privacy strip —— */
.privacy-strip {
  padding: 2.5rem 0 1rem;
}

.privacy-strip__box {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy-strip__box strong {
  color: var(--ink);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s var(--ease) forwards;
  }

  .reveal-d1 { animation-delay: 0.08s; }
  .reveal-d2 { animation-delay: 0.16s; }
  .reveal-d3 { animation-delay: 0.24s; }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* —— Responsive —— */
@media (max-width: 920px) {
  .hero__grid,
  .support__grid,
  .about,
  .features {
    grid-template-columns: 1fr;
  }

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

  .hero__shot {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .hero__figure {
    transform: none;
  }

  .nav-links {
    display: none;
  }

  .about__photo {
    width: 140px;
    height: 140px;
  }

  .about {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 560px) {
  .about {
    grid-template-columns: 1fr;
  }

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

  .install {
    margin: 0;
    border-radius: 0;
  }

  .support {
    margin: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__figure {
    transform: none;
  }
}
