/* Avirome.com — Design DNA from iptv-suisse.ch */
/* Visual Tone: Clean-White / Corporate with Crimson Red accent */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --bg-dark: #0B1120;
  --nav-bg: rgba(255,255,255,0.95);
  --card-bg: #f3f4f6;
  --accent: #dc143c;
  --accent-hover: #b91c1c;
  --accent-light: rgba(220,20,60,0.1);
  --accent-border: rgba(220,20,60,0.2);
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: rgba(229,231,235,0.5);
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --font: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .text-muted { color: #9ca3af; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.85rem;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); color: #fff !important; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg); padding: 2rem 1.5rem; z-index: 49;
  flex-direction: column; gap: 0.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  display: block; padding: 0.75rem 0; color: var(--text); font-size: 1rem;
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
  position: relative; overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url('../images/pattern.svg');
  background-size: 400px;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.125rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 2rem; }
.hero-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-light); color: var(--accent);
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--accent-border);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 2rem; border-radius: var(--radius-full); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; line-height: 1.4; min-height: 44px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,20,60,0.3); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: #f3f4f6; color: var(--accent-hover); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Stats Bar */
.stats-bar { background: var(--bg-dark); padding: 2.5rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-item h3 { font-size: 1.75rem; color: #fff; margin-bottom: 0.25rem; }
.stat-item p { color: #9ca3af; font-size: 0.85rem; margin: 0; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Channel Scroll */
.channel-scroll { padding: 3rem 0; overflow: hidden; background: var(--bg-alt); }
.channel-track {
  display: flex; gap: 3rem; animation: scroll 30s linear infinite;
  width: max-content;
}
.channel-track span {
  font-size: 1.125rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; padding: 0.5rem 1rem;
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Cards */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .feature-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }
.popular-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 0.25rem 1rem;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; white-space: nowrap;
}
.pricing-duration { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--text); margin: 0.5rem 0; }
.pricing-price .currency { font-size: 1.25rem; vertical-align: super; }
.pricing-price .period { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; padding: 1rem 0; text-align: left; }
.pricing-features li {
  padding: 0.4rem 0; font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.pricing-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; }
.pricing-save {
  display: inline-block; background: rgba(220,20,60,0.08); color: var(--accent);
  padding: 0.2rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial-quote { font-style: italic; color: var(--text); margin-bottom: 1rem; font-size: 0.95rem; }
.testimonial-author { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
.testimonial-stars { color: #f59e0b; margin-bottom: 0.5rem; }
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* Steps / How it Works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step-card { text-align: center; position: relative; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
  margin: 0 auto 1rem;
}
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.25rem 0; font-size: 1rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 1.25rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--text);
  background: var(--bg); transition: border-color var(--transition);
  min-height: 44px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-message { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-size: 0.9rem; }
.form-message--success { background: #d1fae5; color: #065f46; }
.form-message--error { background: #fee2e2; color: #991b1b; }
.trust-signal { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Footer */
.footer { background: linear-gradient(to bottom, var(--bg-alt), var(--bg)); border-top: 1px solid var(--border-light); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }
.footer h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-muted);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page Header (inner pages) */
.page-header {
  padding: 7rem 0 3rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1f2937 100%);
  color: #fff; text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p { color: #9ca3af; max-width: 640px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* Content Pages (legal, about, etc.) */
.content-section { padding: 3rem 0; }
.content-body { max-width: 800px; margin: 0 auto; }
.content-body h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.content-body h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.content-body p { color: var(--text-muted); margin-bottom: 1rem; }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.content-body li { margin-bottom: 0.5rem; list-style: disc; }
.content-body ol li { list-style: decimal; }
.content-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.content-body th, .content-body td {
  padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left;
  font-size: 0.9rem;
}
.content-body th { background: var(--bg-alt); font-weight: 600; }
.content-body strong { color: var(--text); }
.content-body blockquote {
  border-left: 3px solid var(--accent); padding: 1rem 1.5rem;
  margin: 1.5rem 0; background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Channel list page */
.channel-category { margin-bottom: 2rem; }
.channel-category h3 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.channel-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.channel-tag {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem; font-size: 0.8rem; color: var(--text-muted);
}

/* Checkout page */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.order-summary {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: sticky; top: 5rem;
}
@media (max-width: 768px) { .checkout-grid { grid-template-columns: 1fr; } }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: start;
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* Reseller tiers */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tier-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.tier-card h3 { color: var(--accent); }
@media (max-width: 768px) { .tier-grid { grid-template-columns: 1fr; } }

/* Setup guide */
.guide-step {
  display: flex; gap: 1.5rem; margin-bottom: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.guide-step-number {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
@media (max-width: 640px) { .guide-step { flex-direction: column; } }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
