/* Landing page: live background hero, the three plates, steps, privacy and closing call. */

.topbar__signin { display: inline-flex; }

/* ----- Hero ----- */
.hero { padding-top: clamp(14px, 2vw, 26px); }

.hero__frame {
  --bg-base: #c4ebf1;
  --bg-deep: #7fcfdc;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "content marks"
    "dock dock";
  gap: 28px 36px;
  min-height: clamp(600px, calc(100svh - var(--header-height) - 44px), 940px);
  padding: clamp(26px, 4.6vw, 76px) clamp(22px, 4.6vw, 76px) clamp(20px, 2.6vw, 34px);
  background: linear-gradient(160deg, var(--bg-base), var(--bg-deep));
  color: var(--hero-ink);
  box-shadow: var(--shadow-panel);
  touch-action: pan-y;
}

.hero__frame[data-tone="light"] {
  --hero-ink: #141416;
  --hero-ink-2: rgba(20, 20, 22, 0.78);
  --hero-contrast: #f6f3ec;
  --hero-accent: var(--bg-text-accent, #05474f);
  --hero-scrim: color-mix(in srgb, var(--bg-base) 74%, transparent);
  --hero-chip-bg: rgba(255, 255, 255, 0.58);
  --hero-chip-line: rgba(20, 20, 22, 0.16);
}

.hero__frame[data-tone="dark"] {
  --hero-ink: #f6f3ec;
  --hero-ink-2: rgba(246, 243, 236, 0.84);
  --hero-contrast: #141416;
  --hero-accent: var(--bg-text-accent, #ffd9a0);
  --hero-scrim: color-mix(in srgb, var(--bg-deep) 72%, transparent);
  --hero-chip-bg: rgba(10, 10, 14, 0.44);
  --hero-chip-line: rgba(246, 243, 236, 0.24);
}

.hero__layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero__layer > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__content {
  grid-area: content;
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 18px;
  max-width: 780px;
  pointer-events: none;
}

.hero__content a,
.hero__content button { pointer-events: auto; }

/* A soft wash of the field's own color behind the words keeps them legible over any effect. */
.hero__content::before {
  content: "";
  position: absolute;
  inset: -22% -18% -22% -26%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--hero-scrim), transparent);
  pointer-events: none;
}

.hero__eyebrow { color: var(--hero-ink-2); }

.hero__title {
  font-size: var(--step-hero);
  font-weight: 420;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.hero__title .display-italic { font-weight: 300; letter-spacing: -0.03em; }

.hero__by {
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.35vw + 0.68rem, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.hero__lede {
  max-width: 54ch;
  font-size: clamp(1.05rem, 0.45vw + 0.98rem, 1.32rem);
  color: var(--hero-ink-2);
}

.hero__actions { margin-top: 10px; }

.hero__frame .pill--primary { --pill-bg: var(--hero-ink); --pill-ink: var(--hero-contrast); }

.hero__frame .hero__ghost,
.hero__chip {
  --pill-bg: var(--hero-chip-bg);
  --pill-ink: var(--hero-ink);
  --pill-border: var(--hero-chip-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero__chip[aria-pressed="true"] {
  --pill-bg: var(--hero-ink);
  --pill-ink: var(--hero-contrast);
  --pill-border: transparent;
}

.hero__marks {
  grid-area: marks;
  position: relative;
  z-index: 1;
  align-self: start;
  justify-content: flex-end;
  margin: 0;
  --dl-mark-focus: var(--hero-accent);
}

.hero__marks .dl-mark { --dl-mark-size: clamp(84px, 8.6vw, 132px); color: var(--hero-ink); }

.hero__dock {
  grid-area: dock;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
}

.hero__hint {
  flex: 1 1 320px;
  max-width: 58ch;
  min-height: 2.9em;
  font-size: 0.92rem;
  color: var(--hero-ink-2);
}

.hero__chooser {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 520px;
}

.hero .reg-marks { inset: -14px; }

/* ----- Section heads ----- */
.section-head {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

.section-head h2 { font-size: var(--step-1); }

/* ----- Plates ----- */
.plates { padding-top: clamp(96px, 11vw, 160px); }

.plates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(72px, 9vw, 128px);
}

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5.5vw, 88px);
  align-items: center;
}

.plate:nth-child(even) .plate__visual { order: 2; }

.plate__visual {
  aspect-ratio: 5 / 4;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

.plate__text { display: grid; gap: 16px; align-content: start; }
.plate__text > p { color: var(--ink-2); max-width: 54ch; }

.plate__no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.plate__title {
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 330;
  letter-spacing: -0.03em;
}

.plate__try { font-size: 0.92rem; }

.spec {
  list-style: none;
  margin: 6px 0 4px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.spec li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.spec__key {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec li > .spec__key:first-child { min-width: 9.5em; }

.spec--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.spec--columns li > .spec__key:first-child { min-width: 0; width: 100%; }

/* Plate 01: the layered badge */
.exploded {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  background:
    radial-gradient(70% 60% at 50% 42%, var(--surface-2) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px),
    var(--surface-sunken);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.exploded:active { cursor: grabbing; }
.exploded:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-panel); }

.exploded__rig {
  position: relative;
  width: min(58%, 400px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
}

.exploded__layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.exploded__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
}

.exploded__tag {
  position: absolute;
  left: 102%;
  top: 46%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Plate 02: the gesture pad */
.gesture-pad {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px),
    var(--surface);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.gesture-pad:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-panel); }

.gesture-pad__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gesture-pad__readout {
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.6rem, 2.2rem);
  font-style: italic;
  font-weight: 340;
  color: var(--ink);
  pointer-events: none;
}

.gesture-pad__legend {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.gesture-pad__tag {
  background: var(--surface-2);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
}

.gesture-pad__tag[data-active] {
  background: var(--ink);
  color: var(--ground);
  border-color: transparent;
  transform: translateY(-2px);
}

.gesture-pad__probe { position: absolute; visibility: hidden; }

/* Plate 03: background palettes */
.plate__swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(165deg, var(--swatch-base), var(--swatch-deep));
  color: var(--swatch-ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.swatch__dots { display: flex; gap: 5px; }

.swatch__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.swatch__title { font-weight: 750; font-size: 0.92rem; line-height: 1.2; }
.swatch__palette { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; opacity: 0.8; }

/* ----- Steps ----- */
.steps { padding-top: clamp(110px, 12vw, 170px); }

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.step {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 30px 28px 8px 0;
}

.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }

.step__no {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.9;
  color: var(--accent);
}

.step__title { font-size: var(--step-3); font-weight: 480; }
.step p { color: var(--ink-2); }

/* ----- Private ----- */
.private { padding-top: clamp(110px, 12vw, 170px); }

.private__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 5.5vw, 76px);
  border-radius: var(--radius-panel);
  background: light-dark(#141416, #f3f0e8);
  color: light-dark(#f3f0e8, #141416);
  box-shadow: var(--shadow-panel);
}

.private__inner .eyebrow { color: light-dark(rgba(243, 240, 232, 0.7), rgba(20, 20, 22, 0.66)); }
.private__inner h2 { font-size: var(--step-1); margin: 12px 0 16px; }
.private__inner .lede { color: light-dark(rgba(243, 240, 232, 0.82), rgba(20, 20, 22, 0.78)); }

.private__seal {
  display: grid;
  place-items: center;
  width: clamp(96px, 12vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(140deg, #ecd2ad, var(--accent-fill) 55%, var(--accent-fill-2));
  color: var(--accent-ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.private__seal .icon { width: 44%; height: 44%; stroke-width: 1.4; }

/* ----- Closing call ----- */
.closing { padding-top: clamp(110px, 12vw, 170px); }

.closing__inner { display: grid; gap: 32px; justify-items: start; }
.closing__title { font-size: var(--step-1); max-width: 20ch; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .plate { grid-template-columns: 1fr; }
  .plate:nth-child(even) .plate__visual { order: 0; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

@media (max-width: 760px) {
  .topbar__signin { display: none; }

  .hero__frame {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "marks"
      "content"
      "dock";
    min-height: calc(100svh - var(--header-height) - 28px);
    gap: 22px;
    padding: 22px 18px 18px;
  }

  .hero__marks { justify-content: flex-start; gap: 14px; }
  .hero__marks .dl-mark { --dl-mark-size: 64px; width: auto; flex-direction: row; text-align: left; }
  .hero__marks .dl-mark__label { max-width: 11em; font-size: 0.62rem; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero__content::before { inset: -10% -8%; }

  .hero__chooser {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -18px;
    padding: 4px 18px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero__chooser::-webkit-scrollbar { display: none; }
  .hero__chip { scroll-snap-align: start; }

  .plate__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: auto; }
  .swatch { min-height: 92px; }
  .spec--columns { grid-template-columns: 1fr; }
  .private__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps__list { grid-template-columns: 1fr; }
  .step,
  .step + .step { padding: 24px 0 4px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 0; }
  .plate__visual { aspect-ratio: 4 / 3.4; }
  .exploded__tag { left: auto; right: -4%; top: auto; bottom: 2%; }
}
/* Public demos use procedural forms; private logo geometry only arrives through authorized APIs. */
.public-mark { width: 100px; height: 100px; animation: public-mark-turn 7s ease-in-out infinite alternate; }
.generic-layers { position: relative; width: 190px; height: 190px; transform-style: preserve-3d; transform: perspective(750px) rotateX(24deg) rotateZ(-15deg); transition: transform 0.7s; outline-offset: 20px; }
.generic-layers__part { position: absolute; inset: 0; border-radius: 50%; background: #17171c; border: 1px solid #c8b37e; box-shadow: 0 14px 25px #0003; transition: transform 0.7s; }
.generic-layers__part--1 { inset: 12px; background: #c8b37e; }
.generic-layers__part--2 { inset: 26px; background: #1d2027; }
.generic-layers__part--3 { inset: 52px; border-radius: 24px; background: #c8b37e; transform: rotate(45deg); }
.generic-layers__part span { position: absolute; left: calc(100% + 12px); top: 50%; font-family: var(--font-mono); font-size: 11px; color: #141416; opacity: 0; transition: opacity 0.5s; }
.generic-layers:hover, .generic-layers:focus { transform: perspective(750px) rotateX(52deg) rotateZ(-25deg); }
.generic-layers:hover .generic-layers__part--1, .generic-layers:focus .generic-layers__part--1 { transform: translateZ(40px); }
.generic-layers:hover .generic-layers__part--2, .generic-layers:focus .generic-layers__part--2 { transform: translateZ(80px); }
.generic-layers:hover .generic-layers__part--3, .generic-layers:focus .generic-layers__part--3 { transform: translateZ(120px) rotate(45deg); }
.generic-layers:hover span, .generic-layers:focus span { opacity: 1; }
@keyframes public-mark-turn { to { transform: rotate(-18deg) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .public-mark { animation: none; } .generic-layers, .generic-layers__part { transition: none; } }
