/* =========================================================
   BroadcastSuite — Website Stylesheet
   ========================================================= */

:root {
  --bg:           #07070e;
  --bg-card:      #0e0e1d;
  --bg-card-2:    #131326;
  --border:       rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.4);
  --accent:       #6366f1;
  --accent-light: #818cf8;
  --accent-dark:  #4f46e5;
  --cyan:         #06b6d4;
  --green:        #10b981;
  --text:         #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #475569;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:         'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Dot-grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(7, 7, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge--green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: var(--font);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.08);
}

.btn--large  { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn--small  { padding: 8px 16px;  font-size: 13px; }

.btn svg { flex-shrink: 0; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.14) 0%,
    rgba(6, 182, 212, 0.06) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero__badge { margin-bottom: 28px; }

.hero__title {
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(140deg, #ffffff 15%, #a5b4fc 45%, #818cf8 65%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.hero__description {
  font-size: 17px;
  color: var(--text-3);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13px;
}

.hero__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}

/* =========================================================
   SECTION BASE
   ========================================================= */

.section {
  padding: 96px 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__eyebrow { margin-bottom: 20px; }

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* =========================================================
   FEATURES
   ========================================================= */

.features {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.035) 40%,
    transparent 100%);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.08);
}
.feature-card:hover::after { opacity: 1; }

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-light);
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card__desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* =========================================================
   SCREENSHOTS
   ========================================================= */

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  aspect-ratio: 16 / 10;
}

.screenshot-item:hover {
  border-color: var(--border-hover);
  transform: scale(1.025);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.screenshot-item img,
.screenshot-item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-item__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(7, 7, 14, 0.92));
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  pointer-events: none;
}

.screenshot-item--featured {
  grid-column: span 2;
  aspect-ratio: 2 / 1.05;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 7, 14, 0.95);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lightbox__close {
  position: fixed;
  top: 20px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s, color 0.2s;
  z-index: 201;
}
.lightbox__close:hover { border-color: var(--border-hover); color: var(--text); }

/* =========================================================
   UPCOMING FEATURES
   ========================================================= */

.upcoming {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.025) 50%,
    transparent 100%);
}

.upcoming__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.upcoming-card {
  background: rgba(14, 14, 29, 0.55);
  border: 1px solid rgba(30, 30, 58, 0.7);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.upcoming-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.upcoming-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
}

.upcoming-card__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge--soon {
  padding: 3px 9px;
  background: transparent;
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: var(--text-3);
  font-size: 10px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.upcoming-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}

.upcoming-card__desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
}

.upcoming__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  padding-top: 4px;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */

.download {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.04) 40%,
    transparent 100%);
}

.download__card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center,
    rgba(99, 102, 241, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.download__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent-light);
  position: relative;
}

.download__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  position: relative;
}

.download__subtitle {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 36px;
  position: relative;
}

.download__btn-wrap {
  margin-bottom: 28px;
  position: relative;
}

.download__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
}

.download__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.download__meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.download__notice {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  text-align: left;
  position: relative;
}

.download__checksum {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  word-break: break-all;
  text-align: left;
  position: relative;
  line-height: 1.7;
}

.download__checksum span {
  display: block;
  color: var(--text-3);
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__info { font-size: 13px; color: var(--text-3); }

.footer__links { display: flex; gap: 20px; }

.footer__links a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  .features__grid        { grid-template-columns: repeat(2, 1fr); }
  .upcoming__grid        { grid-template-columns: repeat(2, 1fr); }
  .nav__links            { display: none; }
}

@media (max-width: 640px) {
  .features__grid        { grid-template-columns: 1fr; }
  .upcoming__grid        { grid-template-columns: 1fr; }
  .screenshots__grid     { grid-template-columns: 1fr; }
  .screenshot-item--featured { grid-column: span 1; aspect-ratio: 16 / 10; }

  .hero  { padding: 120px 0 72px; }
  .section { padding: 64px 0; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn--large { justify-content: center; }

  .download__card { padding: 36px 24px; }
  .download__meta { flex-direction: column; gap: 10px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
