/* ============================================
   CASTIATOR - Global Stylesheet
   Design DNA: Clean/Corporate (kilarix.com)
   Colors: #1863dc, #212121, #ffffff, #f4f4f4
   Font: Tahoma, sans-serif
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1863dc;
  --primary-hover: #1350b0;
  --dark: #212121;
  --white: #ffffff;
  --light-bg: #f4f4f4;
  --success: #2db742;
  --text-primary: #212121;
  --text-muted: #666666;
  --border: #e0e0e0;
  --footer-bg: #1a1a1a;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: var(--dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header / Nav --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--primary-hover); color: var(--white) !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav-links.active { display: flex; }
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section--light { background: var(--light-bg); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }
.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 700;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #122a52 50%, #1863dc 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 .accent { color: #5a9ff5; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}
.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover {
  background: #249637;
  color: var(--white);
}

/* --- Logo Carousel --- */
.logo-bar {
  background: var(--light-bg);
  padding: 32px 0;
  overflow: hidden;
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.logo-track img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(30%);
  transition: opacity var(--transition);
}
.logo-track img:hover { opacity: 1; filter: none; }

/* --- Cards / Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 48px 0; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(24,99,220,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--primary);
}

/* --- Pricing --- */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  border: 2px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(24,99,220,0.15);
  border-color: var(--primary);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(24,99,220,0.03) 0%, var(--white) 100%);
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.pricing-card .price sup {
  font-size: 1.2rem;
  vertical-align: super;
}
.pricing-card .price sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-card ul {
  margin: 24px 0;
  text-align: left;
}
.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-bg);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card ul li::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.testimonial-card .stars { color: #f5a623; margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.testimonial-card .author { font-weight: 700; color: var(--dark); }
.testimonial-card .location { color: var(--text-muted); font-size: 0.85rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  font-family: inherit;
}
.faq-question:hover { background: var(--light-bg); }
.faq-question::after { content: "+"; font-size: 1.5rem; color: var(--primary); 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, padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24,99,220,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-message--success {
  background: rgba(45,183,66,0.1);
  color: var(--success);
  border: 1px solid var(--success);
}
.form-message--error {
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  border: 1px solid #dc2626;
}
.trust-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Channel Categories --- */
.channel-cat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
}
.channel-cat h3 { font-size: 1.1rem; margin-bottom: 8px; }
.channel-cat .count { color: var(--primary); font-weight: 700; font-size: 1.8rem; }

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .logo { color: var(--white); font-size: 1.4rem; display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.site-footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #0a1628 0%, #122a52 50%, #1863dc 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* --- Content Pages --- */
.content-page { padding: 48px 0 80px; }
.content-page h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.5rem; }
.content-page h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.25rem; }
.content-page ul { margin-left: 24px; margin-bottom: 16px; }
.content-page ul li { list-style: disc; margin-bottom: 6px; color: var(--text-muted); }
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.content-page table th,
.content-page table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.content-page table th {
  background: var(--light-bg);
  font-weight: 700;
}

/* --- Setup Guide --- */
.setup-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.setup-step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Trial Form Section --- */
.trial-section {
  background: linear-gradient(135deg, #0a1628 0%, #1863dc 100%);
  padding: 80px 0;
  text-align: center;
}
.trial-section h2 { color: var(--white); margin-bottom: 8px; }
.trial-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.trial-form {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.trial-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 12px;
}
.trial-form input::placeholder { color: rgba(255,255,255,0.6); }
.trial-form input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255,255,255,0.15);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
