:root {
  --sky: #3ba7de;
  --navy: #292d67;
  --navy-dark: #1e2152;
  --white: #ffffff;
  --text-dark: #1a1f3c;
  --muted: #6d7690;
  --page: #f4f7fb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  background: var(--page);
  overflow-x: hidden;
  padding-top: 72px;
}

img {
  max-width: 100%;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 167, 222, 0.15);
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 4px 24px rgba(41, 45, 103, 0.12);
}

.nav-logo a {
  display: flex;
  align-items: center;
  min-width: 90px;
  min-height: 40px;
}

.nav-logo img {
  height: 64px;
  width: auto;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--sky);
}

.nav-links a.is-active {
  background: #e7f4fc;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 14px;
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 18px;
  }
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 167, 222, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 167, 222, 0.4);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1e2152 0%, #292d67 50%, #1a4a7a 100%);
  padding: 96px 24px 80px;
  text-align: center;
}

.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.blog-hero::before {
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 167, 222, 0.25) 0%, transparent 70%);
}

.blog-hero::after {
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 167, 222, 0.12) 0%, transparent 70%);
}

.blog-hero h1,
.blog-wordmark,
.blog-search {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  color: #7ec8f8;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.blog-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 56px auto 40px;
}

.blog-wordmark img {
  display: block;
  width: auto;
  object-fit: contain;
  user-select: none;
}

.wm-bl,
.wm-g {
  height: clamp(108px, 18vw, 188px);
}

.wm-o {
  height: clamp(96px, 15vw, 164px);
  margin: 0 -4px 10px;
}

.blog-search {
  display: flex;
  align-items: center;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 24, 68, 0.18);
}

.blog-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #1a1f3c;
  font: inherit;
  font-size: 15px;
  padding-right: 8px;
}

.blog-search input::-webkit-search-cancel-button {
  margin-right: 14px;
  cursor: pointer;
}

.blog-search input::placeholder {
  color: #9aa3b5;
}

.blog-search button {
  border: 0;
  border-radius: 999px;
  background: #2f7fe8;
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
}

.blog-search button:hover {
  background: #1d6ad4;
}

.blog-listing,
.article-wrap,
.related-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.blog-listing {
  padding: 42px 0 18px;
}

.blog-listing-head,
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.blog-listing-head h2,
.related-head h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1b2454;
}

.blog-listing-head span {
  color: #8b93a7;
  font-size: 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 39, 86, 0.06);
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #243e8c 0%, #3b82f6 55%, #bfdbfe 100%);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(22, 39, 86, 0.1);
}

.blog-card:hover .blog-card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-card-kicker {
  margin-bottom: 10px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 700;
}

.blog-card-title {
  margin-bottom: 12px;
  color: #1a2370;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.blog-card-excerpt {
  color: #667089;
  font-size: 14.5px;
  line-height: 1.65;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef1f6;
}

.blog-avatar {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-facts {
  color: #8b93a7;
  font-size: 13px;
}

.blog-empty {
  padding: 28px 0 8px;
  color: #667089;
  font-size: 15px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e6ebf3;
}

.blog-pagination[hidden],
.blog-empty[hidden],
#blog-related[hidden] {
  display: none;
}

.blog-page-meta {
  color: #8b93a7;
  font-size: 14px;
}

.blog-page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e4e9f2;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.page-btn.is-current {
  border-color: #1e2b6b;
  background: #1e2b6b;
  color: #fff;
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-step {
  padding: 0 14px;
  color: #64748b;
}

.blog-subscribe-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto 64px;
}

.blog-subscribe-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 42px 48px;
  border-radius: 28px;
  background: linear-gradient(105deg, #1e2358 0%, #16407c 100%);
  box-shadow: 0 20px 40px rgba(16, 40, 95, 0.18);
}

.stay-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9ec8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.blog-subscribe-card h2 {
  max-width: 460px;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
}

.blog-subscribe-card h2 span {
  color: #7ec8f8;
}

.blog-subscribe-card .subscribe-copy {
  max-width: 460px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.blog-subscribe-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-subscribe-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.blog-subscribe-points li::before {
  content: "✓";
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #5eb6ef;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.blog-subscribe-form {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 20, 60, 0.12);
}

.blog-subscribe-form label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.blog-subscribe-form input {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  outline: none;
  color: #1a1f3c;
  font: inherit;
  font-size: 14px;
}

.blog-subscribe-form input:focus {
  border-color: #419bf2;
  box-shadow: 0 0 0 3px rgba(65, 155, 242, 0.2);
}

.blog-subscribe-form button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #4ec4f3 0%, #1a4f9c 100%);
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.blog-subscribe-form button:hover {
  filter: brightness(1.08);
}

.blog-subscribe-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.blog-subscribe-status.is-error {
  color: #dc2626;
}

.blog-subscribe-status.is-success {
  color: #15803d;
}

.article-page {
  padding: 36px 0 10px;
}

.article-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.article-layout {
  width: auto;
  margin: 0;
  min-width: 0;
}

.talk-card {
  position: sticky;
  top: 92px;
  padding: 22px 20px 18px;
  border: 1px solid #e7edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 39, 86, 0.06);
}

.talk-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.talk-card h2 {
  margin-bottom: 18px;
  color: #1a2370;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.talk-field {
  margin-bottom: 14px;
}

.talk-field label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.talk-field label span {
  color: #ef4444;
}

.talk-field input,
.talk-field textarea {
  width: 100%;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #1a1f3c;
  font: inherit;
  font-size: 14px;
}

.talk-field input {
  height: 44px;
  padding: 0 14px;
}

.talk-field textarea {
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.talk-field input:focus,
.talk-field textarea:focus {
  border-color: #419bf2;
  box-shadow: 0 0 0 3px rgba(65, 155, 242, 0.16);
}

.talk-form button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #2563eb 0%, #4338ca 100%);
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.talk-form button:hover {
  filter: brightness(1.06);
}

.talk-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.talk-status.is-error {
  color: #dc2626;
}

.talk-status.is-success {
  color: #15803d;
}

.talk-card[hidden] {
  display: none;
}

.article-crumb {
  margin-bottom: 18px;
  color: #8b93a7;
  font-size: 13px;
}

.article-crumb a {
  color: #8b93a7;
  text-decoration: none;
}

.article-crumb a:hover {
  color: var(--sky);
}

.article-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f2ff;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 700;
}

#blog-article h1 {
  margin-bottom: 18px;
  color: #1a2370;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.article-byline .blog-avatar {
  width: 42px;
  height: 42px;
}

.article-byline strong {
  display: block;
  color: #1a2370;
  font-size: 14px;
}

.article-byline span {
  color: #8b93a7;
  font-size: 13px;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 28px;
  border-radius: 18px;
}

.article-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: #1d4ed8;
}

.article-body p,
.article-quote {
  margin-bottom: 18px;
  color: #3c465c;
  font-size: 16.5px;
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

.article-body h2,
.article-body h3 {
  margin: 32px 0 12px;
  color: #1a2370;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.article-list {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-list li {
  margin-bottom: 8px;
  color: #3c465c;
  font-size: 16.5px;
  line-height: 1.75;
  text-align: justify;
}

.article-table-wrap {
  margin: 8px 0 22px;
  overflow-x: auto;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: #fff;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.article-table th,
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  color: #3c465c;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: #1e2358;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table tbody tr:nth-child(even) td {
  background: #f7f9fc;
}

.article-body h2 {
  font-size: 30px;
}

.article-body h3 {
  font-size: 22px;
}

.article-quote {
  padding: 18px 22px;
  border-left: 4px solid #3ba7de;
  border-radius: 0 12px 12px 0;
  background: #e8f4ff;
  color: #1e293b;
  font-weight: 500;
}

.article-checklist {
  margin: 8px 0 22px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 39, 86, 0.05);
}

.article-checklist h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
}

.article-checklist ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
}

.article-checklist li::before {
  content: "✓";
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 22px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 39, 86, 0.05);
}

.article-stat {
  padding: 26px 16px 22px;
  text-align: center;
}

.article-stat + .article-stat {
  border-left: 1px solid #eef2f7;
}

.article-stat strong {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.article-stat span {
  color: #8b93a7;
  font-size: 13px;
  line-height: 1.4;
}

.related-wrap {
  padding: 18px 0 8px;
}

.related-wrap .blog-grid {
  margin-bottom: 8px;
}

.article-missing {
  padding: 48px 0 24px;
}

.article-missing h1 {
  margin-bottom: 16px;
  font-size: 36px;
}

.article-back {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

footer {
  background: #0f1235;
  padding: 30px 5% 36px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 15px;
  margin-bottom: 0;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand .powered-by {
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-brand .powered-by strong {
  color: var(--sky);
}

.footer-col h4 {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--sky);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--sky);
  text-decoration: none;
}

@media (max-width: 980px) {
  .blog-grid,
  .article-stats,
  .blog-subscribe-card {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .talk-card {
    position: static;
    order: 2;
  }

  #blog-article {
    order: 1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .blog-subscribe-card,
  .blog-listing,
  .article-shell,
  .related-wrap,
  .blog-subscribe-wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .blog-subscribe-card {
    padding: 28px 20px;
  }
}
