/* ==========================================================================
   Viking IPTV — Nordic Aurora design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0A0E1A;
  --bg-elevated: #131A2B;
  --bg-elevated-2: #0F1524;
  --text-primary: #F5F7FA;
  --text-secondary: #A7B2C8;
  --text-muted: #7C87A0;
  --gold: #F0B429;
  --gold-hover: #D89A1E;
  --aurora-teal: #2DD4BF;
  --aurora-blue: #38BDF8;
  --aurora-violet: #8B5CF6;
  --success: #34D399;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --aurora-gradient: linear-gradient(120deg, #2DD4BF 0%, #38BDF8 35%, #8B5CF6 70%, #F0B429 100%);
  --font-heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition: 220ms ease;
}

/* Reset ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--aurora-blue); text-decoration: none; cursor: pointer; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; color: var(--text-primary); }

p { margin: 0 0 1rem; color: var(--text-secondary); }

button, [role="button"], .btn, a.btn { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--aurora-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

.gradient-text {
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glow blobs (hero / CTA only) -------------------------------------------- */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--aurora-gradient);
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Nav ---------------------------------------------------------------------- */
.navbar {
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.navbar .logo img { height: 30px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--text-primary); }

/* Buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: #0A0E1A;
}
.btn-gold:hover { background: var(--gold-hover); color: #0A0E1A; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(240, 180, 41, 0.25); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.05rem; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero .glow-blob.one { width: 480px; height: 480px; top: -220px; left: -120px; }
.hero .glow-blob.two { width: 420px; height: 420px; bottom: -220px; right: -100px; opacity: 0.22; }

.hero-content { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--aurora-teal);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-row span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* Sections ---------------------------------------------------------------- */
.section { padding: 4.5rem 0; position: relative; }
.section-alt { background: var(--bg-elevated-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--text-secondary); margin: 0; }

/* Stat bar ------------------------------------------------------------------ */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-item svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 0.75rem; }
.stat-item .stat-number { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--text-primary); display: block; }
.stat-item .stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Bento feature grid --------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
}

.feature-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-card .icon-wrap svg { width: 22px; height: 22px; color: var(--gold); }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.94rem; margin: 0; }

/* Checklist / why-us ---------------------------------------------------------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 880px;
  margin: 0 auto;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checklist-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist-item .check svg { width: 14px; height: 14px; color: var(--success); }
.checklist-item p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.checklist-item strong { color: var(--text-primary); }

/* Steps ------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--aurora-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #0A0E1A;
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.94rem; margin: 0; }

/* Testimonials --------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial-card .stars { display: flex; gap: 0.2rem; margin-bottom: 0.9rem; }
.testimonial-card .stars svg { width: 16px; height: 16px; color: var(--gold); }
.testimonial-card p.quote { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 1.1rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.65rem; }
.testimonial-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--aurora-gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: #0A0E1A;
}
.testimonial-card .author-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.testimonial-card .author-role { color: var(--text-muted); font-size: 0.8rem; }

/* Article / blog cards -------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: border-color var(--transition), transform var(--transition);
}

.article-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card .article-card-body { padding: 1.5rem; }
.article-card .article-date { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.article-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.article-card p { font-size: 0.92rem; margin: 0; color: var(--text-secondary); }
.article-card:hover h3 { color: var(--gold); }

/* CTA banner ------------------------------------------------------------------ */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 0;
  background: var(--bg-elevated-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner .glow-blob { width: 560px; height: 560px; top: -260px; left: 50%; transform: translateX(-50%); opacity: 0.25; }

.cta-banner .cta-content { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 0.75rem; }
.cta-banner p { color: var(--text-secondary); max-width: 520px; margin: 0 auto 2rem; }

/* Footer ---------------------------------------------------------------------- */
footer {
  background: var(--bg-elevated-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }

footer .disclaimer { max-width: 760px; margin: 0 auto 1rem; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
footer .copyright { text-align: center; }

/* ==========================================================================
   Blog / article typography
   ========================================================================== */

.blog-hero {
  position: relative;
  padding: 2.75rem 0 2.25rem;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.blog-hero h1 { position: relative; z-index: 1; font-size: clamp(1.7rem, 4vw, 2.5rem); }

.blog-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  max-width: 820px;
  margin: -2rem auto 3rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.article p { color: var(--text-secondary); }

.article h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.article h3 {
  color: var(--aurora-teal);
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.article img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

.article a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.article a:hover { text-decoration-color: var(--gold); }

.toc {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc h2 { margin-top: 0; font-size: 1.05rem; }
.toc ul { margin: 0; padding-left: 1.25rem; color: var(--text-secondary); }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--gold); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 0.5rem; color: var(--text-primary); }

.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 2.25rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h2 { color: var(--text-primary); margin-top: 0; }
.cta-box p { position: relative; z-index: 1; }

.backlink-box {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.92rem;
}

/* Blog list grid --------------------------------------------------------------- */
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   Pricing page
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition);
}

.pricing-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 16px 44px rgba(240, 180, 41, 0.2);
  transform: translateY(-8px);
}
.pricing-card.featured:hover { transform: translateY(-11px); }

.badge-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0A0E1A;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card .plan-name { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--text-primary); }

.pricing-card .savings-badge {
  display: inline-block;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-card .price .currency { font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); }
.pricing-card .price-eur { color: var(--text-secondary); font-size: 0.85rem; margin: 0.5rem 0 1.5rem; }

.pricing-card .plan-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex-grow: 1;
}
.pricing-card .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}
.pricing-card .plan-features li svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

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

/* Comparison table -------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  min-width: 560px;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table th {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
}
.comparison-table th.highlight, .comparison-table td.highlight { background: rgba(240, 180, 41, 0.07); color: var(--text-primary); }
.comparison-table td.highlight svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.comparison-table td svg { width: 16px; height: 16px; color: var(--text-muted); }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Responsive -------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 3.5rem; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article { margin: -1.5rem 1rem 2rem; padding: 1.5rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
