/* ============================================================
   Rubin IPTV Player — rubinplayer.com
   Design: dark #0A0A0A · accent #E50914 · Inter font
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0A0A;
  --surface:   #141414;
  --surface2:  #1C1C1C;
  --border:    #2A2A2A;
  --red:       #E50914;
  --red-dark:  #B5070F;
  --white:     #FFFFFF;
  --gray:      #AAAAAA;
  --gray-dim:  #555555;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--gray); }

.accent { color: var(--red); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-sub   { font-size: 1.1rem; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--white); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-logo svg { flex-shrink: 0; }
.nav-logo img, .footer-logo img { flex-shrink: 0; border-radius: 8px; }

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

.nav-links a {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { margin-left: 16px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 200px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(229,9,20,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--gray);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}


.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.stat-pill {
  font-size: 0.82rem;
  color: var(--gray);
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.stat-pill:last-child { border-right: none; }
.stat-pill strong { color: var(--white); }

/* ---------- Zigzag showcase ---------- */
.zz-section { padding: 64px 0 32px; }

.zz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.zz-row:last-child { border-bottom: none; }

/* Color glow — sits behind content */
.zz-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.zz-row--reverse::before {
  left: 65%;
}
.zz-row > * { position: relative; z-index: 1; }

.zz-glow--blue::before   { background: radial-gradient(ellipse, rgba(59,130,246,0.13) 0%, transparent 65%); }
.zz-glow--green::before  { background: radial-gradient(ellipse, rgba(34,197,94,0.11) 0%, transparent 65%); }
.zz-glow--violet::before { background: radial-gradient(ellipse, rgba(139,92,246,0.14) 0%, transparent 65%); }
.zz-glow--red::before    { background: radial-gradient(ellipse, rgba(229,9,20,0.13) 0%, transparent 65%); }
.zz-glow--orange::before { background: radial-gradient(ellipse, rgba(249,115,22,0.13) 0%, transparent 65%); }

.zz-row--reverse .zz-image { order: 2; }
.zz-row--reverse .zz-text  { order: 1; }

.zz-image {
  display: flex;
  justify-content: center;
}
.zz-image .phone-frame {
  width: 280px;
  margin-bottom: 0;
}

.zz-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.zz-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  max-width: 440px;
  margin-bottom: 0;
}

.zz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.zz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
}

.zz-section--below { padding-top: 0; }

.zz-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 440px;
}

@media (max-width: 768px) {
  .zz-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0;
    text-align: center;
  }
  .zz-row--reverse .zz-image { order: 1; }
  .zz-row--reverse .zz-text  { order: 2; }
  .zz-image .phone-frame { width: 220px; }
  .zz-text p { margin: 0 auto; }
  .zz-badges { justify-content: center; }
}

/* ---- Modern phone frame (thin bezel, Pixel/iPhone style) ---- */
.phone-frame {
  position: relative;
  background: #0E0E0E;
  border-radius: 46px;
  padding: 11px 6px 15px;
  /* Titanium-style rim: thin light edge on top, darker on bottom */
  border: 1.5px solid rgba(255,255,255,0.13);
  box-shadow:
    /* inner rim shadow */
    inset 0 0 0 1px rgba(0,0,0,0.9),
    /* subtle side sheen */
    1px 0 0 rgba(255,255,255,0.04),
    -1px 0 0 rgba(255,255,255,0.04),
    /* depth shadows */
    0 4px 12px rgba(0,0,0,0.5),
    0 20px 52px rgba(0,0,0,0.75),
    0 48px 96px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

/* Dynamic Island pill */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 11px;
  background: #000;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* Home indicator */
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 3px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
}

.phone-frame img {
  border-radius: 34px;
  width: 100%;
  display: block;
}


/* ---------- Features ---------- */
.features { background: var(--bg); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-sub { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(229,9,20,0.4);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--white);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--gray-dim);
  line-height: 1.5;
}


/* ---------- Pricing ---------- */
.pricing { background: var(--bg); }
.pricing-header { text-align: center; margin-bottom: 64px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.premium {
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(229,9,20,0.06) 0%, var(--surface) 60%);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray);
  align-self: flex-start;
  margin-top: 6px;
}
.price-period {
  font-size: 0.85rem;
  color: var(--gray);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-dim);
  margin-bottom: 28px;
  min-height: 40px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
}
.pricing-features li .check {
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features li .check-red { color: var(--red); }

.pricing-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-header { text-align: center; margin-bottom: 56px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gray); }

.faq-icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gray-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1;
}

.faq-item.open .faq-icon {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, #1A0000 0%, #0A0A0A 50%, #1A0000 100%);
  border-top: 1px solid rgba(229,9,20,0.2);
  border-bottom: 1px solid rgba(229,9,20,0.2);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 12px; }
.cta-band p  { margin-bottom: 36px; font-size: 1.05rem; }
.cta-band .hero-actions { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--gray-dim);
  text-align: right;
}

/* ---------- Inner pages (privacy, support) ---------- */
.inner-page { padding: 120px 0 80px; }
.inner-page h1 { margin-bottom: 12px; }
.inner-page .page-meta { color: var(--gray-dim); font-size: 0.85rem; margin-bottom: 48px; }

.prose h2 { font-size: 1.4rem; margin-top: 48px; margin-bottom: 12px; color: var(--white); }
.prose h3 { font-size: 1.05rem; margin-top: 28px; margin-bottom: 8px; color: var(--white); }
.prose p  { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.75; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose ul li { font-size: 0.95rem; color: var(--gray); margin-bottom: 6px; line-height: 1.6; }
.prose a  { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
  .footer-copy   { text-align: left; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .stat-pill { padding: 6px 12px; font-size: 0.78rem; }
}
