/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --radius: 10px;
  --max-width: 1100px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--color-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  background: #eff6ff;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--color-primary-dark) !important; color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  padding: 100px 0;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span { color: var(--color-primary); }

.hero p {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}

.stat {
  flex: 1;
  min-width: 120px;
  padding: 20px 24px;
  position: relative;
  text-align: center;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--color-border);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 2px;
}

/* ===== FEATURES ===== */
.features { background: var(--color-surface); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--color-muted); font-size: 0.95rem; }

/* ===== ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }

.article-img {
  height: 180px;
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-body { padding: 22px; }

.article-tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.article-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.article-body p { color: var(--color-muted); font-size: 0.88rem; margin-bottom: 16px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.article-meta-dot { width: 3px; height: 3px; background: var(--color-border); border-radius: 50%; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 32px; }

.btn-white {
  background: #fff;
  color: var(--color-primary);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: 0.2s;
}

.btn-white:hover { background: #eff6ff; }

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 10px; }

.footer-socials a {
  width: 36px;
  height: 36px;
  background: #1e293b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94a3b8;
  transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover { background: var(--color-primary); color: #fff; }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a { font-size: 0.9rem; color: #94a3b8; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: #94a3b8; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 64px 0 100px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--color-primary); }

.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 760px;
}

.legal-content section {
  padding: 0;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--color-text);
}

.legal-content p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-content ul li {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.legal-content a:hover { text-decoration-color: var(--color-primary); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle { display: flex; }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99;
    padding: 80px 24px 32px;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu-overlay.open { display: flex; }

  .mobile-menu-overlay a {
    padding: 12px 16px;
    font-size: 1.1rem;
    border-radius: 8px;
    color: var(--color-text);
  }

  .mobile-menu-overlay a:hover { background: var(--color-surface); }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
  .mobile-menu-overlay { display: none !important; }
}
