/* Landing-page-only composition. Everything shared lives in app.css. */

/* --- hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  /* The rig has a real minimum before its 16:9 screen becomes unreadable, so
     give the text column the flexible share and let the whole thing stack
     early rather than squeezing both. */
  grid-template-columns: minmax(0, 1.1fr) minmax(min(22rem, 100%), 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
}

.hero .display { margin-top: 1.1rem; }

/* Outlined word — the grid shows straight through it. */
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper-dim);
  paint-order: stroke fill;
}

/* --- demo rig (fake OBS source) ------------------------------------------ */
.rig {
  margin: 0;
  border: 1px solid var(--line-hot);
  background: var(--panel);
  box-shadow: var(--shadow-lift);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}

.rig-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.rig-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Checkerboard = the universal "this layer is transparent" signal. */
  background-color: #0d0c0b;
  background-image:
    linear-gradient(45deg, #16130f 25%, transparent 25%, transparent 75%, #16130f 75%),
    linear-gradient(45deg, #16130f 25%, transparent 25%, transparent 75%, #16130f 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  overflow: hidden;
}
.rig-screen canvas { position: absolute; inset: 0; display: block; }

.rig-ghost {
  position: absolute; left: 0.7rem; bottom: 0.6rem;
  opacity: 0.4; pointer-events: none;
}

.rig-foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.8rem; border-top: 1px solid var(--line);
  background: var(--ink-2);
}

/* --- about (purpose statement for OAuth review + real visitors) ----------- */
.about { padding-block: clamp(1rem, 3vh, 2rem); }

.about-panel { border-color: var(--line-hot); }

.about-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.about-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--paper-dim);
  max-width: 78ch;
  margin: 0 0 1rem;
}
.about-text strong { color: var(--paper); }
.about-text:lang(en) { color: var(--paper-mute); }

.about-note {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--paper-mute);
  max-width: 78ch;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

/* --- marquee -------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 0.7rem 0;
  margin-block: clamp(1rem, 4vh, 3rem);
}
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--paper-dim);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 26s linear infinite; }
}
@keyframes slide { to { transform: translateX(-50%); } }

/* --- sections ------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 9vh, 6rem); }
.section-head { margin-bottom: clamp(1.8rem, 4vh, 3rem); }
.section-title {
  font-size: clamp(1.75rem, 4.5vw, 3.4rem);
  margin-top: 0.7rem;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(20rem, 100%), 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* --- steps ---------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step { border: 0; padding: clamp(1.4rem, 3vw, 2.1rem); }
.step::before, .step::after { display: none; }
.step h3 {
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0.9rem 0 0.5rem;
}
.step p { margin: 0; font-size: 0.85rem; line-height: 1.65; }
.step-num {
  font-family: var(--display); font-size: 2.6rem; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1px var(--line-hot);
  line-height: 1; display: block;
  transition: -webkit-text-stroke-color 0.3s, color 0.3s;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--tally); color: rgb(255 59 31 / 0.08); }

/* --- OBS card ------------------------------------------------------------- */
.obs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.obs-card input[readonly] { color: var(--paper-dim); cursor: default; }

/* --- ticks ---------------------------------------------------------------- */
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.84rem; color: var(--paper-dim); line-height: 1.55;
}
.ticks li::before {
  content: '▸'; position: absolute; left: 0; top: 0;
  color: var(--tally); font-size: 0.8rem;
}

/* --- access --------------------------------------------------------------- */
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
.access h3 { font-size: 1.25rem; margin: 0.9rem 0 0.6rem; text-transform: uppercase; }
.access p { font-size: 0.85rem; margin: 0; line-height: 1.65; }
.access--hot { background: linear-gradient(180deg, rgb(255 59 31 / 0.05), transparent 45%), var(--panel); }

/* --- security ------------------------------------------------------------- */
.security {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  border-color: rgb(77 226 194 / 0.3);
}
.security::before, .security::after { border-color: var(--mint); }
.security-mark {
  width: 62px; height: 62px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgb(77 226 194 / 0.35);
  color: var(--mint);
  background: rgb(77 226 194 / 0.06);
}
.security-mark svg { width: 30px; height: 30px; }
.security-title { font-size: clamp(1.5rem, 3.6vw, 2.4rem); margin-top: 0.6rem; text-transform: uppercase; }

.perm-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.6rem; }
.perm {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem; background: var(--ink-2);
  font-size: 0.82rem;
}
.perm span {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center;
  font-size: 0.72rem; border-radius: 50%;
}
.perm--yes { color: var(--paper); }
.perm--yes span { background: rgb(77 226 194 / 0.15); color: var(--mint); }
.perm--no { color: var(--paper-mute); }
.perm--no span { background: rgb(255 59 31 / 0.12); color: var(--tally); }

/* --- final CTA ------------------------------------------------------------ */
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem; align-items: end;
  border-top: 1px solid var(--line); padding-top: clamp(3rem, 8vh, 5rem);
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero, .split, .cta, .security { grid-template-columns: minmax(0, 1fr); }
  .rig { transform: none; }
  .cta { align-items: start; }
  .security-mark { width: 50px; height: 50px; }
}

@media (max-width: 640px) {
  .topbar nav a:not(.btn--primary) { display: none; }
  .obs-grid { grid-template-columns: 1fr; }
}
