/* specterly.com: the public site (site/README.md). Tokens and textures come from the brand kit (brand/specterly.css,
   brand/textures.css, copies of the specterly-brand skill's tokens/ and kit/); this file is only the site's layout.
   Light only, as the brand is. */

body { background: var(--sp-pearl); color: var(--sp-blackboard); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sp-orange); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Floating pill navigation */
.nav {
  position: sticky; top: 14px; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  width: min(1120px, 100% - 24px); height: 56px; margin: 14px auto 0; padding: 0 10px 0 20px;
  border-radius: var(--sp-radius-pill); border: 1px solid var(--sp-border);
  background: color-mix(in srgb, var(--sp-pearl) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: var(--sp-shadow-sm);
}
.nav__brand { display: inline-flex; align-items: center; color: var(--sp-blackboard); }
.nav__brand img { height: 22px; width: auto; display: block; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: var(--sp-radius-pill);
  font: 500 var(--sp-text-base)/1 var(--sp-font-sans); text-decoration: none; white-space: nowrap;
  transition: transform 150ms var(--sp-ease-smooth), background-color 150ms var(--sp-ease-smooth), box-shadow 150ms var(--sp-ease-smooth);
}
.btn:active { transform: scale(0.97); }
.btn--lg { height: 48px; padding: 0 22px; font-size: var(--sp-text-md); }
.btn--ink { background: var(--sp-blackboard); color: var(--sp-pearl); }
.btn--ink:hover { background: color-mix(in srgb, var(--sp-blackboard) 88%, var(--sp-pearl)); }
.btn--ghost { color: var(--sp-fg-secondary); }
.btn--ghost:hover { background: color-mix(in srgb, var(--sp-blackboard) 6%, transparent); color: var(--sp-blackboard); }
.btn--outline { background: color-mix(in srgb, var(--sp-pearl) 70%, transparent); color: var(--sp-blackboard); box-shadow: inset 0 0 0 1px var(--sp-border-strong); }
.btn--outline:hover { background: var(--sp-pearl); }
.btn--spectrum {
  padding-right: 6px; color: var(--sp-blackboard);
  background: linear-gradient(100deg, var(--sp-sun) 0%, var(--sp-sun-400) 40%, var(--sp-orange) 100%);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--sp-orange) 55%, transparent), inset 0 1px 0 color-mix(in srgb, var(--sp-pearl) 60%, transparent);
}
.btn--spectrum:hover { box-shadow: 0 14px 36px -8px color-mix(in srgb, var(--sp-orange) 70%, transparent), inset 0 1px 0 color-mix(in srgb, var(--sp-pearl) 60%, transparent); }
.btn__chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sp-blackboard); color: var(--sp-pearl); }
.btn__chip svg { width: 16px; height: 16px; }

/* Coming-soon hero */
.hero { min-height: min(860px, 100svh); margin-top: -70px; padding: 140px 0 72px; display: grid; align-items: center; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: var(--sp-radius-pill);
  background: color-mix(in srgb, var(--sp-pearl) 78%, transparent); box-shadow: inset 0 0 0 1px var(--sp-border);
  font-size: var(--sp-text-sm); font-weight: 500; color: var(--sp-fg-secondary); backdrop-filter: blur(8px);
}
.soon__pixel { position: relative; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: var(--sp-blackboard); }
.soon__pixel::after { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--sp-orange); animation: soon 1.8s var(--sp-ease-smooth) infinite; }
@keyframes soon { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.display {
  font-family: var(--sp-font-display); font-weight: 500;
  font-size: clamp(3.4rem, 8vw, var(--sp-text-7xl)); line-height: var(--sp-text-7xl-lh); letter-spacing: var(--sp-text-7xl-ls);
  margin: 22px 0 22px; max-width: 10ch;
}
.lead { font-size: var(--sp-text-lg); font-weight: 300; line-height: 1.55; color: var(--sp-neutral-700, var(--sp-fg-secondary)); max-width: 44ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fine { margin: 18px 0 0; font-size: var(--sp-text-sm); color: var(--sp-fg-muted); }

/* Product fragments that float on the light */
.shot { position: relative; min-height: 470px; }
.frag { position: absolute; background: var(--sp-surface); border-radius: 20px; box-shadow: 0 0 0 1px var(--sp-border), var(--sp-shadow-lg); }
.frag--card { left: 0; top: 96px; width: 258px; z-index: 2; overflow: hidden; animation: float 9s ease-in-out infinite; }
.frag--chart { right: 0; top: 0; width: 248px; padding: 20px 20px 18px; animation: float 11s ease-in-out -3s infinite; }
.frag--chip { right: 24px; bottom: 6px; z-index: 3; padding: 10px 14px 10px 10px; display: inline-flex; align-items: center; gap: 10px; border-radius: var(--sp-radius-pill); animation: float 8s ease-in-out -5s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.frag__media { height: 176px; position: relative; background: linear-gradient(160deg, var(--sp-sun-200) 0%, var(--sp-sun) 45%, var(--sp-orange) 100%); }
.frag__media::after { content: ""; position: absolute; inset: 0; background: var(--sp-texture-dot) 0 0 / 10px 10px; opacity: 0.55; -webkit-mask-image: linear-gradient(to top, var(--sp-blackboard), transparent 75%); mask-image: linear-gradient(to top, var(--sp-blackboard), transparent 75%); }
.frag__badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; gap: 6px; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--sp-radius-pill); background: color-mix(in srgb, var(--sp-pearl) 88%, transparent); font-size: var(--sp-text-xs); font-weight: 500; }
.frag__badge i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--sp-positive-fg, var(--sp-blackboard)); }
.frag__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.frag__name { font-size: var(--sp-text-base); font-weight: 500; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--sp-text-sm); color: var(--sp-fg-secondary); }
.row b { font-weight: 500; color: var(--sp-blackboard); font-variant-numeric: tabular-nums; margin-left: auto; }
.delta { font-size: var(--sp-text-xs); font-weight: 500; padding: 2px 7px; border-radius: var(--sp-radius-pill); background: var(--sp-positive-bg); color: var(--sp-positive-fg); font-variant-numeric: tabular-nums; }
.meter { width: 64px; height: 6px; border-radius: 3px; background: var(--sp-surface-sunken); overflow: hidden; margin-left: auto; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--sp-blackboard); }
.frag__kicker { font-size: var(--sp-text-sm); color: var(--sp-fg-muted); }
.frag__value { font-family: var(--sp-font-display); font-weight: 500; font-size: var(--sp-text-3xl); letter-spacing: -0.02em; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.dotbars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; align-items: end; height: 96px; }
.dotbars span { display: grid; gap: 3px; align-content: end; justify-items: center; }
.dotbars span i { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--sp-blackboard); }
.dotbars span i:nth-last-child(n+4) { opacity: 0.55; }
.dotbars span i:nth-last-child(n+6) { opacity: 0.3; }
.dotbars span.is-signal i { background: var(--sp-orange); }
.frag--chip .mark { width: 28px; height: 28px; border-radius: 9px; background: var(--sp-blackboard); display: grid; place-items: center; }
.frag--chip .mark img { width: 16px; height: 16px; }
.frag--chip span { font-size: var(--sp-text-sm); font-weight: 500; }

/* Pillars */
.pillars { padding: 96px 0 24px; }
.pillars__head { max-width: 640px; margin-bottom: 40px; }
.kicker { font-size: var(--sp-text-sm); font-weight: 500; color: var(--sp-fg-muted); }
.h2 { font-family: var(--sp-font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, var(--sp-text-5xl)); line-height: 0.98; letter-spacing: -0.035em; margin: 12px 0 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { background: var(--sp-surface); border-radius: 20px; padding: 28px; box-shadow: 0 0 0 1px var(--sp-border-subtle), var(--sp-shadow-xs); }
.pillar__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--sp-blackboard); display: grid; place-items: center; margin-bottom: 28px; }
.pillar__icon img { width: 22px; height: 22px; }
.pillar h3 { font-family: var(--sp-font-display); font-weight: 500; font-size: var(--sp-text-2xl); letter-spacing: -0.02em; margin: 0 0 8px; }
.pillar p { margin: 0; color: var(--sp-fg-secondary); font-size: var(--sp-text-md); line-height: 1.55; }

/* Closing */
.closing { margin: 72px auto 0; width: min(1120px, 100% - 32px); border-radius: 28px; min-height: 360px; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.closing .h2 { margin: 0 auto 14px; max-width: 14ch; }
.closing p { margin: 0 auto 28px; color: var(--sp-fg-secondary); max-width: 46ch; font-size: var(--sp-text-md); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-family: var(--sp-font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, var(--sp-text-5xl)); letter-spacing: -0.035em; line-height: 1; margin: 0; }
.legal .updated { color: var(--sp-fg-muted); font-size: var(--sp-text-sm); margin: 14px 0 40px; }
.legal h2 { font-family: var(--sp-font-display); font-weight: 500; font-size: var(--sp-text-2xl); letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal h3 { font-size: var(--sp-text-md); font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--sp-fg-secondary); font-size: var(--sp-text-md); line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--sp-blackboard); font-weight: 600; }
.legal .box { background: var(--sp-surface); border-radius: 20px; box-shadow: 0 0 0 1px var(--sp-border-subtle); padding: 20px 24px; margin: 24px 0; }
.legal .box p { margin: 0; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal .toc li { margin: 0; }
.legal .toc a { display: inline-block; padding: 6px 12px; border-radius: var(--sp-radius-pill); background: var(--sp-surface); box-shadow: inset 0 0 0 1px var(--sp-border-subtle); font-size: var(--sp-text-sm); text-decoration: none; color: var(--sp-fg-secondary); }
.legal .toc a:hover { color: var(--sp-blackboard); }

/* Footer */
.foot { margin-top: 72px; border-top: 1px solid var(--sp-border); padding: 28px 0 44px; font-size: var(--sp-text-sm); color: var(--sp-fg-muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--sp-blackboard); text-decoration: underline; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .shot { display: none; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { padding: 0 6px 0 16px; }
  .nav .btn--ghost { display: none; }
  .hero { padding-top: 120px; min-height: auto; }
  .display { font-size: 3.2rem; }
  .btn--lg { height: 46px; }
  .pillars { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .frag, .soon__pixel::after { animation: none; }
}
