/* BlueCue. An editor's room: graphite like the Resolve timeline, light paper for reading,
   and the marker colors doing the talking. Every color is a token here; nothing raw below. */
:root {
  --bc-night: #121418;
  --bc-panel: #1B1E24;
  --bc-lane: #20242B;
  --bc-line: #2C313A;
  --bc-text: #ECEEF1;
  --bc-mist: #A3AAB4;
  --bc-paper: #F3F4F1;
  --bc-white: #FFFFFF;
  --bc-ink: #14171C;
  --bc-soft: #4D5560;
  --bc-rule: #D6D9D3;
  --bc-blue: #009FE0;
  --bc-blue-ink: #006E9C;
  /* marker colors, close to DaVinci Resolve's own */
  --m-blue: #2D7FF9;
  --m-cyan: #22C3D6;
  --m-purple: #8B5CF6;
  --m-fuchsia: #E040C8;
  --m-pink: #F472B6;
  --m-lemon: #E9E45A;
  --m-lavender: #B9A3F5;
  --m-yellow: #F2B830;
  --m-sand: #CDB78A;
  --m-cream: #EFE5C9;
  --m-cocoa: #8C6A4F;
  --m-green: #3FCF6E;
  --bc-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --bc-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --bc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--bc-sans); font-size: 1.0625rem; line-height: 1.6; color: var(--bc-ink); background: var(--bc-paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bc-blue); outline-offset: 3px; border-radius: 4px; }

.bc-wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.bc-narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.bc-section { padding-block: clamp(4rem, 9vw, 7rem); }
.bc-dark { background: var(--bc-night); color: var(--bc-text); }
.bc-paper { background: var(--bc-paper); }
.bc-white { background: var(--bc-white); }

.bc-h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.bc-h1 span { color: var(--bc-blue); }
.bc-h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.bc-h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.bc-lede { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--bc-soft); max-width: 40rem; margin-top: 1.1rem; }
.bc-dark .bc-lede { color: var(--bc-mist); }
.bc-small { font-size: 0.92rem; color: var(--bc-soft); }
.bc-dark .bc-small { color: var(--bc-mist); }
.bc-code { font-family: var(--bc-mono); font-size: 0.86em; font-weight: 500; letter-spacing: 0.02em; }
.bc-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--bc-blue); }
.bc-link:hover { color: var(--bc-blue-ink); }
.bc-dark .bc-link:hover { color: var(--bc-blue); }

.bc-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.bc-btn { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 8px; background: var(--bc-blue); color: var(--bc-night); font-weight: 600; text-decoration: none; border: 1.5px solid var(--bc-blue); transition: transform 0.25s var(--bc-ease), background 0.25s, color 0.25s; }
.bc-btn:hover { transform: translateY(-2px); background: var(--bc-text); border-color: var(--bc-text); }
.bc-btn-line { background: transparent; color: var(--bc-text); border-color: var(--bc-line); }
.bc-btn-line:hover { background: transparent; color: var(--bc-blue); border-color: var(--bc-blue); }
.bc-btn svg { width: 1.1rem; height: 1.1rem; }

/* top bar */
.bc-top { background: var(--bc-night); color: var(--bc-text); border-bottom: 1px solid var(--bc-line); }
.bc-top .bc-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.bc-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.bc-brand svg { width: 30px; height: 30px; }
.bc-top nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
.bc-top nav a { text-decoration: none; color: var(--bc-mist); }
.bc-top nav a:hover { color: var(--bc-text); }
.bc-top nav .bc-btn { min-height: 40px; padding: 0.45rem 1rem; color: var(--bc-night); }
@media (max-width: 760px) { .bc-top nav a:not(.bc-btn) { display: none; } }

/* hero + the drawn timeline */
.bc-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.bc-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--bc-mist); }
.bc-tl { position: relative; margin-top: clamp(2.8rem, 6vw, 4.2rem); background: var(--bc-panel); border: 1px solid var(--bc-line); border-radius: 12px; padding: 0.9rem 0 1.1rem; overflow: hidden; }
.bc-tl-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 1.1rem 0.6rem; font-family: var(--bc-mono); font-size: 0.8rem; color: var(--bc-mist); }
.bc-tl-head b { font-size: 1.15rem; font-weight: 500; color: var(--bc-text); letter-spacing: 0.02em; }
.bc-tl-body { display: grid; grid-template-columns: 3.2rem 1fr; }
.bc-tl-names { display: grid; grid-template-rows: 1.6rem 3.4rem repeat(3, 2.6rem); font-family: var(--bc-mono); font-size: 0.72rem; color: var(--bc-mist); }
.bc-tl-names span { display: flex; align-items: center; padding-left: 1.1rem; }
.bc-tl-grid { position: relative; display: grid; grid-template-rows: 1.6rem 3.4rem repeat(3, 2.6rem); margin-right: 1.1rem; }
.bc-ruler { position: relative; border-bottom: 1px solid var(--bc-line); background: repeating-linear-gradient(90deg, var(--bc-line) 0 1px, transparent 1px 2.5%); background-size: 100% 0.45rem; background-repeat: no-repeat; background-position: bottom; }
.bc-ruler span { position: absolute; left: var(--x); top: 0; font-family: var(--bc-mono); font-size: 0.7rem; color: var(--bc-mist); }
.bc-marks { position: relative; }
.bc-m { position: absolute; left: var(--x); bottom: 0.35rem; width: 13px; height: 17px; translate: -50% 0; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }
.bc-m.is-placed { background: var(--m-green); }
.bc-mark-label { position: absolute; left: var(--x); top: 0.15rem; translate: -50% 0; font-family: var(--bc-mono); font-size: 0.66rem; font-weight: 500; color: var(--bc-mist); white-space: nowrap; }
.bc-lane { position: relative; border-bottom: 1px solid var(--bc-line); background: var(--bc-lane); }
.bc-clip { position: absolute; top: 0.3rem; bottom: 0.3rem; left: var(--x); width: var(--w); border-radius: 4px; background: var(--c); opacity: 0.85; transform-origin: left center; }
.bc-wave { position: absolute; inset: 0.45rem 0; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--m-green) 0 2px, transparent 2px 5px); opacity: 0.35; mask: linear-gradient(180deg, transparent 0 20%, #000 20% 80%, transparent 80%); }
.bc-tl-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; padding: 0.9rem 1.1rem 0; font-size: 0.85rem; color: var(--bc-mist); }
.bc-tl-key i { display: inline-block; width: 10px; height: 13px; margin-right: 0.45rem; vertical-align: -1px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }
@media (max-width: 640px) {
  .bc-mark-label, .bc-ruler span:nth-child(even) { display: none; }
  .bc-tl-body { grid-template-columns: 2.4rem 1fr; }
  .bc-tl-names span { padding-left: 0.7rem; }
}

/* the loop */
.bc-loop { list-style: none; margin-top: 2.8rem; border-top: 1.5px solid var(--bc-ink); counter-reset: s; }
.bc-loop li { counter-increment: s; display: grid; grid-template-columns: 3rem 9rem minmax(0, 1fr); gap: 0.4rem 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--bc-rule); align-items: baseline; }
.bc-loop li::before { content: '0' counter(s); font-family: var(--bc-mono); font-size: 0.9rem; color: var(--bc-blue-ink); }
.bc-loop h3 { font-size: 1.2rem; }
.bc-loop p { color: var(--bc-soft); }
.bc-loop-back { margin-top: 1.2rem; font-family: var(--bc-mono); font-size: 0.85rem; color: var(--bc-blue-ink); }
@media (max-width: 720px) { .bc-loop li { grid-template-columns: 2.4rem 1fr; } .bc-loop li p { grid-column: 2; } }

/* two ways */
.bc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 2.8rem; border-top: 1.5px solid var(--bc-ink); }
.bc-two > div { padding: 1.8rem 2.4rem 0.4rem 0; }
.bc-two > div + div { padding-left: 2.4rem; border-left: 1px solid var(--bc-rule); }
.bc-two .bc-code { display: block; margin-bottom: 0.6rem; color: var(--bc-blue-ink); }
.bc-two p { color: var(--bc-soft); margin-top: 0.7rem; }
@media (max-width: 760px) { .bc-two { grid-template-columns: 1fr; } .bc-two > div, .bc-two > div + div { padding: 1.5rem 0; border-left: 0; } .bc-two > div + div { border-top: 1px solid var(--bc-rule); } }

/* color key */
.bc-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.8rem; border-top: 1px solid var(--bc-line); border-left: 1px solid var(--bc-line); }
.bc-key li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; align-items: center; padding: 1.1rem 1.2rem; border-right: 1px solid var(--bc-line); border-bottom: 1px solid var(--bc-line); }
.bc-key i { grid-row: span 2; width: 16px; height: 21px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }
.bc-key b { font-family: var(--bc-mono); font-weight: 500; font-size: 0.95rem; }
.bc-key span { font-size: 0.9rem; color: var(--bc-mist); }
.bc-key .bc-key-done { background: var(--bc-panel); }
.bc-key .bc-key-done b { color: var(--m-green); }
@media (max-width: 900px) { .bc-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* real screenshot */
.bc-shot { margin-top: 2.6rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--bc-rule); box-shadow: 0 30px 60px -36px rgba(18, 20, 24, 0.6); }
.bc-shot-cap { margin-top: 0.9rem; }

/* split + lists */
.bc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .bc-split { grid-template-columns: 1fr; } }
.bc-list { list-style: none; border-top: 1.5px solid var(--bc-ink); }
.bc-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; padding: 0.95rem 0; border-bottom: 1px solid var(--bc-rule); }
.bc-list svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--bc-blue-ink); }
.bc-list span b { font-weight: 600; }
.bc-not { margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-left: 3px solid var(--bc-blue); background: var(--bc-paper); }

/* who built it */
.bc-who { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; max-width: 52rem; }
.bc-who img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; }
.bc-who p + p { margin-top: 0.9rem; }
@media (max-width: 560px) { .bc-who { grid-template-columns: 1fr; } .bc-who img { width: 7rem; height: 7rem; } }

/* waitlist */
.bc-cta { text-align: left; }
.bc-cta .bc-h2 span { color: var(--bc-blue); }

/* footer */
.bc-foot { background: var(--bc-night); color: var(--bc-mist); border-top: 1px solid var(--bc-line); padding-block: 2.4rem; font-size: 0.9rem; }
.bc-foot .bc-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
.bc-foot a { color: var(--bc-text); }

/* motion: only when the visitor has not asked for less of it */
html.motion [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 0.9s var(--bc-ease), translate 0.9s var(--bc-ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion [data-reveal].in { opacity: 1; translate: 0 0; }
html.motion .bc-hero .bc-h1, html.motion .bc-hero .bc-lede, html.motion .bc-hero .bc-btns, html.motion .bc-hero .bc-note { animation: bc-rise 0.9s var(--bc-ease) both; }
html.motion .bc-hero .bc-lede { animation-delay: 0.12s; }
html.motion .bc-hero .bc-btns { animation-delay: 0.22s; }
html.motion .bc-hero .bc-note { animation-delay: 0.3s; }
/* the one authored moment: the plan lands on the timeline marker by marker, then the placed shots cut in and turn their markers green */
html.motion .bc-m, html.motion .bc-mark-label { animation: bc-drop 0.55s var(--bc-ease) both; animation-delay: calc(0.6s + var(--i) * 110ms); }
html.motion .bc-m.is-placed { animation: bc-drop 0.55s var(--bc-ease) both, bc-turn 0.35s ease both; animation-delay: calc(0.6s + var(--i) * 110ms), var(--t); }
html.motion .bc-clip { animation: bc-cut 0.5s var(--bc-ease) both; animation-delay: var(--t); }
@keyframes bc-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes bc-drop { from { opacity: 0; translate: -50% -14px; } to { opacity: 1; translate: -50% 0; } }
@keyframes bc-turn { from { background: var(--c); } to { background: var(--m-green); } }
@keyframes bc-cut { from { opacity: 0; transform: scaleX(0); } to { opacity: 0.85; transform: scaleX(1); } }
