/* The home page: a bar, a big title with one phrase "selected" as in the editor, and a Manim scene (drawn by the
   app's own engine) playing faintly behind it. Same colours and fonts as the app (see ../style.css). */
:root {
  --bg: #111111;
  --line: #272727;
  --text: #c3c2b7;
  --text-2: #898781;
  --white: #f2f1ea;
  --accent: #3291ff;
  --font: "Geist", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }

/* the scene fills the window like a cover photo (16:9, cut at the sides or top and bottom) */
.lp-bg {
  position: fixed; left: 50%; top: 50%; z-index: 0; pointer-events: none;
  width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1.2s ease; mix-blend-mode: screen; /* the scene's black becomes the page's grey */
}
.lp-bg.on { opacity: 0.42; }
@media (max-aspect-ratio: 1/1) { /* tall phone screens: the whole scene a little wider than the screen, at the bottom */
  .lp-bg { top: auto; bottom: 0; width: 125vw; height: 70.3vw; transform: translate(-50%, 0); }
}
/* darker behind the words and under the bar, so they stay easy to read */
.lp-shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0) 100%),
    linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0) 120px);
}

.lp-nav {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center;
  height: 52px; padding: 0 12px; /* the app's bar, so the name sits where the app's does */
}
.lp-brand {
  display: block; margin-left: -2px; padding: 4px 6px; border-radius: 6px; /* the app's .brand */
  color: var(--white); font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none;
}
.lp-brand:hover { background: #262626; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid #303030; background: #151515; color: var(--white); font-size: 14px;
  font-weight: 500; text-decoration: none; transition: background .12s, border-color .12s;
}
.lp-btn svg { flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-btn span { display: inline-block; } /* so landing.js can move it with a transform, for optical centring */
.lp-btn.primary { background: var(--white); border-color: var(--white); color: #111; }
.lp-btn.primary:hover { background: #fff; border-color: #fff; }
.lp-btn:focus-visible, .lp-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lp-hero {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px 16px 76px; text-align: center; /* 52 + 24: the bar's height, so the words sit in the window's middle */
}
.lp-hero h1 {
  margin: 0; color: var(--white); font-size: clamp(42px, 7.2vw, 88px); line-height: 1.08; font-weight: 700;
  letter-spacing: -0.045em;
}
.lp-line { display: block; }
/* one phrase picked as in the editor: a thin blue frame with square handles, a little turned */
.lp-pick {
  position: relative; display: inline-block; margin-top: 0.12em; padding: 0.02em 0.22em 0.1em;
  border: 2px solid var(--accent); border-radius: 4px; background: rgba(50, 145, 255, 0.10); transform: rotate(-2deg);
}
.lp-pick .h {
  position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 2px; background: var(--white);
}
.lp-pick .tl { left: -7px; top: -7px; }
.lp-pick .tr { right: -7px; top: -7px; }
.lp-pick .bl { left: -7px; bottom: -7px; }
.lp-pick .br { right: -7px; bottom: -7px; }
.lp-sub { margin: 36px 0 0; color: var(--text-2); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; }
.lp-cta { margin-top: 36px; height: 48px; padding: 0 22px; font-size: 16px; }

@media (max-width: 600px) {
  .lp-sub br { display: none; }
  .lp-pick .h { width: 10px; height: 10px; }
  .lp-pick .tl, .lp-pick .bl { left: -6px; } .lp-pick .tr, .lp-pick .br { right: -6px; }
  .lp-pick .tl, .lp-pick .tr { top: -6px; } .lp-pick .bl, .lp-pick .br { bottom: -6px; }
}
