/* ==========================================================================
   Tech Without the Noise — Landing page
   Two-panel hero (copy left, video right), viewport-fit on desktop.
   ========================================================================== */

:root {
  --bg: #0b0e14;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --line: rgba(255,255,255,0.10);
  --accent: #66b3ff;
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 15%, rgba(102,179,255,0.18), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(180,120,255,0.14), transparent 65%),
    radial-gradient(1000px 600px at 50% 90%, rgba(0,255,190,0.08), transparent 60%);
  pointer-events: none;
}

/* Main layout: header + hero (flex) + footer. Hero fills remaining viewport. */
.wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 32px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
  flex-shrink: 0;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 16px;
  display: inline-block;
  line-height: 0;
}

.brandLogo {
  display: block;
  height: 54px;
  width: auto;
  object-fit: contain;
}

.tag {
  font-size: 26px;
  color: var(--text);
  position: relative;
  height: 1.35em;
  overflow: hidden;
}

.tagLine {
  transition: opacity 0.5s ease;
  display: block;
  white-space: nowrap;
}

.tagLine--visible {
  opacity: 1;
  position: relative;
}

.tagLine--hidden {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .tagLine {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Hero: two panels, vertically centered, fit above the fold on desktop.
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 0 0 24px;
}

.heroLeft {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.lead {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.5;
  font-weight: 500;
}

.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.benefitIcon {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

.benefits strong {
  color: var(--text);
}

/* Right panel: video card — constrained so it doesn’t dominate. */
.heroRight {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.videoCard {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.videoShell {
  position: relative;
  padding: 12px;
  background: rgba(0,0,0,0.22);
}

.video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.10);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.videoOverlay {
  position: absolute;
  inset: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shared video button style — overlay and control bar. */
.overlayBtn,
.ctrlBtn {
  appearance: none;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(102,179,255,0.45);
  background: rgba(102,179,255,0.22);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}

.overlayBtn:hover,
.ctrlBtn:hover {
  background: rgba(102,179,255,0.28);
  border-color: rgba(102,179,255,0.5);
}

.overlayBtn.ghost {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
}

.overlayBtn.ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  flex-wrap: wrap;
}

.ctrlBtn.right {
  margin-left: auto;
}

.time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 4.5em;
  text-align: right;
  letter-spacing: 0.02em;
}

.scrub {
  flex: 1 1 100px;
  min-width: 72px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

.scrub::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
}

.scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
}

.scrub::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
}

.scrub::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  appearance: none;
}

/* Email capture (Notify me) */
.notifySection {
  padding: 24px 0 16px;
  border-top: 1px solid var(--line);
}

.notifyCopy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.notifyForm {
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.formRow {
  display: contents;
}

.formRowMessage {
  display: contents;
}

.notifyInput {
  min-width: 0;
}

.notifyTextarea {
  grid-column: 1;
  min-width: 0;
  box-sizing: border-box;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.notifyMessage {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: 14px;
  display: none;
}

.notifyBtn {
  flex-shrink: 0;
}

.notifyBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notifyMessage.notifySuccess {
  color: var(--accent);
}

.notifyMessage.notifyError {
  color: #f08080;
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.muted { color: var(--muted); }

/* Short viewport (e.g. 1366×768): reduce hero spacing so it fits above the fold. */
@media (max-height: 800px) {
  .wrap { padding: 16px 24px 24px; }
  .top { padding-bottom: 12px; }
  .hero { gap: 32px; padding: 0 0 16px; }
  .hero h1 { margin-bottom: 8px; }
  .lead { margin-bottom: 6px; }
  .sub { margin-bottom: 14px; }
  .videoShell { padding: 10px; }
  .videoOverlay { inset: 10px; }
  .controls { padding: 10px 14px; gap: 10px; }
}

/* --------------------------------------------------------------------------
   Responsive: tablet — keep two columns, tighter spacing.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    gap: 32px;
    padding: 0 0 20px;
  }

  .videoCard {
    max-width: 380px;
  }
}

/* --------------------------------------------------------------------------
   Responsive: mobile — stack panels, natural scroll.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .wrap {
    padding: 16px 18px 28px;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
    padding: 0 0 20px;
  }

  .heroLeft {
    order: 1;
  }

  .heroRight {
    order: 2;
    justify-content: stretch;
  }

  .videoCard {
    max-width: none;
  }

  .sub {
    max-width: none;
  }

  .benefits {
    gap: 8px;
  }
}

/* Unused legacy classes kept for any future use (e.g. CTA, pills). */
.videoFrame { position: relative; padding: 12px; background: rgba(0,0,0,0.22); }
.pill { position: absolute; left: 26px; bottom: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(0,0,0,0.55); color: var(--text); cursor: pointer; backdrop-filter: blur(10px); }
.pill.secondary { left: auto; right: 26px; display: none; }
.pill:hover { border-color: rgba(102,179,255,0.35); }
.ctaRow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.ctaCopy { min-width: 240px; flex: 1 1 320px; }
.ctaTitle { font-weight: 600; margin-bottom: 4px; }
.ctaNote { font-size: 13px; color: var(--muted); }
.ctaForm { display: flex; gap: 10px; flex: 1 1 320px; justify-content: flex-end; }
.input { width: min(360px, 100%); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.35); color: var(--text); outline: none; }
.input:focus { border-color: rgba(102,179,255,0.55); box-shadow: 0 0 0 3px rgba(102,179,255,0.18); }
.btn { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(102,179,255,0.45); background: rgba(102,179,255,0.22); color: var(--text); cursor: pointer; font-weight: 600; }
.btn:hover { background: rgba(102,179,255,0.28); }
