/* RNX IPTV website — same palette as the Android app */
:root {
  --bg: #080b14;
  --bg-2: #0c1120;
  --surface: #13192b;
  --surface-2: #1b233c;
  --border: #263254;
  --border-light: #384672;
  --text: #ffffff;
  --text-2: #a3aec6;
  --muted: #6b7794;
  --blue: #3a86ff;
  --purple: #8338ec;
  --cyan: #00f0ff;
  --magenta: #ff007f;
  --red: #e63946;
  --green: #00f5d4;
  --gold: #ffbe0b;
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple) 55%, var(--magenta));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
.accent { color: var(--cyan); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.25em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  color: var(--text); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); box-shadow: 0 8px 24px rgba(58, 134, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(58, 134, 255, 0.5); }
.btn-gradient { background: var(--gradient); box-shadow: 0 10px 30px rgba(131, 56, 236, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-light); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-danger { background: transparent; border-color: rgba(230, 57, 70, 0.6); color: #ff8a93; }
.btn-danger:hover { background: rgba(230, 57, 70, 0.12); }
.btn-lg { padding: 0.95em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 50, 84, 0.6);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: rgba(8, 11, 20, 0.97);
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 4px; }
  .nav-links .btn { margin-top: 6px; }
}

/* Alerts */
.flashes { padding-top: 18px; display: grid; gap: 10px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 0.95rem; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { border-color: rgba(0, 245, 212, 0.45); background: rgba(0, 245, 212, 0.08); }
.alert-error { border-color: rgba(230, 57, 70, 0.55); background: rgba(230, 57, 70, 0.1); }
.alert-info { border-color: rgba(58, 134, 255, 0.5); background: rgba(58, 134, 255, 0.1); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: var(--purple); top: -160px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: #006a8f; bottom: -220px; left: -160px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan); font-size: 0.85rem; font-weight: 700;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; margin: 20px 0 18px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero-meta { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

/* Phone mockup (pure CSS, no third-party artwork) */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 290px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a3350, #0d1222); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(-4deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg);
  padding: 34px 14px 0; display: flex; flex-direction: column; gap: 12px;
}
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 80px; height: 18px; margin-left: -40px; border-radius: 12px; background: #000; }
.mock-top { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 0.95rem; }
.mock-top .logo { width: 22px; height: 22px; }
.mock-hero {
  height: 150px; border-radius: 16px; position: relative; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(circle at 75% 25%, rgba(255, 0, 127, 0.7), transparent 45%), radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.55), transparent 50%), linear-gradient(135deg, #2b1a5c, #0b3a5b);
}
.mock-eyebrow { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; color: var(--cyan); }
.mock-line { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.85); width: 70%; margin-top: 5px; }
.mock-line.short { width: 45%; background: rgba(255, 255, 255, 0.45); height: 7px; }
.mock-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); margin-top: 8px; overflow: hidden; }
.mock-progress span { display: block; width: 62%; height: 100%; background: var(--magenta); }
.mock-row-title { font-size: 0.7rem; font-weight: 800; color: var(--text-2); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-card { aspect-ratio: 0.68; border-radius: 10px; position: relative; overflow: hidden; }
.mock-card.c1 { background: linear-gradient(160deg, #3a86ff, #1b233c); }
.mock-card.c2 { background: linear-gradient(160deg, #8338ec, #1b233c); }
.mock-card.c3 { background: linear-gradient(160deg, #ff007f, #1b233c); }
.mock-card.c4 { background: linear-gradient(160deg, #00b4c4, #13192b); }
.mock-card.c5 { background: linear-gradient(160deg, #ffbe0b, #3a2a13); }
.mock-card.c6 { background: linear-gradient(160deg, #00f5d4, #13303b); }
.mock-live { position: absolute; top: 6px; left: 6px; font-size: 0.5rem; font-weight: 900; background: var(--red); padding: 1px 4px; border-radius: 3px; }
.mock-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 0 16px; border-top: 1px solid var(--border); }
.mock-nav span { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-2); }
.mock-nav span.active { background: var(--blue); }
.floating-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(19, 25, 43, 0.92); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 700;
}
.floating-chip .icon { color: var(--cyan); }
.chip-a { top: 14%; left: -6%; }
.chip-b { bottom: 16%; right: -4%; }
.chip-b .icon { color: var(--magenta); }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(38, 50, 84, 0.5); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; }
.section-subtitle { color: var(--text-2); font-size: 1.1rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(27, 35, 60, 0.7), rgba(19, 25, 43, 0.7));
  border: 1px solid var(--border); transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.feature-card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.feature-card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(58, 134, 255, 0.12); color: var(--cyan); border: 1px solid rgba(58, 134, 255, 0.35);
}
.feature-icon .icon { width: 24px; height: 24px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step-number {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900;
  background: var(--gradient); margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-2); margin: 0; }

.legal-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(131, 56, 236, 0.25), transparent 55%), var(--surface);
  border: 1px solid var(--border);
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list .icon { color: var(--green); margin-top: 3px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

.cta {
  text-align: center; padding: 56px 28px; border-radius: 28px; border: 1px solid var(--border-light);
  background: radial-gradient(circle at 20% 0%, rgba(0, 240, 255, 0.22), transparent 50%), radial-gradient(circle at 80% 100%, rgba(255, 0, 127, 0.22), transparent 50%), var(--surface);
}
.cta .hero-actions { justify-content: center; }

/* Forms & auth */
.auth-wrap { padding-block: 64px 96px; display: flex; justify-content: center; }
.auth-card {
  width: 100%; max-width: 460px; padding: 34px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .logo { width: 52px; height: 52px; margin-bottom: 10px; }
.auth-head h1 { font-size: 1.8rem; }
.auth-head p { color: var(--text-2); margin: 0; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.25); }
.hint { color: var(--muted); font-size: 0.82rem; }
.password-field { position: relative; }
.password-field .input { padding-right: 84px; }
.toggle-password {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--surface-2); color: var(--text-2);
  border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form-footer { text-align: center; color: var(--text-2); font-size: 0.92rem; margin-top: 18px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Content pages */
.page-head { padding-block: 64px 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.page-head p { color: var(--text-2); font-size: 1.1rem; max-width: 46em; }
.page-body { padding-bottom: 96px; }
.account-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.card h2 .icon { color: var(--cyan); }
.card p { color: var(--text-2); }
.card-danger { border-color: rgba(230, 57, 70, 0.45); }
.card-danger h2 .icon { color: #ff8a93; }
.muted { color: var(--muted); }
.checksum { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; word-break: break-all; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.numbered { margin: 0; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 8px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.prose { max-width: 820px; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.notfound { text-align: center; padding-block: 120px; }
.notfound .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; line-height: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 28em; }
.footer-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-block: 24px; border-top: 1px solid rgba(38, 50, 84, 0.6); color: var(--muted); font-size: 0.85rem; }
.footer-bottom p { margin: 0 0 6px; }

/* Reveal animation (only when JS is available) */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .legal-box, .account-grid, .support-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-wrap { margin-top: 12px; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .features-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .legal-box, .cta, .auth-card { padding: 26px 20px; }
  .hero-actions .btn { width: 100%; }
  .floating-chip { display: none; }
  .phone { transform: none; }
}
