/* ============================================================
   Relay Video Lab — shared site stylesheet
   Used by index.html and every product page (e.g. /relayplayer/).
   ============================================================ */

:root{
  --bg:#ffffff;
  --bg-alt:#f5f8fc;
  --bg-alt2:#eef2f9;
  --panel:#f8fafc;
  --panel-border:rgba(15,23,42,0.10);
  --panel-border-2:rgba(15,23,42,0.17);
  --text:#0f172a;
  --muted:#475569;
  --muted-2:#64748b;
  --blue:#3b82f6;
  --cyan:#38bdf8;
  --purple:#a855f7;
  --accent:#0369a1;
  --grad:linear-gradient(90deg,#38bdf8 0%,#3b82f6 45%,#a855f7 100%);
  --grad-text:linear-gradient(90deg,#0ea5e9 0%,#2563eb 45%,#9333ea 100%);
  --grad-soft:linear-gradient(135deg,rgba(56,189,248,0.14),rgba(168,85,247,0.10));
  --bezel:#0c1420;
  --radius:16px;
  --maxw:1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,'Inter',Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:rgba(15,23,42,0.06);padding:1px 5px;border-radius:5px;font-size:0.92em;}
img{max-width:100%;display:block;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
section{position:relative;}

body::before{
  content:"";
  position:fixed;inset:0;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(56,189,248,0.06), transparent 60%),
    radial-gradient(900px 560px at 5% 15%, rgba(168,85,247,0.05), transparent 55%);
  pointer-events:none;
  z-index:0;
}

/* ---------- NAV ---------- */
header.site-nav{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--panel-border);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;padding:10px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;}
.brand img{height:64px;width:auto;}

.masthead{padding:44px 0 8px;text-align:center;position:relative;z-index:2;}
.masthead img{height:104px;width:auto;margin:0 auto;}
.masthead-tag{margin:18px auto 0;max-width:520px;color:var(--muted);font-size:15.5px;}
.masthead .badge{margin:20px auto 0;}

nav.links{display:flex;align-items:center;gap:30px;}
nav.links a.nav-link{
  font-size:14.5px;color:var(--muted);font-weight:500;
  transition:color .15s ease;
}
nav.links a.nav-link:hover, nav.links a.nav-link.active{color:var(--text);}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 20px;border-radius:999px;
  font-size:14px;font-weight:600;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px);}
.btn-grad{
  background:var(--grad);
  color:#04070d;
  box-shadow:0 8px 22px -8px rgba(59,130,246,0.45);
}
.btn-grad:hover{box-shadow:0 10px 28px -8px rgba(168,85,247,0.5);}
.btn-ghost{
  background:transparent;
  border:1px solid var(--panel-border-2);
  color:var(--text);
}
.btn-ghost:hover{border-color:rgba(15,23,42,0.35);background:rgba(15,23,42,0.03);}
.btn-sm{padding:8px 16px;font-size:13.5px;}
.btn[disabled], .btn.btn-disabled{
  opacity:0.55;cursor:default;pointer-events:none;
}

.menu-toggle{display:none;background:none;border:none;color:var(--text);padding:6px;cursor:pointer;}
.menu-toggle svg{width:24px;height:24px;}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 14px;border-radius:999px;
  background:var(--panel);border:1px solid var(--panel-border);
  font-size:13px;color:var(--muted);
}
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--grad);flex:none;}

/* ---------- BREADCRUMB ---------- */
.crumb{
  font-size:13.5px;color:var(--muted-2);
  display:flex;align-items:center;gap:8px;
  padding:18px 0 0;
}
.crumb a{color:var(--accent);}
.crumb a:hover{text-decoration:underline;}

/* ---------- SECTION HEADINGS ---------- */
.eyebrow{
  font-size:12.5px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--accent);margin:0 0 12px;
}
h1,h2,h3{letter-spacing:-0.01em;font-weight:750;color:var(--text);margin:0 0 16px;}
h2{font-size:30px;}
h3{font-size:20px;}
.grad-text{
  background:var(--grad-text);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.section-head{max-width:640px;margin-bottom:44px;}
.section-head p{color:var(--muted);font-size:16px;margin:0;}
.section-pad{padding:80px 0;}
.section-alt{background:var(--bg-alt);}
.section-alt2{background:var(--bg-alt2);}
.section-line{height:2px;background:var(--grad);opacity:0.5;}
.divider{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(15,23,42,0.14), transparent);
  max-width:var(--maxw);margin:0 auto;
}

/* ---------- PRODUCT HERO (dark bezel + carousel) ---------- */
.phero-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:52px;align-items:center;}
.phero-media{
  background:var(--bezel);
  border-radius:22px;
  padding:26px;
  box-shadow:0 30px 70px -28px rgba(15,23,42,0.35);
}
.phero-logo{width:300px;max-width:100%;height:auto;margin:0 auto 22px;}
.phero-frame{position:relative;border-radius:12px;overflow:hidden;}
.phero-frame img{
  width:100%;height:auto;display:block;
  border-radius:12px;border:1px solid rgba(255,255,255,0.10);
}
.phero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,0.92);
  border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 20px -6px rgba(0,0,0,0.5);
  color:#0c1420;
  transition:background .15s ease;
}
.phero-arrow:hover{background:#ffffff;}
.phero-arrow svg{width:18px;height:18px;}
.phero-prev{left:12px;}
.phero-next{right:12px;}
.phero-dots{display:flex;justify-content:center;gap:8px;margin-top:18px;}
.pdot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,0.28);border:none;cursor:pointer;padding:0;
  transition:background .15s ease, transform .15s ease;
}
.pdot.active{background:var(--cyan);transform:scale(1.2);}

.phero-body{max-width:560px;}
.phero-title{font-size:44px;line-height:1.1;margin-bottom:18px;}
.phero-lead{font-size:16.5px;color:var(--muted);margin:0 0 28px;}
.phero-ctas{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-bottom:18px;}
.phero-meta{font-size:13.5px;color:var(--muted-2);margin-bottom:22px;}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;}
.chip{
  font-size:12.5px;color:var(--muted);
  border:1px solid var(--panel-border-2);
  padding:6px 12px;border-radius:8px;
  background:var(--panel);
}
.pill{
  font-size:11.5px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;
  padding:5px 11px;border-radius:999px;display:inline-block;margin-bottom:16px;
}
.pill-live{background:rgba(56,189,248,0.12);color:#0369a1;border:1px solid rgba(56,189,248,0.35);}
.pill-soon{background:rgba(168,85,247,0.12);color:#7e22ce;border:1px solid rgba(168,85,247,0.35);}
.site-note{font-size:12.5px;color:var(--muted-2);}

/* ---------- ABOUT ---------- */
.about-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:56px;align-items:start;}
.about-copy p{color:var(--muted);font-size:15.5px;margin:0 0 16px;}
.about-copy strong{color:var(--text);}
.about-visual{display:flex;flex-direction:column;gap:20px;}
.about-image{
  border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--panel-border-2);
  box-shadow:0 20px 44px -18px rgba(15,23,42,0.3);
  position:relative;
  aspect-ratio:16/10;
}
.about-image img{width:100%;height:100%;object-fit:cover;}
.stat-card{
  background:var(--panel);border:1px solid var(--panel-border);
  border-radius:var(--radius);padding:22px;
  display:flex;flex-direction:column;gap:4px;
  box-shadow:0 10px 22px -16px rgba(15,23,42,0.25);
}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.stat-num{
  font-size:26px;font-weight:750;
  background:var(--grad-text);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.stat-label{font-size:12.5px;color:var(--muted-2);}
.stat-note{font-size:11.5px;color:var(--muted-2);opacity:0.9;margin-top:8px;line-height:1.45;}

/* ---------- FEATURE GRID (product page) ---------- */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.feature-card{
  background:var(--panel);border:1px solid var(--panel-border);
  border-radius:var(--radius);padding:26px;
  box-shadow:0 10px 22px -16px rgba(15,23,42,0.2);
}
.feature-icon{
  width:40px;height:40px;border-radius:10px;
  background:var(--grad-soft);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
  border:1px solid var(--panel-border);
}
.feature-icon svg{width:20px;height:20px;color:var(--accent);}
.feature-card h4{margin:0 0 8px;font-size:16px;color:var(--text);font-weight:650;}
.feature-card p{margin:0;color:var(--muted-2);font-size:13.5px;}

/* ---------- FEATURE SPOTLIGHT (product page — Global TV / Subtitles) ---------- */
.spotlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;}
.spotlight-grid.reverse .spotlight-media{order:2;}
.spotlight-media{
  border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--panel-border-2);
  box-shadow:0 20px 44px -18px rgba(15,23,42,0.3);
}
.spotlight-media img{width:100%;height:auto;display:block;}
.spotlight-body{max-width:480px;}
.spotlight-body h3{font-size:24px;margin-bottom:14px;}
.spotlight-body > p{color:var(--muted);font-size:15.5px;margin:0 0 18px;}
.spotlight-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:13px;}
.spotlight-list li{display:flex;gap:10px;font-size:14.5px;color:var(--muted);line-height:1.5;}
.spotlight-list li svg{flex:none;width:17px;height:17px;color:var(--accent);margin-top:3px;}
.spotlight-list li strong{color:var(--text);}

/* ---------- MORE-UNDER-THE-HOOD LIST (product page) ---------- */
.more-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px 32px;}
.more-grid li{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted);line-height:1.5;}
.more-grid li svg{flex:none;width:16px;height:16px;color:var(--accent);margin-top:3px;}
.more-grid li strong{color:var(--text);}

/* ---------- KEYBOARD SHORTCUTS TABLE ---------- */
.kbd-wrap{overflow-x:auto;border-radius:var(--radius);}
table.kbd-table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);overflow:hidden;min-width:420px;}
.kbd-table th, .kbd-table td{padding:13px 20px;text-align:left;font-size:14px;border-bottom:1px solid var(--panel-border);}
.kbd-table th{color:var(--muted-2);font-size:11.5px;text-transform:uppercase;letter-spacing:0.07em;font-weight:700;background:var(--bg-alt2);}
.kbd-table td:first-child{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--text);font-weight:600;white-space:nowrap;}
.kbd-table td:last-child{color:var(--muted);}
.kbd-table tr:last-child td{border-bottom:none;}

/* ---------- DOWNLOAD CARD (product page) ---------- */
.download-card{
  border-radius:24px;
  background:linear-gradient(135deg, rgba(56,189,248,0.10), rgba(168,85,247,0.10));
  border:1px solid var(--panel-border-2);
  padding:48px;
  text-align:center;
}
.download-card h2{margin-bottom:10px;}
.download-card p{color:var(--muted);max-width:520px;margin:0 auto 26px;font-size:15px;}
.download-platform{font-size:13px;color:var(--muted-2);margin-top:16px;}

/* ---------- COMING SOON GRID ---------- */
.soon-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
.soon-card{
  border:1px dashed var(--panel-border-2);
  border-radius:var(--radius);
  padding:32px;
  background:var(--panel);
  min-height:190px;
  display:flex;flex-direction:column;justify-content:space-between;
}
.soon-icon{
  width:42px;height:42px;border-radius:11px;
  background:var(--grad-soft);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
  border:1px solid var(--panel-border);
}
.soon-icon svg{width:20px;height:20px;color:var(--accent);}
.soon-card h4{margin:0 0 8px;font-size:16.5px;color:var(--text);font-weight:650;}
.soon-card p{margin:0;color:var(--muted-2);font-size:13.5px;}
.soon-tag{
  align-self:flex-start;margin-top:18px;
  font-size:11px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--muted-2);
  border:1px solid var(--panel-border);
  padding:4px 10px;border-radius:999px;
}

/* ---------- SUPPORT / KOFI BAND ---------- */
.support-band{
  border-radius:24px;
  background:linear-gradient(135deg, rgba(56,189,248,0.12), rgba(168,85,247,0.12));
  border:1px solid var(--panel-border-2);
  padding:56px;
  text-align:center;
}
.support-band h2{margin-bottom:12px;}
.support-band p{color:var(--muted);max-width:560px;margin:0 auto 30px;font-size:15.5px;}

/* ---------- FOOTER ---------- */
footer{
  border-top:1px solid var(--panel-border);
  padding:48px 0 32px;
  background:var(--bg-alt2);
}
.footer-grid{
  display:flex;justify-content:space-between;align-items:flex-start;
  flex-wrap:wrap;gap:32px;margin-bottom:32px;
}
.footer-brand img{height:40px;margin-bottom:12px;}
.footer-brand p{color:var(--muted-2);font-size:13.5px;max-width:280px;margin:0;}
.footer-links{display:flex;gap:56px;flex-wrap:wrap;}
.footer-col h5{
  font-size:12px;text-transform:uppercase;letter-spacing:0.08em;color:var(--muted-2);
  margin:0 0 14px;font-weight:700;
}
.footer-col a{display:block;font-size:14px;color:var(--muted);margin-bottom:10px;}
.footer-col a:hover{color:var(--text);}
.footer-bottom{
  padding-top:24px;border-top:1px solid var(--panel-border);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:12.5px;color:var(--muted-2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px){
  .about-grid{grid-template-columns:1fr;}
  .phero-grid{grid-template-columns:1fr;gap:36px;}
  .phero-body{max-width:none;}
  .soon-grid{grid-template-columns:1fr;}
  .feature-grid{grid-template-columns:1fr 1fr;}
  .phero-title{font-size:34px;}
  .section-pad{padding:60px 0;}
  .support-band, .download-card{padding:40px 26px;}
  .masthead img{height:78px;}
  .phero-logo{width:240px;}
  .spotlight-grid{grid-template-columns:1fr;gap:28px;}
  .spotlight-grid.reverse .spotlight-media{order:0;}
  .spotlight-body{max-width:none;}
  .more-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 700px){
  nav.links{
    position:fixed;top:63px;left:0;right:0;
    height:calc(100vh - 63px);
    background:rgba(255,255,255,0.98);
    flex-direction:column;align-items:flex-start;
    padding:28px 24px;gap:22px;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform .22s ease;
    z-index:40;
    border-top:1px solid var(--panel-border);
  }
  nav.links.open{transform:translateX(0);}
  nav.links a.nav-link{font-size:16px;}
  .menu-toggle{display:inline-flex;}
  .brand img{height:42px;}
  .masthead{padding:30px 0 6px;}
  .masthead img{height:60px;}
  .phero-title{font-size:29px;}
  .phero-lead{font-size:15.5px;}
  .stat-grid{grid-template-columns:1fr 1fr;}
  .phero-media{padding:18px;}
  .feature-grid{grid-template-columns:1fr;}
  .phero-logo{width:210px;}
  .more-grid{grid-template-columns:1fr;}
}
