:root {
  --navy: #0a1628; --navy-mid: #142240; --ocean: #1a4a7a;
  --horizon: #2d7dd2; --seafoam: #4db8c8;
  --sand: #f2ede6; --salt: #faf8f5; --fog: #e8e4dc;
  --ink: #1a1a2e; --mist: #8a9ab5;
  --gold: #c9a84c; --gold-light: #e8c96a; --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max: 1200px; --gutter: clamp(1.5rem, 5vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--salt); color: var(--ink); font-size: 16px; line-height: 1.7; }

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--gutter); height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,22,40,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--white); text-decoration: none; }
.logo span { color: var(--seafoam); }
.back-link { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-decoration: none; letter-spacing: 0.06em; display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.back-link:hover { color: var(--seafoam); }

.article-hero {
  background: var(--navy); padding: 120px var(--gutter) 60px;
  position: relative; overflow: hidden;
}
.article-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(77,184,200,0.4), transparent); }
.hero-bg-grad { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(29,74,122,0.5) 0%, transparent 70%); }
.article-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--seafoam); }
.breadcrumb span { color: rgba(255,255,255,0.2); }

.article-tag-hero { display: inline-block; background: rgba(77,184,200,0.15); border: 1px solid rgba(77,184,200,0.35); color: var(--seafoam); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 3px; margin-bottom: 1.25rem; }

.article-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300; line-height: 1.1; color: var(--white); margin-bottom: 1.25rem; }
.article-hero h1 em { font-style: italic; color: var(--gold-light); }

.article-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

.article-layout { max-width: 1100px; margin: 0 auto; padding: 4rem var(--gutter); display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

.article-content { max-width: 680px; }
.article-content h2 { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; color: var(--navy); margin: 2.5rem 0 1rem; line-height: 1.2; }
.article-content h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--navy); margin: 2rem 0 0.75rem; }
.article-content p { font-size: 1rem; line-height: 1.85; color: #3a4a5c; margin-bottom: 1.25rem; font-weight: 300; }
.article-content ul, .article-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-content li { font-size: 0.97rem; line-height: 1.75; color: #3a4a5c; margin-bottom: 0.5rem; font-weight: 300; }
.article-content strong { font-weight: 500; color: var(--navy); }

.info-box { background: rgba(45,125,210,0.06); border-left: 3px solid var(--horizon); border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.info-box p { margin-bottom: 0; font-size: 0.95rem; }

.highlight-box { background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.04)); border: 1px solid rgba(201,168,76,0.25); border-radius: 8px; padding: 1.5rem; margin: 2rem 0; }
.highlight-box h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--navy); margin-bottom: 0.75rem; }
.highlight-box p { margin-bottom: 0; font-size: 0.95rem; }

.step-list { list-style: none; margin-left: 0; }
.step-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 32px; height: 32px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 500; margin-top: 0.1rem; }
.step-text { flex: 1; }
.step-text strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.3rem; }
.step-text span { font-size: 0.88rem; color: #5a6a82; line-height: 1.65; font-weight: 300; }

/* Table */
.license-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.license-table th { text-align: left; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); padding: 0.75rem 1rem; border-bottom: 1px solid var(--fog); }
.license-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--fog); color: #3a4a5c; font-weight: 300; }
.license-table tr:hover td { background: rgba(45,125,210,0.03); }

/* Cost table */
.cost-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.cost-table th { text-align: left; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); padding: 0.75rem 1rem; background: rgba(10,22,40,0.04); }
.cost-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--fog); color: #3a4a5c; font-weight: 300; }
.cost-table .total td { font-weight: 500; color: var(--navy); border-top: 2px solid var(--fog); }

/* Checklist */
.checklist { list-style: none; margin: 1rem 0 1.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--fog); font-size: 0.95rem; color: #3a4a5c; font-weight: 300; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ''; display: block; width: 18px; height: 18px; border: 1.5px solid var(--fog); border-radius: 4px; flex-shrink: 0; margin-top: 0.1rem; }

/* Comparison */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { background: var(--white); border: 1px solid var(--fog); border-radius: 8px; overflow: hidden; }
.compare-card.featured { border-color: rgba(201,168,76,0.4); }
.compare-card-head { padding: 1.25rem; background: var(--navy); }
.compare-card.featured .compare-card-head { background: linear-gradient(135deg, var(--ocean), var(--navy-mid)); }
.compare-card-head h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; color: var(--white); margin-bottom: 0.25rem; }
.compare-card-head p { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.compare-card-body { padding: 1.25rem; }
.pro { color: #2d7a4a; font-weight: 500; }
.con { color: #a03030; font-weight: 500; }
.compare-card-body ul { list-style: none; margin: 0; }
.compare-card-body ul li { font-size: 0.88rem; color: #3a4a5c; padding: 0.45rem 0; border-bottom: 1px solid var(--fog); font-weight: 300; display: flex; gap: 0.5rem; align-items: flex-start; }
.compare-card-body ul li:last-child { border-bottom: none; }

/* Sidebar */
.sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--white); border: 1px solid var(--fog); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; }
.sidebar-card-header { background: var(--navy); padding: 1.25rem 1.5rem; }
.sidebar-card-header h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; color: var(--white); margin-bottom: 0.25rem; }
.sidebar-card-header p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.sidebar-card-body { padding: 1.25rem 1.5rem; }
.sidebar-card-body p { font-size: 0.88rem; color: #5a6a82; line-height: 1.65; margin-bottom: 1rem; font-weight: 300; }
.btn-cta-sidebar { display: block; background: var(--gold); color: var(--navy); text-align: center; padding: 0.8rem; border-radius: 4px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-decoration: none; transition: background 0.2s; }
.btn-cta-sidebar:hover { background: var(--gold-light); }
.toc { padding: 1.25rem 1.5rem; }
.toc h4 { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mist); margin-bottom: 1rem; }
.toc ul { list-style: none; }
.toc ul li { margin-bottom: 0.6rem; }
.toc ul li a { font-size: 0.85rem; color: #5a6a82; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.toc ul li a:hover { color: var(--horizon); }
.toc ul li a::before { content: ''; display: block; width: 16px; height: 1px; background: var(--fog); flex-shrink: 0; }

/* Nav */
.article-nav { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-next { flex: 1; min-width: 240px; background: var(--white); border: 1px solid var(--fog); border-radius: 8px; padding: 1.25rem 1.5rem; text-decoration: none; color: inherit; transition: all 0.25s; display: flex; flex-direction: column; gap: 0.4rem; }
.nav-next:hover { border-color: rgba(45,125,210,0.3); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,22,40,0.08); }
.nav-next-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.nav-next-title { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }

/* Footer */
footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem var(--gutter); }
.footer-simple { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-simple p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-simple a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-simple a:hover { color: var(--seafoam); }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.article-hero-inner > * { animation: fadeUp 0.7s ease both; }
.article-hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.article-hero-inner > *:nth-child(2) { animation-delay: 0.2s; }
.article-hero-inner > *:nth-child(3) { animation-delay: 0.3s; }
