/* ============================================
   BritishIPTV – Hero Section
============================================ */

/* ---- Layout ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #05071a;
}

/* ---- Background layers ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Rich layered gradient */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 65% 40%, rgba(15,60,180,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 15% 70%, rgba(100,10,30,0.3)  0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(10,30,120,0.25) 0%, transparent 55%),
    linear-gradient(160deg, #080c22 0%, #0b1640 45%, #06091c 100%);
}

/* Dot-grid texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

/* Floating colour orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(29,78,216,0.28);
  top: -15%; right: 20%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 320px; height: 320px;
  background: rgba(185,10,35,0.18);
  bottom: 0; right: 2%;
  animation-delay: -3.5s;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: rgba(37,99,235,0.22);
  bottom: 15%; left: 2%;
  animation-delay: -6s;
}
.hero-orb-4 {
  width: 200px; height: 200px;
  background: rgba(79,70,229,0.18);
  top: 10%; left: 30%;
  animation-delay: -2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0)    scale(1);    }
  50%       { transform: translateY(-28px) scale(1.06); }
}

/* ---- Inner container ---- */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 90px 30px 40px;   /* top pad = header height (74px) + breathing room */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* ============================================
   LEFT – Content
============================================ */
.hero-content { display: flex; flex-direction: column; gap: 0; }

/* UK badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 6px 16px 6px 8px;
  width: fit-content;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.12); }
}
.hero-badge span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}
.hero-badge .flag { font-size: 16px; }

/* H1 */
.hero-h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.hero-h1 .highlight {
  color: #CF142B;
  position: relative;
}
.hero-h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #CF142B, transparent);
  border-radius: 2px;
}
.hero-h1 .accent { color: #5b9fff; }

/* Description */
.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-desc strong { color: rgba(255,255,255,0.9); }

/* CTA buttons */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #CF142B 0%, #a00f22 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(207,20,43,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(207,20,43,0.55);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 42px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.hero-stat-num span { color: #CF142B; }
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* ---- Trust badges ---- */
.hero-trust { display: flex; flex-direction: column; gap: 12px; }
.hero-trust-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.hero-trust-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Trustpilot badge */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
.trust-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.trust-badge-logo { display: flex; flex-direction: column; gap: 2px; }
.trust-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1;
}
.trust-badge-score {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1;
}
.trust-stars {
  display: flex;
  gap: 2px;
}
.trust-stars svg { flex-shrink: 0; }

/* Trustpilot green stars */
.star-tp { fill: #00b67a; }
/* Google colored stars */
.star-google { fill: #fbbc04; }

/* ============================================
   RIGHT – Visual Mockup
============================================ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding: 40px 20px;
}

/* Floating TV */
.hero-tv-wrap {
  position: relative;
  animation: tvFloat 6s ease-in-out infinite;
}
@keyframes tvFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* TV Frame */
.hero-tv {
  width: 420px;
  max-width: 100%;
  background: linear-gradient(160deg, #1a2744, #0d1535);
  border-radius: 18px;
  padding: 12px 12px 0;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1.5px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}

/* Camera dot */
.hero-tv::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #333d5e;
  border-radius: 50%;
}

/* ---- IPTV Player UI inside screen ---- */

/* Screen: purple→red gradient matching the IPTV player UI screenshot */
.hero-screen {
  background: linear-gradient(135deg, #3a1a6e 0%, #6b2060 40%, #c0522a 100%);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Screen top – brand bar */
.screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.screen-topbar-title {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.screen-topbar-dots { display: flex; gap: 3px; align-items: center; }
.screen-topbar-dots span {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}
.screen-topbar-dots span:last-child {
  background: #4ade80;
  box-shadow: 0 0 4px #4ade80;
}

/* Main layout: left big tile + center grid + right sidebar */
.screen-main {
  display: flex;
  gap: 7px;
  flex: 1;
}

/* Big Live tile on the left */
.screen-live-tile {
  flex: 0 0 32%;
  background: rgba(160, 10, 30, 0.75);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.screen-live-tile:hover { background: rgba(180,10,30,0.9); }
.screen-live-tile svg { opacity: 0.95; }
.screen-live-label {
  font-size: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}
.live-badge {
  background: #4ade80;
  color: #000;
  font-size: 7px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* Centre 2x2 grid */
.screen-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
}
.screen-tile {
  background: rgba(120, 20, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.screen-tile:hover { background: rgba(150,20,50,0.85); }
.screen-tile svg { opacity: 0.9; }
.screen-tile-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-align: center;
}

/* Right sidebar buttons */
.screen-sidebar {
  flex: 0 0 28%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.screen-sidebar-btn {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.screen-sidebar-btn:hover { background: rgba(255,255,255,0.16); }
.screen-sidebar-btn svg { flex-shrink: 0; opacity: 0.85; }
.screen-sidebar-btn span {
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

/* Status bar */
.screen-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2px;
}
.status-live {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-count {
  font-size: 8px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

/* TV base / stand */
.hero-tv-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tv-neck {
  width: 32px; height: 14px;
  background: linear-gradient(180deg, #1a2744, #131d38);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.hero-tv-base {
  width: 120px; height: 10px;
  background: linear-gradient(180deg, #1e2e52, #131d38);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}

/* Floating badges on the visual */
.hero-float-badge {
  position: absolute;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  z-index: 10;
}
.hero-float-badge-1 {
  top: 6%;
  right: 2%;
  animation: badgeFloat1 5s ease-in-out infinite;
}
.hero-float-badge-2 {
  bottom: 14%;
  left: 2%;
  animation: badgeFloat2 6s ease-in-out infinite;
}
@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}
.float-badge-inner { display: flex; align-items: center; gap: 10px; }
.float-badge-text  { display: flex; flex-direction: column; gap: 3px; }
.float-badge-icon  { font-size: 24px; line-height: 1; flex-shrink: 0; }
.float-badge-value { font-size: 14px; font-weight: 800; color: #ffffff; line-height: 1.1; white-space: nowrap; }
.float-badge-label { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.2; font-weight: 500; white-space: nowrap; }

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0.4;
  animation: scrollFade 2.5s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.7;  transform: translateX(-50%) translateY(6px); }
}
.hero-scroll-cue span {
  font-size: 11px;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 36px; padding: 80px 24px 36px; }
  .hero-tv    { width: 340px; }
}

@media (max-width: 768px) {
  /* Strict 100vh on tablet & mobile */
  .hero {
    height: 100vh;
    height: 100dvh; /* dynamic viewport — handles mobile browser chrome */
    min-height: 0;
    overflow: hidden;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    /* fit everything inside 100vh: top pad for fixed header, small bottom pad */
    padding: 80px 20px 20px;
    gap: 20px;
    height: 100%;
    align-content: center;
    overflow: hidden;
  }
  .hero-badge       { margin: 0 auto 0; }
  .hero-desc        { margin-left: auto; margin-right: auto; }
  .hero-ctas        { justify-content: center; }
  .hero-stats       { justify-content: center; }
  .hero-trust       { align-items: center; }
  .hero-trust-row   { justify-content: center; }
  /* Hide TV visual on mobile to save space */
  .hero-visual      { display: none; }
  /* Hide Learn More button on mobile */
  .btn-secondary    { display: none; }
  .hero-h1          { font-size: clamp(26px, 7vw, 40px); margin-bottom: 12px; }
  .hero-desc        { font-size: 15px; margin-bottom: 20px; }
  .hero-stats       { margin-bottom: 20px; padding-bottom: 20px; }
  .hero-ctas        { margin-bottom: 20px; }
  .hero-float-badge { display: none; }
  .hero-scroll-cue  { bottom: 16px; }
}

@media (max-width: 480px) {
  .hero-inner       { padding: 74px 18px 16px; gap: 16px; }
  .hero-h1          { font-size: clamp(24px, 8vw, 34px); }
  .hero-desc        { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
  .hero-stats       { gap: 12px; margin-bottom: 16px; padding-bottom: 16px; }
  .hero-stat-divider{ display: none; }
  .hero-stat-num    { font-size: 20px; }
  .hero-ctas        { margin-bottom: 16px; }
  .btn-primary      { font-size: 15px; padding: 13px 26px; }
  .trust-badge      { padding: 8px 12px; }
  .trust-badge-name { font-size: 11px; }
  .trust-badge-score{ font-size: 10px; }
  .hero-trust-label { font-size: 10px; }
}
