/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0ea5e9; text-decoration: none; transition: color .2s; }
a:hover { color: #0284c7; }
ul, ol { padding-left: 1.5rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: #0c4a6e; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin: 2rem 0 .75rem; }
h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p { margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ===== HEADER (sticky) ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: .75rem 1.25rem;
}
.logo { font-size: 1.35rem; font-weight: 800; color: #0c4a6e; display: flex; align-items: center; gap: .5rem; }
.logo span { color: #0ea5e9; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-weight: 500; color: #475569; font-size: .95rem; position: relative; }
.nav-links a::after { content:''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #0ea5e9; transition: width .25s; }
.nav-links a:hover { color: #0ea5e9; }
.nav-links a:hover::after { width: 100%; }
.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff !important; padding: .6rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(14,165,233,.35); color: #fff !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: #0c4a6e; border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(12,74,110,.92), rgba(14,165,233,.85)),
              url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1400&q=75&auto=format&fit=crop') center/cover no-repeat;
  color: #fff; text-align: center;
}
.hero h1 { color: #fff; max-width: 800px; margin: 0 auto 1rem; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; opacity: .92; }
.hero .btn-cta { background: #fff; color: #0c4a6e !important; font-size: 1rem; padding: .8rem 2rem; }
.hero .btn-cta:hover { box-shadow: 0 4px 20px rgba(255,255,255,.3); }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); padding: .35rem 1rem; border-radius: 50px; font-size: .85rem; margin-bottom: 1.5rem; backdrop-filter: blur(4px); }

/* ===== HERO INTERNAL ===== */
.hero-internal {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(12,74,110,.90), rgba(14,165,233,.82)),
              url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=1400&q=75&auto=format&fit=crop') center/cover no-repeat;
  color: #fff; text-align: center;
}
.hero-internal h1 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.hero-internal p { opacity: .9; max-width: 600px; margin: .75rem auto 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 1rem 0; font-size: .85rem; color: #64748b; }
.breadcrumb a { color: #0ea5e9; }
.breadcrumb span { margin: 0 .35rem; }

/* ===== CONTENT LAYOUT ===== */
.content-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; padding: 2.5rem 0 4rem; }
.main-content { min-width: 0; }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-card {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}
.sidebar-card h3 { font-size: 1.05rem; margin-top: 0; color: #0c4a6e; }
.sidebar-card .btn-cta { width: 100%; justify-content: center; margin-top: 1rem; }
.sidebar-toc ol { list-style: none; padding: 0; counter-reset: toc; }
.sidebar-toc li { counter-increment: toc; margin-bottom: .6rem; }
.sidebar-toc li::before { content: counter(toc) "."; color: #0ea5e9; font-weight: 600; margin-right: .5rem; }
.sidebar-toc a { color: #475569; font-size: .9rem; }
.sidebar-toc a:hover { color: #0ea5e9; }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: 12px; padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #e2e8f0;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.card-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #0ea5e9; margin-bottom: .5rem; }
.card h3 a { color: #0c4a6e; }
.card h3 a:hover { color: #0ea5e9; }
.card p { color: #64748b; font-size: .95rem; }

/* ===== RATING STARS ===== */
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #0c4a6e; color: #fff; padding: .3rem .75rem;
  border-radius: 6px; font-weight: 700; font-size: .95rem;
}
.rating-badge.excellent { background: #059669; }
.rating-badge.good { background: #0ea5e9; }
.rating-badge.average { background: #f59e0b; }
.score-bar { display: flex; align-items: center; gap: .75rem; margin: .5rem 0; }
.score-bar-label { font-size: .85rem; color: #64748b; min-width: 120px; }
.score-bar-track { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #0ea5e9, #06b6d4); transition: width .6s ease; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.comparison-table thead { background: #0c4a6e; color: #fff; }
.comparison-table th { padding: .9rem 1rem; text-align: left; font-weight: 600; font-size: .9rem; }
.comparison-table td { padding: .85rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: .9rem; }
.comparison-table tbody tr { background: #fff; transition: background .15s; }
.comparison-table tbody tr:hover { background: #f0f9ff; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.check { color: #059669; font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }

/* ===== PROS/CONS ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.pros, .cons { padding: 1.25rem; border-radius: 10px; }
.pros { background: #f0fdf4; border-left: 4px solid #059669; }
.cons { background: #fef2f2; border-left: 4px solid #dc2626; }
.pros h4 { color: #059669; margin-top: 0; }
.cons h4 { color: #dc2626; margin-top: 0; }
.pros li, .cons li { margin-bottom: .4rem; font-size: .95rem; }

/* ===== VERDICT BOX ===== */
.verdict-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #0ea5e9; border-radius: 12px;
  padding: 1.75rem; margin: 2rem 0;
}
.verdict-box h3 { color: #0c4a6e; margin-top: 0; }

/* ===== FAQ ===== */
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: .75rem; background: #fff; overflow: hidden; }
.faq-question {
  padding: 1rem 1.25rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s; font-size: .95rem;
}
.faq-question:hover { background: #f8fafc; }
.faq-question::after { content: '+'; font-size: 1.3rem; color: #0ea5e9; transition: transform .3s; font-weight: 300; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.25rem 1.25rem; }
.faq-answer p { color: #64748b; font-size: .95rem; margin-bottom: .5rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #0c4a6e, #0ea5e9);
  color: #fff; padding: 3.5rem 2rem; text-align: center;
  border-radius: 16px; margin: 3rem 0;
}
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { opacity: .9; max-width: 550px; margin: .75rem auto 1.5rem; }
.cta-banner .btn-cta { background: #fff; color: #0c4a6e !important; font-size: 1rem; padding: .85rem 2.25rem; }
.cta-full {
  background: linear-gradient(135deg, #0c4a6e, #0ea5e9);
  color: #fff; padding: 3rem 2rem; text-align: center; margin: 0;
}
.cta-full h2 { color: #fff; margin-top: 0; }
.cta-full p { opacity: .9; max-width: 550px; margin: .5rem auto 1.5rem; }
.cta-full .btn-cta { background: #fff; color: #0c4a6e !important; }

/* ===== HOMEPAGE SECTIONS ===== */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title p { color: #64748b; max-width: 600px; margin: .5rem auto 0; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.featured-card { text-align: center; padding: 2rem 1.5rem; }
.featured-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.featured-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }

.latest-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #e2e8f0; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.article-card-img {
  height: 180px; background-size: cover; background-position: center;
  position: relative;
}
.article-card-img .tag {
  position: absolute; top: .75rem; left: .75rem;
  background: #0ea5e9; color: #fff; padding: .25rem .65rem;
  border-radius: 6px; font-size: .75rem; font-weight: 600;
}
.article-card-body { padding: 1.25rem; }
.article-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.article-card-body h3 a { color: #0c4a6e; }
.article-card-body h3 a:hover { color: #0ea5e9; }
.article-card-body p { font-size: .9rem; color: #64748b; }
.article-meta { font-size: .8rem; color: #94a3b8; margin-top: .75rem; }

/* ===== TRUST BAR ===== */
.trust-bar { display: flex; justify-content: center; gap: 3rem; padding: 2rem 0; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item .num { font-size: 2rem; font-weight: 800; color: #0ea5e9; }
.trust-item .label { font-size: .85rem; color: #64748b; }

/* ===== FOOTER ===== */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #94a3b8; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #0ea5e9; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: .85rem; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; color: #334155; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== 404 PAGE ===== */
.page-404 { text-align: center; padding: 6rem 2rem; }
.page-404 h1 { font-size: 6rem; color: #0ea5e9; margin-bottom: .5rem; }
.page-404 p { font-size: 1.15rem; color: #64748b; margin-bottom: 2rem; }

/* ===== INFO BOX ===== */
.info-box {
  background: #f0f9ff; border-left: 4px solid #0ea5e9;
  padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.info-box strong { color: #0c4a6e; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .grid-2, .pros-cons { grid-template-columns: 1fr; }
  .grid-3, .featured-grid, .latest-articles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .comparison-table { font-size: .85rem; }
  .comparison-table th, .comparison-table td { padding: .6rem .5rem; }
  .trust-bar { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
}
