/* ====== RESET ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --surface: #171f2b;
  --border: #232c3b;
  --text: #e6edf6;
  --muted: #9aa7b8;
  --primary: #ff4d5e;
  --primary-dark: #d93a4a;
  --accent: #ffd166;
  --success: #4dd4ac;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-menu a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--text); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ====== HERO ====== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #0b0f14, #1a1f2b);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====== PAGE HERO ====== */
.page-hero {
  padding: 80px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, #121821, #0b0f14);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-hero p { color: var(--muted); font-size: 1.05rem; }

/* ====== BUTTON ====== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ====== SECTION ====== */
.section { padding: 80px 0; }
.section-dark {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-title.light { color: var(--text); }
.section-desc {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 40px;
}

/* ====== CARDS ====== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.card-icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ====== STATS ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.stat {
  padding: 24px 20px;
  border-left: 3px solid var(--primary);
}
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.stat p { color: var(--muted); font-size: 0.95rem; }

/* ====== CTA ====== */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #171f2b, #0b0f14);
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta p {
  color: var(--muted);
  margin-bottom: 26px;
}

/* ====== CONTENT (narrow) ====== */
.narrow h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
}
.narrow h2:first-child { margin-top: 0; }
.narrow p {
  color: var(--muted);
  margin-bottom: 14px;
}
.narrow a {
  color: var(--primary);
  text-decoration: underline;
}

/* ====== LIST ====== */
.list-check,
.list-cross,
.list-dot,
.list-number {
  margin-bottom: 20px;
}
.list-check, .list-cross, .list-dot { list-style: none; }
.list-check li,
.list-cross li,
.list-dot li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  margin-bottom: 10px;
}
.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.list-cross li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.list-dot li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}
.list-number {
  padding-left: 24px;
  color: var(--muted);
}
.list-number li { margin-bottom: 10px; }

/* ====== TABLE ====== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.table td { color: var(--muted); }

/* ====== FORM ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 30px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ====== WARNING ====== */
.warning {
  background: rgba(255, 209, 102, 0.1);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  color: var(--text);
  margin: 24px 0;
}

/* ====== ARTICLE ====== */
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 14px;
  font-weight: 700;
}
.article-body p {
  color: var(--muted);
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--muted);
}
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--surface);
  border-radius: 8px;
  font-style: italic;
  color: var(--text);
}

/* ====== FOOTER ====== */
.site-footer {
  background: #080b10;
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
  margin-top: 60px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 30px;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col p {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ====== MENU TOGGLE (mobile) ====== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
}