/* ===== CineTivi - Design DNA from suisse-iptv.ch ===== */
/* Fonts: Playfair Display + Crimson Text (from MEMORY.md ct-* prefix) */
/* Colors cloned from inspiration: whites, blues #1C66DE, #20359A, green #61CE70 */

:root {
  --ct-bg: #ffffff;
  --ct-bg-alt: #F8F8F8;
  --ct-bg-dark: #0a0a0a;
  --ct-nav-bg: #ffffff;
  --ct-primary: #1C66DE;
  --ct-primary-dark: #20359A;
  --ct-primary-darker: #063684;
  --ct-accent: #61CE70;
  --ct-accent-hover: #23A455;
  --ct-text: #000000;
  --ct-text-light: #ffffff;
  --ct-text-muted: #535353;
  --ct-text-secondary: #7A7A7A;
  --ct-border: #e0e0e0;
  --ct-card-bg: #ffffff;
  --ct-footer-bg: #0a0a0a;
  --ct-red: #EA0707;
  --ct-radius: 8px;
  --ct-radius-lg: 12px;
  --ct-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --ct-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --ct-transition: 0.3s ease;
  --ct-max-width: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ct-text);
  background: var(--ct-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ct-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

a { color: var(--ct-primary); text-decoration: none; transition: color var(--ct-transition); }
a:hover { color: var(--ct-primary-dark); }

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

ul { list-style: none; }

.container {
  max-width: var(--ct-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.ct-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ct-nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow var(--ct-transition);
}

.ct-nav-inner {
  max-width: var(--ct-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.ct-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ct-text);
  text-decoration: none;
}

.ct-logo span {
  color: var(--ct-primary);
}

.ct-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ct-nav-links a {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 0.95rem;
  color: var(--ct-text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ct-transition);
  white-space: nowrap;
}

.ct-nav-links a:hover,
.ct-nav-links a.active {
  color: var(--ct-primary);
}

.ct-nav-cta {
  background: var(--ct-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--ct-radius);
  font-weight: 700;
  transition: background var(--ct-transition);
}

.ct-nav-cta:hover {
  background: var(--ct-primary-dark);
}

.ct-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.ct-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ct-text);
  transition: var(--ct-transition);
}

/* ===== Hero ===== */
.ct-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ct-bg-dark) 0%, var(--ct-primary-darker) 100%);
  color: var(--ct-text-light);
  overflow: hidden;
}

.ct-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.ct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ct-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--ct-max-width);
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.ct-hero h1 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ct-hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

/* ===== Buttons ===== */
.ct-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--ct-radius);
  cursor: pointer;
  transition: all var(--ct-transition);
  border: none;
  text-align: center;
  text-decoration: none;
}

.ct-btn-primary {
  background: var(--ct-primary);
  color: #fff;
}

.ct-btn-primary:hover {
  background: var(--ct-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(28,102,222,0.3);
}

.ct-btn-accent {
  background: var(--ct-accent);
  color: #fff;
}

.ct-btn-accent:hover {
  background: var(--ct-accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

.ct-btn-outline {
  background: transparent;
  color: var(--ct-primary);
  border: 2px solid var(--ct-primary);
}

.ct-btn-outline:hover {
  background: var(--ct-primary);
  color: #fff;
}

.ct-btn-white {
  background: #fff;
  color: var(--ct-primary);
}

.ct-btn-white:hover {
  background: var(--ct-bg-alt);
  color: var(--ct-primary-dark);
}

/* ===== Sections ===== */
.ct-section {
  padding: 80px 0;
}

.ct-section-alt {
  background: var(--ct-bg-alt);
}

.ct-section-dark {
  background: var(--ct-bg-dark);
  color: var(--ct-text-light);
}

.ct-section-dark h2,
.ct-section-dark h3 {
  color: var(--ct-text-light);
}

.ct-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.ct-section-header p {
  color: var(--ct-text-muted);
  margin-top: 12px;
}

/* ===== Pricing Cards ===== */
.ct-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ct-price-card {
  background: var(--ct-card-bg);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--ct-transition);
  position: relative;
}

.ct-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ct-shadow-lg);
}

.ct-price-card.ct-popular {
  border-color: var(--ct-primary);
  box-shadow: 0 0 0 2px var(--ct-primary);
}

.ct-price-card .ct-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ct-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  font-family: 'Crimson Text', Georgia, serif;
}

.ct-price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ct-price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ct-primary);
  margin: 16px 0;
}

.ct-price-amount small {
  font-size: 0.9rem;
  color: var(--ct-text-muted);
  font-weight: 400;
}

.ct-price-features {
  text-align: left;
  margin: 20px 0;
}

.ct-price-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--ct-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ct-price-features li::before {
  content: '\2713';
  color: var(--ct-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.ct-price-card .ct-btn {
  width: 100%;
  margin-top: 16px;
}

/* ===== Features Grid ===== */
.ct-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.ct-feature-card {
  text-align: center;
  padding: 32px 20px;
}

.ct-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ct-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.ct-feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ct-feature-card p {
  font-size: 0.9rem;
  color: var(--ct-text-muted);
}

/* ===== Stats Bar ===== */
.ct-stats {
  background: var(--ct-primary);
  color: #fff;
  padding: 40px 0;
}

.ct-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ct-stat h3 {
  font-size: 2rem;
  color: #fff;
}

.ct-stat p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== Devices Section ===== */
.ct-devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.ct-device-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.ct-device-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ct-device-card p {
  font-size: 0.85rem;
  color: var(--ct-text-muted);
}

/* ===== CTA Section ===== */
.ct-cta-section {
  background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.ct-cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.ct-cta-section p {
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

/* ===== Forms ===== */
.ct-form {
  max-width: 560px;
  margin: 0 auto;
}

.ct-form-group {
  margin-bottom: 20px;
}

.ct-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ct-text);
}

.ct-form-group input,
.ct-form-group select,
.ct-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1rem;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  transition: border-color var(--ct-transition);
  background: #fff;
  min-height: 48px;
}

.ct-form-group input:focus,
.ct-form-group select:focus,
.ct-form-group textarea:focus {
  outline: none;
  border-color: var(--ct-primary);
  box-shadow: 0 0 0 3px rgba(28,102,222,0.1);
}

.ct-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.ct-form .ct-btn {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
}

.ct-form-trust {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ct-text-secondary);
  margin-top: 12px;
}

.ct-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--ct-radius);
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}

.form-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== Footer ===== */
.ct-footer {
  background: var(--ct-footer-bg);
  color: var(--ct-text-light);
  padding: 60px 0 24px;
}

.ct-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.ct-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.ct-footer p,
.ct-footer a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.ct-footer a:hover {
  color: var(--ct-primary);
}

.ct-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Page Header (inner pages) ===== */
.ct-page-header {
  background: linear-gradient(135deg, var(--ct-bg-dark) 0%, var(--ct-primary-darker) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.ct-page-header h1 {
  color: #fff;
}

.ct-page-header p {
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ===== Breadcrumb ===== */
.ct-breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--ct-text-muted);
}

.ct-breadcrumb a {
  color: var(--ct-primary);
}

/* ===== Content Page ===== */
.ct-content {
  padding: 48px 0 80px;
}

.ct-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.ct-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.ct-content p {
  margin-bottom: 16px;
  color: var(--ct-text-muted);
}

.ct-content ul,
.ct-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.ct-content li {
  margin-bottom: 8px;
  color: var(--ct-text-muted);
  list-style: disc;
}

.ct-content ol li {
  list-style: decimal;
}

.ct-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.ct-content table th,
.ct-content table td {
  padding: 12px 16px;
  border: 1px solid var(--ct-border);
  text-align: left;
}

.ct-content table th {
  background: var(--ct-bg-alt);
  font-weight: 700;
}

/* ===== FAQ ===== */
.ct-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.ct-faq-item {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.ct-faq-question {
  width: 100%;
  background: var(--ct-card-bg);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--ct-transition);
}

.ct-faq-question:hover {
  background: var(--ct-bg-alt);
}

.ct-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--ct-primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--ct-transition);
}

.ct-faq-item.active .ct-faq-question::after {
  content: '\2212';
}

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

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

.ct-faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--ct-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Channels Grid ===== */
.ct-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ct-channel-card {
  background: var(--ct-card-bg);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 28px;
  transition: all var(--ct-transition);
}

.ct-channel-card:hover {
  box-shadow: var(--ct-shadow);
}

.ct-channel-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--ct-primary);
}

.ct-channel-card ul li {
  list-style: none;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--ct-text-muted);
}

.ct-channel-card ul li::before {
  content: '\25B6';
  color: var(--ct-accent);
  margin-right: 8px;
  font-size: 0.7rem;
}

/* ===== Setup Guide ===== */
.ct-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.ct-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ct-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.2rem;
}

.ct-step-content h3 {
  margin-bottom: 8px;
}

.ct-step-content p {
  color: var(--ct-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .ct-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ct-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ct-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ct-nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ct-nav-bg);
    flex-direction: column;
    padding: 32px 20px;
    gap: 16px;
    overflow-y: auto;
    z-index: 999;
  }

  .ct-nav-links.active {
    display: flex;
  }

  .ct-hamburger {
    display: flex;
  }

  .ct-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .ct-features-grid {
    grid-template-columns: 1fr;
  }

  .ct-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-devices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-channels-grid {
    grid-template-columns: 1fr;
  }

  .ct-footer-grid {
    grid-template-columns: 1fr;
  }

  .ct-hero {
    min-height: 400px;
  }

  .ct-hero-content {
    padding: 60px 20px;
  }

  .ct-step {
    flex-direction: column;
  }

  .ct-section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .ct-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .ct-devices-grid {
    grid-template-columns: 1fr 1fr;
  }
}
