@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --primary: #0d3b66;
  --accent: #ff8c42;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1c2834;
  --muted: #5a6b7b;
  --border: #e5eaf0;
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.08);
  --radius: 14px;
  --transition: all 0.25s ease;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.08), rgba(255, 140, 66, 0.08));
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 780px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame.portrait {
  aspect-ratio: 3 / 4;
  max-width: 420px;
}

.image-frame.wide {
  aspect-ratio: 16 / 9;
}

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 4rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(13, 59, 102, 0.16);
}

.btn-accent {
  background: var(--accent);
  color: #0f1c2e;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 59, 102, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(13, 59, 102, 0.12);
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  display: block;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--primary);
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-grid > div:last-child {
  display: flex;
  justify-content: center;
}

.headline {
  font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 140, 66, 0.12);
  color: #a2501f;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.subtle {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 59, 102, 0.08);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.card-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(13, 59, 102, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Lists */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.bullets li {
  margin: 0.35rem 0;
  display: flex;
  gap: 0.45rem;
  color: var(--muted);
}

.bullets li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
}

/* Testimonials */
.testimonial {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1.1rem;
  background: rgba(13, 59, 102, 0.06);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.testimonial strong {
  color: var(--primary);
}

.testimonial small {
  color: var(--muted);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter input,
.form-control input,
.form-control textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  transition: var(--transition);
}

.newsletter input:focus,
.form-control input:focus,
.form-control textarea:focus {
  outline: 2px solid rgba(13, 59, 102, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.form-control label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.form-control textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  margin-top: 0.8rem;
  font-weight: 700;
}

.success {
  color: #1f9254;
}

.error {
  color: #c0392b;
}

/* Filters & articles */
.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.filter-btn {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.article-card h3 {
  margin-bottom: 0.35rem;
}

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

.article-meta .badge {
  background: rgba(255, 140, 66, 0.12);
  color: #a2501f;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.8rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.milestone {
  position: relative;
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
}

.milestone::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

/* Tools tags */
.tool-tag {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(13, 59, 102, 0.08);
  color: var(--primary);
  font-weight: 700;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

.faq-answer {
  margin-top: 0.75rem;
  color: var(--muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Article template */
.article-hero img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.article-body {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-body pre {
  background: #0d1b2a;
  color: #e0e6ed;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
}

.share-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background: #0b2f54;
  color: #dfe9f5;
  margin-top: 3rem;
  padding: 2.5rem 0;
}

footer a {
  color: #f7f8fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.socials a:hover {
  background: var(--accent);
  color: #0b2f54;
}

.copyright {
  margin-top: 1.2rem;
  color: #c1d4e8;
}

/* Utility */
.pill-label {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.align-center {
  text-align: center;
}

.centered-media {
  display: flex;
  justify-content: center;
}

.muted {
  color: var(--muted);
}

.narrow {
  width: min(840px, 92vw);
  margin: 0 auto;
}

.shadowless {
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0.9rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.8rem 1.2rem 1.2rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .section-head {
    justify-content: center;
    text-align: center;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 1.25rem;
  }

  footer .footer-grid {
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 3rem;
  }

  .section-padding {
    padding: 3rem 0;
  }
}
