:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --secondary: #1e3a5f;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: var(--light);
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--secondary); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); margin: 1.5rem 0 0.75rem; }

p { margin-bottom: 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* HEADER */
.header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.logo {
  color: var(--light);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg { width: 32px; height: 32px; fill: var(--primary); }

.nav { width: 100%; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; }
.nav-list a {
  color: var(--light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: var(--transition);
}
.nav-list a:hover, .nav-list a.active { background: var(--primary); color: var(--dark); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d4a6f 100%);
  color: var(--light);
  padding: 3rem 0;
  text-align: center;
}

.hero h1 { color: var(--light); }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }

.hero-img {
  margin: 1.5rem auto 0;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--dark);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray); }

/* MAIN CONTENT */
.main { padding: 2rem 0; }

.content-grid { display: grid; gap: 2rem; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.card-link { display: block; }
.card h3 { color: var(--secondary); margin-top: 0; }

.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* FEATURES */
.features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; fill: var(--dark); }

/* TABLE */
.table-responsive { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: var(--secondary); color: var(--light); font-weight: 600; }
tr:hover { background: #f1f5f9; }

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary);
  color: var(--light);
}
.faq-question::after { content: '+'; font-size: 1.5rem; }
.faq-answer { padding: 1.5rem; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question::after { content: '−'; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.cta h2 { color: var(--dark); margin-top: 0; }
.cta p { color: var(--dark); opacity: 0.9; }

.btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--light);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--dark); color: var(--light); transform: scale(1.02); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: var(--light); }

/* SIDEBAR */
.sidebar {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar h3 { margin-top: 0; padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary); }
.sidebar ul { list-style: none; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px solid #e2e8f0; }
.sidebar li:last-child { border: none; }

/* FOOTER */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: var(--primary); margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { padding: 0.25rem 0; }
.footer a { color: var(--gray); }
.footer a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid #334155; color: var(--gray); font-size: 0.85rem; }

/* ARTICLE */
article img { margin: 1.5rem 0; }
article ul, article ol { margin: 1rem 0 1rem 1.5rem; }
article li { margin-bottom: 0.5rem; }

.highlight {
  background: linear-gradient(90deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pros-cons { display: grid; gap: 1rem; margin: 1.5rem 0; }
.pros, .cons {
  padding: 1.5rem;
  border-radius: var(--radius);
}
.pros { background: #ecfdf5; border: 1px solid #10b981; }
.cons { background: #fef2f2; border: 1px solid #ef4444; }
.pros h4 { color: #059669; }
.cons h4 { color: #dc2626; }

/* RESPONSIVE */
@media (min-width: 640px) {
  .header-inner { flex-direction: row; justify-content: space-between; }
  .nav { width: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
}

/* PRINT */
@media print {
  .header, .footer, .nav, .cta { display: none; }
  body { font-size: 12pt; }
  a { color: #000; }
}
