/* passingit.com landing — one seam between two timelines */
:root {
  --retro-bg: #04120a;
  --retro-phosphor: #46ff8e;
  --retro-dim: #1d7a48;
  --retro-glow: rgba(70, 255, 142, 0.55);
  --ai-bg: #0a0e18;
  --ai-text: #e8ecf4;
  --ai-dim: #9aa3b5;
  --ai-1: #7c9cff;
  --ai-2: #5ce0b8;
  --seam: 2px;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #05070a;
  font-family: var(--sans);
}

/* ---------- Split layout ---------- */
.split {
  display: flex;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

.half {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* seam line */
.seam {
  flex: 0 0 var(--seam);
  background: rgba(255, 255, 255, 0.14);
  position: relative;
}
.seam-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.35);
  animation: seam-travel 9s ease-in-out infinite alternate;
}
@keyframes seam-travel {
  from { top: 12%; }
  to   { top: 84%; }
}

/* ---------- RETRO half ---------- */
.retro {
  background:
    radial-gradient(120% 90% at 50% 115%, #0a2415 0%, var(--retro-bg) 55%),
    var(--retro-bg);
  color: var(--retro-phosphor);
  font-family: var(--mono);
}
.retro::before { /* CRT vignette */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 85% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.55) 100%);
}
.scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 20, 8, 0.28) 3px,
    rgba(0, 20, 8, 0.28) 4px
  );
  mix-blend-mode: multiply;
}
.flicker {
  position: absolute; inset: 0;
  pointer-events: none;
  background: rgba(70, 255, 142, 0.03);
  animation: flicker 4s steps(12) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  8%  { opacity: 0.55; }
  9%  { opacity: 1; }
  54% { opacity: 0.8; }
  55% { opacity: 1; }
  81% { opacity: 0.65; }
  82% { opacity: 1; }
}

/* terminal window */
.terminal {
  position: absolute;
  top: 8%; left: 7%;
  width: 62%;
  max-width: 380px;
  background: rgba(2, 14, 7, 0.75);
  border: 1px solid rgba(70, 255, 142, 0.35);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(70, 255, 142, 0.12), inset 0 0 22px rgba(70, 255, 142, 0.05);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  font-size: 0.66rem;
  letter-spacing: 2px;
  color: var(--retro-dim);
  border-bottom: 1px solid rgba(70, 255, 142, 0.25);
}
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--retro-phosphor);
  box-shadow: 0 0 8px var(--retro-glow);
  animation: blink-led 2.2s steps(2) infinite;
}
@keyframes blink-led { 50% { opacity: 0.35; } }
.term-body { padding: 12px 14px 14px; }
.tline {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 1px;
  color: var(--retro-dim);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
}
.tline .ok { color: var(--retro-phosphor); }
.tline.show { opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s; }
.t-type { color: var(--retro-phosphor); }
.cursor { animation: cursor-blink 1s steps(2) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }

/* retro copy */
.retro .half-content { max-width: 460px; padding: 0 40px; margin-top: 26vh; z-index: 2; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 4px;
  margin: 0 0 14px;
}
.retro .eyebrow { color: var(--retro-dim); }
.retro h1 {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: 2px;
  margin: 0 0 16px;
  text-shadow: 0 0 18px var(--retro-glow);
}
.retro h1 .hl { color: #b6ffd4; }
.retro .desc {
  margin: 0 0 26px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #7fd6a4;
}

/* ---------- AI half ---------- */
.ai {
  background:
    radial-gradient(110% 90% at 50% 115%, #131c33 0%, var(--ai-bg) 55%),
    var(--ai-bg);
  color: var(--ai-text);
}
.neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 72% 28%, rgba(124, 156, 255, 0.22), transparent 70%),
    radial-gradient(34% 30% at 24% 78%, rgba(92, 224, 184, 0.16), transparent 70%);
  animation: glow-drift 11s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translateY(-1.5%) scale(1); }
  to   { transform: translateY(1.5%) scale(1.04); }
}

.ai .half-content { max-width: 460px; padding: 0 44px; z-index: 2; }
.ai .eyebrow { color: #6f7a93; }
.ai h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 16px;
  line-height: 1.08;
}
.ai h1 .hl {
  background: linear-gradient(92deg, var(--ai-1), var(--ai-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai .desc {
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ai-dim);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px 26px;
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-retro {
  color: var(--retro-phosphor);
  border: 1px solid rgba(70, 255, 142, 0.6);
  background: rgba(70, 255, 142, 0.06);
  box-shadow: 0 0 16px rgba(70, 255, 142, 0.12), inset 0 0 12px rgba(70, 255, 142, 0.06);
}
.retro:hover .btn-retro {
  background: rgba(70, 255, 142, 0.16);
  box-shadow: 0 0 26px rgba(70, 255, 142, 0.35), inset 0 0 16px rgba(70, 255, 142, 0.12);
  transform: translateY(-2px);
}
.btn-ai {
  color: #0b0f17;
  background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(124, 156, 255, 0.28);
}
.ai:hover .btn-ai {
  box-shadow: 0 12px 34px rgba(124, 156, 255, 0.45);
  transform: translateY(-2px);
}

/* hover: the hovered timeline swells */
@media (hover: hover) {
  .half:hover, .half:focus-visible { flex-grow: 1.45; }
  .half:not(:hover):not(:focus-visible) .half-content { opacity: 0.55; }
  .half .half-content { transition: opacity 0.4s ease; }
}
.half:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }

/* corner brackets */
.corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.9rem;
  opacity: 0.3;
  z-index: 2;
}
.corner.tl { top: 14px; left: 16px; }
.corner.tr { top: 14px; right: 16px; }
.corner.bl { bottom: 14px; left: 16px; }
.corner.br { bottom: 14px; right: 16px; }
.retro .corner { color: var(--retro-phosphor); }
.ai .corner { color: var(--ai-text); }

/* ---------- wordmark + tagline ---------- */
.wordmark {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 3px;
  display: flex;
  gap: 6px;
  background: rgba(5, 7, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  backdrop-filter: blur(8px);
}
.w-retro { color: var(--retro-phosphor); }
.w-sep { color: rgba(255, 255, 255, 0.35); }
.w-ai {
  background: linear-gradient(92deg, var(--ai-1), var(--ai-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* ---------- small screens: stack the timelines ---------- */
@media (max-width: 760px) {
  html, body { overflow: auto; }
  .split { flex-direction: column; height: auto; min-height: 100dvh; }
  .half {
    flex: 1 1 auto;
    min-height: 55dvh;
    margin: 0;
  }
  .seam { flex: 0 0 var(--seam); width: 100%; height: var(--seam); }
  .seam-dot {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: seam-travel-x 9s ease-in-out infinite alternate;
  }
  @keyframes seam-travel-x {
    from { left: 14%; }
    to   { left: 86%; }
  }
  .terminal { top: 9%; width: 78%; max-width: none; }
  .retro .half-content { margin-top: 18vh; padding: 0 28px 8vh; }
  .ai .half-content { padding: 8vh 28px; }
  .tagline { font-size: 0.6rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .flicker, .glow, .seam-dot, .cursor, .led { animation: none; }
  .half { transition: none; }
  .neural { display: none; }
}
