/* GH05T IPTV — black industrial surfaces, red neon, metallic type, glass. Page accents follow the app:
   Prayer violet, Quran emerald, Matches stadium green. */
:root {
  --bg: #050507;
  --ink: #f4f4f5;
  --mut: #9a9aa6;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(18, 18, 24, 0.55);
  --red: #ef233c;
  --red-hot: #ff4d5e;
  --red-deep: #8f0c1d;
  --green: #22c55e;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --r: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, "Segoe UI", sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
#nebula { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glow-cursor { position: fixed; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(239, 35, 60, 0.13), transparent 62%); transition: transform 0.18s linear; left: 0; top: 0; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); box-shadow: 0 0 12px var(--red); }
main, .foot { position: relative; z-index: 1; }

/* type */
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.94; font-weight: 700; background: linear-gradient(180deg, #ffffff 10%, #a6a6b2 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; }
.red { background: linear-gradient(180deg, var(--red-hot), var(--red-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(239, 35, 60, 0.45)); }
.green { background: linear-gradient(180deg, #4ade80, #15803d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metal { background: linear-gradient(180deg, #fafafa, #71717a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #fda4af; font-weight: 700; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: #c9c9d1; max-width: 640px; }
.lead b { color: #fff; }
.sub { color: var(--mut); font-size: 18px; line-height: 1.6; max-width: 720px; margin: 18px auto 0; }
.ar { font-family: Amiri, serif; font-size: clamp(26px, 3vw, 40px); color: #fda4af; margin: 14px 0 10px; text-shadow: 0 0 22px rgba(239, 35, 60, 0.4); }
.fine { font-size: 13px; color: #7c7c88; }
.center { text-align: center; }
.muted { color: var(--mut); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 700; border: 1px solid var(--line); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; will-change: transform; }
.btn.big { padding: 17px 28px; font-size: 17px; border-radius: 16px; }
.btn.hot { background: linear-gradient(135deg, var(--red-hot), var(--red) 45%, var(--red-deep)); border-color: transparent; color: #fff; box-shadow: 0 10px 40px -10px rgba(239, 35, 60, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn.hot:hover { box-shadow: 0 16px 60px -10px rgba(239, 35, 60, 1), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.glass { background: var(--glass); backdrop-filter: blur(14px); }
.btn.glass:hover { border-color: rgba(239, 35, 60, 0.5); }

/* nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1240px, calc(100% - 28px)); display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 16px; border-radius: 20px; background: rgba(10, 10, 14, 0.62); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; box-shadow: 0 0 18px rgba(239, 35, 60, 0.5); }
.brand b { font-family: "Space Grotesk"; font-size: 20px; letter-spacing: 0.04em; background: linear-gradient(180deg, #fff, #8b8b95); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand em { font-style: normal; font-weight: 800; margin-left: 4px; color: var(--red-hot); text-shadow: 0 0 14px rgba(239, 35, 60, 0.7); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 9px 13px; border-radius: 11px; color: #cfcfd6; font-weight: 600; font-size: 14px; transition: background 0.2s, color 0.2s; }
.links a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.menu { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; position: relative; }
.menu i { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform 0.25s; }
.menu i:first-child { top: 15px; } .menu i:last-child { top: 24px; }

/* hero */
section { padding: 130px max(24px, calc((100% - 1240px) / 2)); }
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 40px; padding-top: 150px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 18px; }
.hero-stage { position: relative; height: min(56vw, 620px); perspective: 1600px; }
.tv { position: absolute; inset: 6% 0 auto 0; transform: rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.tv-frame { border-radius: 18px; padding: 10px; background: linear-gradient(160deg, #2a2a33, #0c0c10 40%, #1b1b22); box-shadow: 0 60px 120px -40px rgba(239, 35, 60, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.tv-frame img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-foot { width: 32%; height: 14px; margin: 0 auto; border-radius: 0 0 12px 12px; background: linear-gradient(#1a1a20, #08080b); }
.phone { position: absolute; width: 27%; right: -3%; bottom: -2%; transform: rotateY(-22deg) rotateZ(4deg); }
.phone-frame { padding: 8px; border-radius: 34px; background: linear-gradient(160deg, #3a3a44, #0b0b0e 45%, #22222a); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(239, 35, 60, 0.35); }
.phone-frame img { border-radius: 27px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.chip { position: absolute; padding: 12px 16px; border-radius: 16px; background: rgba(12, 12, 16, 0.7); border: 1px solid rgba(239, 35, 60, 0.35); backdrop-filter: blur(14px); box-shadow: 0 0 30px rgba(239, 35, 60, 0.25); display: grid; animation: float 7s ease-in-out infinite; }
.chip b { font-family: "Space Grotesk"; font-size: 22px; } .chip small { color: var(--mut); font-size: 12px; }
.chip.c1 { top: -2%; left: 4%; animation-delay: -1s; } .chip.c2 { bottom: 10%; left: -6%; animation-delay: -3s; } .chip.c2 b { color: #c4b5fd; } .chip.c3 { top: 30%; right: -4%; animation-delay: -5s; } .chip.c3 b { color: #4ade80; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(239, 35, 60, 0.08), rgba(0, 0, 0, 0), rgba(239, 35, 60, 0.08)); padding: 18px 0; position: relative; z-index: 1; }
.track { display: flex; gap: 46px; width: max-content; animation: slide 46s linear infinite; }
.track span { font-family: "Space Grotesk"; font-size: 22px; font-weight: 700; color: #d4d4d8; white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.track span::after { content: "✦"; color: var(--red); font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* heads */
.head { text-align: center; margin-bottom: 54px; }

/* screens */
.switch { position: relative; display: flex; width: max-content; margin: 0 auto 40px; padding: 6px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.switch button { position: relative; z-index: 1; border: 0; background: none; color: #d4d4d8; font: 700 15px Inter; padding: 11px 26px; border-radius: 12px; cursor: pointer; transition: color 0.3s; }
.switch button.on { color: #fff; }
.switch .pill { position: absolute; top: 6px; bottom: 6px; border-radius: 12px; background: linear-gradient(135deg, var(--red-hot), var(--red) 45%, var(--red-deep)); box-shadow: 0 0 24px rgba(239, 35, 60, 0.55); transition: left 0.4s var(--ease), width 0.4s var(--ease); }
.showcase { position: relative; height: min(60vw, 700px); perspective: 1800px; }
.shot { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; transform: translateY(40px) scale(0.96) rotateX(8deg); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.shot.on { opacity: 1; transform: none; pointer-events: auto; }
.shot img { border-radius: 18px; box-shadow: 0 50px 120px -40px rgba(239, 35, 60, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.shot.tv img, .shot.pc img { width: min(100%, 1120px); }
.shot.phone { flex-direction: row; }
.shot.phone img { width: min(28vw, 300px); border-radius: 36px; border: 8px solid #17171c; }
.shot.phone img + img { transform: translateY(40px); }
.shot figcaption { position: absolute; bottom: -6px; left: 0; right: 0; text-align: center; color: var(--mut); font-weight: 600; letter-spacing: 0.04em; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.card { position: relative; padding: 28px; border-radius: var(--r); background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(12, 12, 16, 0.7); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; backdrop-filter: blur(10px); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--c), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.85; }
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--c); filter: blur(70px); opacity: 0.22; }
.card:hover { transform: translateY(-6px); }
.card.big { grid-column: span 2; grid-row: span 2; }
.card.wide { grid-column: span 2; }
.card .ico { font-size: 34px; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); margin-bottom: 18px; color: var(--c); }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card.big h3 { font-size: 34px; }
.card p { color: #b5b5bf; line-height: 1.6; margin: 0; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fecdd3; background: rgba(239, 35, 60, 0.14); border: 1px solid rgba(239, 35, 60, 0.35); }

/* gallery */
.rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(78vw, 900px); margin: 0; scroll-snap-align: center; position: relative; border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 40px 100px -40px var(--c); }
.slide img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.slide:hover img { transform: scale(1.04); }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; padding: 60px 26px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.88)); }
.slide figcaption b { font-family: "Space Grotesk"; font-size: 30px; }
.slide figcaption span { font-family: Amiri, serif; font-size: 28px; color: var(--c); }

/* connect */
.pair { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; gap: 20px; max-width: 1040px; margin: 0 auto 46px; }
.pair-tv, .pair-phone { padding: 30px; border-radius: 26px; background: rgba(12, 12, 16, 0.75); border: 1px solid var(--line); min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.pair-tv { aspect-ratio: 16 / 10; }
.pair-tv small, .pair-phone small { position: absolute; top: 16px; left: 20px; color: var(--mut); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.pair-code { font-family: "Space Grotesk"; font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: 6px; text-shadow: 0 0 26px rgba(239, 35, 60, 0.8); }
.pair-input { min-width: 70%; padding: 14px; border-radius: 14px; border: 1px solid rgba(239, 35, 60, 0.45); text-align: center; font-family: "Space Grotesk"; font-size: 26px; letter-spacing: 5px; min-height: 60px; }
.pair-sas { font-family: "Space Grotesk"; font-size: 34px; color: var(--red-hot); letter-spacing: 5px; min-height: 42px; opacity: 0; transition: opacity 0.5s; }
.pair-sas.on { opacity: 1; }
.pair-ok { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(34, 197, 94, 0.3), rgba(5, 5, 7, 0.92) 70%); font-size: 30px; font-weight: 800; color: #4ade80; opacity: 0; transition: opacity 0.5s; }
.pair-ok.on { opacity: 1; }
.beam { display: flex; justify-content: space-between; }
.beam i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: beam 1.6s infinite; }
.beam i:nth-child(2) { animation-delay: 0.25s; } .beam i:nth-child(3) { animation-delay: 0.5s; }
@keyframes beam { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.2); } }
.points { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.points li { padding: 22px; border-radius: 18px; background: rgba(12, 12, 16, 0.6); border: 1px solid var(--line); display: grid; gap: 6px; }
.points b { font-size: 17px; } .points span { color: var(--mut); line-height: 1.5; }

/* devices */
.matrix { max-width: 1040px; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: rgba(10, 10, 14, 0.7); backdrop-filter: blur(10px); }
.matrix .row { display: grid; grid-template-columns: 1.1fr 0.7fr 2fr; gap: 18px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.matrix .row:last-child { border-bottom: 0; }
.matrix .row span { justify-self: start; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.matrix .row small { color: var(--mut); line-height: 1.5; font-size: 14px; }
.row.ok span { color: #4ade80; background: rgba(34, 197, 94, 0.13); border: 1px solid rgba(34, 197, 94, 0.35); }
.row.dev span { color: #fbbf24; background: rgba(245, 158, 11, 0.13); border: 1px solid rgba(245, 158, 11, 0.35); }
.row.soon span { color: #93c5fd; background: rgba(59, 130, 246, 0.13); border: 1px solid rgba(59, 130, 246, 0.35); }
.row.no span { color: #a1a1aa; background: rgba(161, 161, 170, 0.1); border: 1px solid rgba(161, 161, 170, 0.3); }

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto 50px; }
.dl { padding: 24px; border-radius: 22px; background: rgba(12, 12, 16, 0.78); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform 0.35s var(--ease), border-color 0.35s; }
.dl:hover { transform: translateY(-4px); border-color: rgba(239, 35, 60, 0.5); }
.dl h3 { font-size: 21px; } .dl .meta { color: var(--mut); font-size: 13px; line-height: 1.6; word-break: break-all; }
.dl .badge { align-self: flex-start; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.tested { color: #4ade80; background: rgba(34, 197, 94, 0.13); } .badge.untested { color: #fbbf24; background: rgba(245, 158, 11, 0.13); }
.dl .btn { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1040px; margin: 0 auto; }
.steps div { padding: 26px; border-radius: 20px; background: rgba(12, 12, 16, 0.6); border: 1px solid var(--line); display: grid; gap: 8px; }
.steps i { font-style: normal; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: "Space Grotesk"; font-weight: 700; background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); box-shadow: 0 0 20px rgba(239, 35, 60, 0.5); }
.steps span { color: var(--mut); line-height: 1.55; }

/* faq */
.faq { max-width: 880px; margin: 0 auto; padding-inline: 24px; }
details { border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 12, 16, 0.6); margin-bottom: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--red-hot); font-size: 24px; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 24px 22px; color: #b5b5bf; line-height: 1.7; }

/* footer */
.foot { padding: 60px max(24px, calc((100% - 1240px) / 2)) 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; align-items: end; flex-wrap: wrap; }
.foot b { font-family: "Space Grotesk"; font-size: 26px; } .foot em { font-style: normal; color: var(--red-hot); font-weight: 800; margin-left: 6px; } .foot p { margin: 6px 0 0; color: var(--mut); }
.foot .fine { max-width: 620px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
  .hero .lead, .hero .cta { margin-inline: auto; justify-content: center; }
  .hero-stage { height: 76vw; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pair { grid-template-columns: 1fr; } .beam { flex-direction: column; align-items: center; gap: 12px; }
  .points, .steps { grid-template-columns: 1fr; }
  .matrix .row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 780px) {
  .links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 12px; border-radius: 18px; background: rgba(10, 10, 14, 0.95); border: 1px solid var(--line); }
  .links.open { display: flex; }
  .nav .btn.hot { display: none; }
  .menu { display: block; margin-left: auto; }
  section { padding-block: 90px; }
  .bento { grid-template-columns: 1fr; } .card.big, .card.wide { grid-column: auto; grid-row: auto; }
  .showcase { height: 120vw; } .shot.phone img { width: 42vw; }
  .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
