/* ============================================================================
   PROTOLOOP — single-screen landing (hackathon cut)
   Near-white, monospace, one cobalt accent. Copy left, video right. No scroll.
   ========================================================================== */

:root {
  --bg:          #f7f8fa;
  --card:        #ffffff;
  --ink:         #15171b;
  --ink-2:       #34373d;
  --gray:        #5d626b;
  --faint:       #9aa0a8;
  --line:        #e4e6ec;
  --line-2:      #d6d9e0;
  --cobalt:      #1b34ff;
  --cobalt-deep: #1226cf;
  --cobalt-soft: rgba(27, 52, 255, 0.10);
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', 'Cascadia Code', monospace;
}

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

html, body { height: 100%; }

body {
  font-family: var(--mono);
  font-size: clamp(13.5px, 0.5vw + 12px, 15px);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;               /* desktop: locked to one screen */
}
::selection { background: var(--cobalt); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ---- shell: header / hero / footer in one viewport --------------------- */
.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1rem, 2.4vh, 1.6rem) clamp(1.4rem, 4vw, 3.4rem);
}

/* ---- top strip --------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand .logo { width: 26px; height: 26px; display: block; }
.brand .bn { font-weight: 800; letter-spacing: 0.26em; font-size: 0.86rem; }
.top-r { display: flex; align-items: center; gap: 1.1rem; }
.micro { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
         color: var(--faint); }
.toplink { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
           color: var(--ink-2); transition: color 0.15s; }
.toplink:hover { color: var(--cobalt); }

/* ---- hero split -------------------------------------------------------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1rem, 3vh, 2.5rem) 0;
}

/* left — copy */
.copy { max-width: 33rem; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
           font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
           color: var(--gray); }
.eyebrow .sq { width: 7px; height: 7px; background: var(--cobalt); flex: 0 0 auto; }

.copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 1.3rem;
}
.copy h1 .muted { color: var(--gray); }
.copy h1 .accent { color: var(--cobalt); }

.sub { font-size: clamp(0.9rem, 0.4vw + 0.82rem, 1.04rem); line-height: 1.62;
       color: var(--ink-2); max-width: 40ch; margin-bottom: 1.7rem; }
.sub b { color: var(--ink); font-weight: 700; }

.vals { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-bottom: 2rem; }
.vals li { display: flex; align-items: center; gap: 0.5rem;
           font-size: 0.78rem; letter-spacing: 0.02em; color: var(--gray); }
.vals li::before { content: ""; width: 5px; height: 5px; background: var(--cobalt);
                   transform: rotate(45deg); flex: 0 0 auto; }

.cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.fineprint { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85rem 1.5rem; min-height: 46px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); border: 1.5px solid var(--ink); background: transparent;
  cursor: pointer; transition: background 0.16s, color 0.16s, border-color 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 15px; height: 15px; display: block; flex: 0 0 auto; }
.btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* corner registration ticks on hover */
.btn .tk { position: absolute; width: 8px; height: 8px; border: 1.5px solid var(--cobalt);
           opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; }
.btn .tk.tl { top: -4px; left: -4px;  border-right: 0; border-bottom: 0; }
.btn .tk.tr { top: -4px; right: -4px; border-left: 0;  border-bottom: 0; }
.btn .tk.bl { bottom: -4px; left: -4px;  border-right: 0; border-top: 0; }
.btn .tk.br { bottom: -4px; right: -4px; border-left: 0;  border-top: 0; }
.btn:hover .tk { opacity: 1; }
.btn:hover .tk.tl { transform: translate(-3px, -3px); }
.btn:hover .tk.tr { transform: translate(3px, -3px); }
.btn:hover .tk.bl { transform: translate(-3px, 3px); }
.btn:hover .tk.br { transform: translate(3px, 3px); }

.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- right — video placeholder ---------------------------------------- */
.media { width: 100%; min-width: 0; }
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20, 24, 40, 0.02), 0 24px 50px -28px rgba(20, 30, 80, 0.22);
  display: grid; place-items: center;
  overflow: hidden;
}
/* SWAP-IN: an <iframe> dropped in fills the frame automatically */
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* click-to-play facade */
.ph-btn { position: absolute; inset: 0; display: block; text-decoration: none; cursor: pointer; }
.ph-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; }
.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scrim { position: absolute; inset: 0; background: rgba(8, 12, 28, 0.30); transition: background 0.2s ease; }
.ph-btn:hover .scrim { background: rgba(8, 12, 28, 0.44); }

.frame .ftag { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 9px;
               letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.frame .fratio { position: absolute; top: 14px; right: 16px; z-index: 2; font-size: 9px;
                 letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.75); }

.ph { position: absolute; inset: 0; z-index: 2; display: grid; justify-items: center;
      align-content: center; gap: 1rem; text-align: center; padding: 1.5rem; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--cobalt);
        display: grid; place-items: center; transition: transform 0.18s ease, background 0.18s ease;
        box-shadow: 0 10px 28px -6px rgba(27, 52, 255, 0.55); }
.play::after { content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.ph-btn:hover .play { transform: scale(1.06); background: var(--cobalt-deep); }
.ph .pt { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }

/* ---- footer ------------------------------------------------------------ */
.btm { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
       font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.btm a:hover { color: var(--cobalt); }

/* ---- responsive / short viewports ------------------------------------- */
@media (max-width: 900px), (max-height: 680px) {
  body { overflow-x: hidden; overflow-y: auto; }  /* phones & short screens may scroll */
  .shell { min-height: 100svh; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 1.6rem 0; }
  .copy { max-width: none; }
  .media { order: 2; }
}
@media (max-width: 560px) {
  .micro { display: none; }
  .cta { width: 100%; flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .btm { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
