@import url("fonts.css");

/* ==========================================================================
   DataBeacon — design system
   Brand: deep navy #011b26, teal #168485, Barlow (self-hosted, no CDN).
   One stylesheet, no build step, no JS dependency.
   ========================================================================== */

:root {
  --navy:        #011b26;
  --navy-deep:   #01141c;
  --teal:        #168485;
  --teal-bright: #1ba3a4;
  --ink:         #2d2e33;
  --muted:       #6c7b81;
  --line:        #e5e5e7;
  --paper:       #ffffff;
  --paper-alt:   #f6f8f8;
  --ok:          #3dc372;
  --warn:        #ff9e45;

  --measure: 34rem;          /* readable line length */
  --wrap: 72rem;             /* page container */
  --wrap-narrow: 54rem;

  --step--1: clamp(.86rem, .84rem + .1vw, .92rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.32rem + .9vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3.1rem);
  --step-4:  clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
a  { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal-bright); }
img, video { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

/* ---------- layout ---------- */
.wrap    { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-n  { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark  { background: var(--navy); color: #eaf1f2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--alt   { background: var(--paper-alt); }

.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 1rem;
}
.section--dark .eyebrow { color: var(--teal-bright); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 42rem; }
.section--dark .lede { color: #a9c0c4; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 27, 38, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  color: #cddadd; text-decoration: none; font-size: var(--step--1);
  font-weight: 500; letter-spacing: .02em; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .72em 1.35em; border-radius: 3px;
  font-weight: 600; font-size: var(--step--1); letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-bright); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--quiet { border-color: var(--line); color: var(--ink); }
.btn--quiet:hover { border-color: var(--muted); color: var(--ink); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.hero__inner { position: relative; padding: clamp(4rem, 11vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { color: #b9ccd0; }

/* ---------- Victor5 platform mark (top-right of the hero) ----------
   Victor5 is the name of the platform, so it sits top-right as a peer to the
   DataBeacon logo top-left rather than as a footnote under the buttons. */
.hero__platform {
  position: absolute; top: 0; right: 0; z-index: 2; display: block; line-height: 0;
}
.hero__platform img { width: clamp(9rem, 15vw, 14rem); height: auto; opacity: .95; }
.hero__platform:hover img { opacity: 1; }
@media (max-width: 46rem) {
  .hero__platform { position: static; margin-bottom: 2rem; }
  .hero__platform img { width: 9rem; }
}

/* ---------- highlighted keywords ----------
   Used to pick LIVE and REPLAY out of the hero headline. A slow breathing glow
   rather than a blink: anything flashing more than three times a second is a
   seizure risk (WCAG 2.3.1), and it reads as dated. This cycle is 2.6s and is
   switched off entirely under prefers-reduced-motion. */
.hl {
  color: var(--teal-bright);
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  animation: hl-pulse 2.6s ease-in-out infinite;
}
@keyframes hl-pulse {
  0%, 100% { color: var(--teal-bright); text-shadow: 0 0 0 rgba(27,163,164,0); }
  50%      { color: #35d6d7;            text-shadow: 0 0 18px rgba(53,214,215,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .hl { animation: none; }
}

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--paper); }
.proof__inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; padding: 1.15rem 0; }
.proof__label { font-size: var(--step--1); color: var(--muted); }
.proof__items { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-weight: 600; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 3rem; }
.step__n { font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; color: var(--teal); text-transform: uppercase; }
.section--dark .step__n { color: var(--teal-bright); }
.step h3 { margin-top: .5rem; }
.step p { color: var(--muted); margin-bottom: 0; }
.section--dark .step p { color: #a9c0c4; }

/* ---------- metric panel ---------- */
.metrics { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 2.5rem; }
.metric { border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; background: var(--paper); }
.metric__v { font-size: var(--step-3); font-weight: 600; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.metric__k { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }
.note { font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; }

/* ---------- product cards ---------- */
.products { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); margin-top: 3rem; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--paper);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
/* Taller frame + contain, so nothing is cropped: the ROMEO5/DELTA5 shots are
   transparent device cut-outs at ~1.08 ratio and were losing their tops and
   bottoms to a 16/9 cover crop. Navy backdrop matches the cut-outs. */
.card__media {
  aspect-ratio: 4 / 3; object-fit: contain; width: 100%;
  background: var(--navy); padding: .9rem;
}
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35rem; }
.card__kicker { font-size: var(--step--1); color: var(--teal); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card__body p { color: var(--muted); flex: 1; }
/* The card itself is no longer a link — only this line is, so the copy reads as
   text and can be selected. */
.card__link {
  align-self: flex-start; margin-top: .5rem;
  font-weight: 600; font-size: var(--step--1); letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; color: var(--teal);
}
.card__link:hover { color: var(--teal-bright); text-decoration: underline; text-underline-offset: .25em; }
.card__link::after { content: " \2192"; }

/* ---------- feature rows ---------- */
.feature { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature__media { order: -1; }
}
.feature + .feature { margin-top: clamp(3rem, 7vw, 5.5rem); }
.feature__media img, .feature__media video { border-radius: 5px; border: 1px solid var(--line); width: 100%; }
.section--dark .feature__media img { border-color: rgba(255,255,255,.14); }

/* ---------- pull quote / principle ---------- */
.principle { font-size: var(--step-2); font-weight: 500; line-height: 1.25; max-width: 26ch; letter-spacing: -.015em; }

/* ---------- list ---------- */
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal);
}

/* ---------- spec table ---------- */
.spec { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: var(--step--1); }
.spec th, .spec td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 32%; font-weight: 600; color: var(--navy); }
.spec td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #93a9ad; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; font-size: var(--step--1); }
.site-footer h4 { color: #fff; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cddadd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy);
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media { display: none; }
  * { transition: none !important; animation: none !important; }
}
