@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,500&display=swap');

:root {
  --accent: #664cdd;
  --accent-hover: #5338c9;
  --purple: #664cdd;
  --purple-light: #8277ff;
  --navy: #0d1221;
  --text: #37373d;
  --text-light: #666;
  --text-muted: #878787;
  --bg: #ffffff;
  --bg-warm: #fcfbfa;
  --bg-warm-alt: #f9f6f4;
  --border: #e8e5e1;
  --green: #14523d;
  --yellow: #ffe669;
  --max-width: 1200px;
  --content-width: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(13,18,33,0.06);
  --shadow-md: 0 4px 16px rgba(13,18,33,0.08);
  --shadow-lg: 0 8px 32px rgba(13,18,33,0.1);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.content-container { max-width: var(--content-width); margin: 0 auto; padding: 0 32px; }

/* ============ HEADER ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
}
.logo:hover { opacity: 0.85; }
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}
.site-header nav a:hover { color: var(--navy); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  background: var(--bg-warm);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15em;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--bg);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.testimonials h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 32px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-grid blockquote {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-grid blockquote:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-grid blockquote p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-grid cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: block;
}

/* ============ LATEST POSTS SECTION ============ */
.latest-posts { padding: 0; }
.latest-posts > h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}

main { padding: 64px 0; }

/* ============ POST LIST ============ */
.post-list { list-style: none; padding: 0; }
.post-list li {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}
.post-list li:first-child { padding-top: 0; }
.post-list li:last-child { border-bottom: none; }
.post-list li:hover { padding-left: 4px; }
.post-list h2 { font-size: 1.35em; margin-bottom: 8px; font-weight: 600; letter-spacing: -0.3px; }
.post-list h2 a { color: var(--navy); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list .excerpt { color: var(--text-light); font-size: 15px; margin-bottom: 10px; line-height: 1.6; }
.post-list .meta { font-size: 13px; margin-bottom: 0; color: var(--text-muted); }

/* ============ TAGS ============ */
.tag {
  background: var(--bg-warm-alt);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 6px;
  display: inline-block;
}

/* ============ ARTICLE ============ */
article { margin-bottom: 48px; }
article h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--navy);
  letter-spacing: -1px;
}
article .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
article h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.55em;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--navy);
}
article p { margin-bottom: 20px; color: var(--text); }
article ul, article ol { margin-bottom: 24px; padding-left: 24px; }
article li { margin-bottom: 10px; color: var(--text); }
article li::marker { color: var(--accent); }
article strong { color: var(--navy); font-weight: 600; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
article blockquote p { margin-bottom: 0; }
article code {
  background: var(--bg-warm-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--purple);
  font-weight: 500;
}
article pre {
  background: var(--navy);
  color: #e4e4e7;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.7;
}
article pre code { background: none; padding: 0; color: inherit; font-weight: 400; }
article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
article a { color: var(--accent); font-weight: 500; }
article a:hover { text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.back-link:hover { color: var(--accent); }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 16px;
}
th, td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--navy);
}
tbody tr:nth-child(even) {
  background: var(--bg-warm-alt);
}
tbody tr:hover {
  background: var(--purple-light);
  color: #fff;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #312730;
  color: rgba(255,255,255,0.7);
  padding: 0;
  margin-top: 0;
}
.footer-cta {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 56px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.footer-cta .btn-primary {
  white-space: nowrap;
  padding: 12px 28px;
  font-size: 15px;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand a {
  display: inline-flex;
  align-items: center;
}
.footer-brand a:hover { opacity: 0.85; }
.footer-brand img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 14px;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition), background var(--transition);
}
.footer-social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ 404 ============ */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 6em; font-weight: 700; color: var(--border); letter-spacing: -4px; }
.error-page p { color: var(--text-light); font-size: 1.1em; margin-top: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .content-container { padding: 0 20px; }
  .site-header .container { height: 60px; }
  .site-header nav { gap: 16px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 2.1em; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials { padding: 48px 0; }
  main { padding: 48px 0; }
  article h1 { font-size: 1.8em; }
  article h2 { font-size: 1.3em; }
  .footer-cta { flex-direction: column; text-align: center; padding: 40px 0; }
  .footer-cta h3 { font-size: 22px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
  .post-list h2 { font-size: 1.15em; }
}
@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; gap: 28px; }
}
