:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --text: #14213d;
  --muted: #5f6b85;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #dce4f2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  background: linear-gradient(135deg, #07111f 0%, #153f73 50%, #2563eb 100%);
  color: white;
  padding: 48px 20px 28px;
}
.hero-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: center;
}
.eyebrow, .section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9cc2ff;
  font-weight: 700;
}
.hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 22px;
  max-width: 660px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.btn.secondary {
  border: 1px solid rgba(255,255,255,0.28);
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}
.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin-top: 0; margin-bottom: 10px; }
.hero-card ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.92); }
.nav {
  max-width: 1160px;
  margin: 22px auto 0;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.nav .nav-link {
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.09);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 600;
}
.main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.section {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.section-heading { margin-bottom: 12px; }
.section-heading h2 { margin: 0 0 4px; font-size: 1.5rem; }
.intro-card p:last-child { margin-bottom: 0; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.article-card { min-height: 250px; }
.article-meta, .article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.article-meta span, .article-detail-meta span {
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}
.card h3 { margin: 0; font-size: 1.11rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); }
.article-summary { font-size: 0.96rem; }
.article-tags span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
}
.card button {
  margin-top: auto;
  border: none;
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.card button:hover { background: var(--primary-dark); }
.empty-state {
  color: var(--muted);
  padding: 18px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px dashed var(--border);
}
.article-intro {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 12px;
}
.article-content {
  color: var(--muted);
  font-size: 0.97rem;
}

.article-content h3 { margin-top: 18px; margin-bottom: 8px; color: var(--text); }
.article-content p { margin-bottom: 12px; }
.article-content pre { background: #0b1220; color: #e6eef8; padding: 12px; border-radius: 8px; overflow:auto; }
.article-content code { background: rgba(15,23,42,0.05); padding: 3px 6px; border-radius: 6px; }
.article-content img { max-width: 100%; border-radius: 10px; display:block; margin:12px 0; }
.video-embed { margin: 14px 0; }
.article-detail-meta { display:flex; gap:12px; color:var(--muted); font-weight:600; margin-bottom:10px; }
.about-card p, .contact-card p { color: var(--muted); }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfdff;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  border-color: var(--primary);
}
.contact-form button {
  justify-self: start;
  margin-top: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover { background: var(--primary-dark); }
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 31, 0.6);
  padding: 20px;
  z-index: 50;
}
.modal-content {
  background: white;
  padding: 28px;
  border-radius: 24px;
  max-width: 850px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-title {
  font-size: 1.35rem;
  margin: 0 0 8px;
  padding-right: 20px;
}
.modal .close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}
@media (max-width: 820px) {
  .hero-shell { grid-template-columns: 1fr; }
  .site-header { padding-top: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 18px; }
  .main { padding: 24px 14px 48px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .nav { justify-content: center; }
}
