/* =====================================================
   Blog — page styles
   Shared tokens, base, navbar and footer live in css/shared.css
   ===================================================== */

/* Page-local aliases mapped to the shared design tokens */

:root {
  --blue: var(--primary);
  --blue-dark: var(--primary-dark);
  --purple: var(--accent);
  --violet: var(--accent);
  --black: #15171d;
  --black-soft: #252832;
  --ink: var(--dark);
  --ink-soft: #383b48;
  --muted-light: var(--muted-2);
  --primary-2: var(--primary);
  --shadow: var(--shadow-md);
}

/* HERO */
.hero {
  padding: 90px 0 60px;
}

.hero-grid {
  min-height: 485px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 75px;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  color: #606672;
  background: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 800;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(35,156,254,.09);
}

.hero h1 {
  margin-bottom: 17px;
  color: var(--black);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.28;
  letter-spacing: -1.5px;
  font-weight: 900;
}

.hero h1 span {
  position: relative;
  color: var(--blue);
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  border-radius: 50px;
  background: rgba(35,156,254,.12);
}

.hero-description {
  max-width: 600px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.25;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 800;
  transition: .25s ease;
}

.hero-button.primary {
  color: #fff;
  background: var(--black);
  box-shadow: 0 12px 25px rgba(18,21,29,.13);
}

.hero-button.secondary {
  color: #575c66;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
}

.hero-button:hover {
  transform: translateY(-2px);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(35,156,254,.16),
      rgba(35,156,254,.04) 48%,
      transparent 70%
    );
}

.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(35,156,254,.10);
}

.ring-1 {
  width: 400px;
  height: 400px;
}

.ring-2 {
  width: 310px;
  height: 310px;
  border-color: rgba(35,156,254,.08);
}

.featured-post {
  position: relative;
  z-index: 3;
  width: min(550px, 95%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  transform:
    perspective(1200px)
    rotateY(-4deg)
    rotateX(2deg);
}

.featured-image {
  position: relative;
  height: 245px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #0d1b2a,
      #173c59
    );
}

.featured-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(35,156,254,.36),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255,255,255,.05),
      transparent 33%
    );
}

.image-grid {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.image-dashboard {
  position: absolute;
  width: 73%;
  height: 150px;
  right: 13%;
  bottom: 27px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

.image-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-small {
  width: 48px;
  height: 7px;
  border-radius: 20px;
  background: #e3e7ed;
}

.dashboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.image-chart {
  height: 70px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f8fb;
}

.image-chart-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 18px,
      #e9edf2 19px
    );
}

.image-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  margin-top: 7px;
}

.image-metric {
  height: 23px;
  border-radius: 7px;
  background: #f4f6f8;
}

.featured-content {
  padding: 21px 23px 23px;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #989da6;
  font-size: 8px;
}

.featured-category {
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--blue-dark);
  background: #eef8ff;
  font-weight: 800;
}

.featured-content h2 {
  margin-bottom: 8px;
  color: #292c35;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 900;
}

.featured-content p {
  color: #888d97;
  font-size: 10px;
  line-height: 2;
}

.floating-stat {
  position: absolute;
  z-index: 5;
  padding: 13px 15px;
  border: 1px solid #fff;
  border-radius: 15px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-md);
  animation: floatCard 5s ease-in-out infinite;
}

.floating-stat.one {
  top: 58px;
  right: -5px;
}

.floating-stat.two {
  bottom: 51px;
  left: -4px;
  animation-delay: 1s;
}

.floating-stat small {
  display: block;
  margin-bottom: 4px;
  color: #9a9fa8;
  font-size: 7px;
}

.floating-stat strong {
  display: block;
  color: #2c3038;
  font-size: 16px;
  font-weight: 900;
}

.floating-stat em {
  display: block;
  margin-top: 3px;
  color: #28aa76;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

@keyframes floatCard {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* BLOG */
.blog-section {
  padding: 85px 0 110px;
  background: #fff;
}

.section-head {
  max-width: 740px;
  margin: 0 auto 43px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .4px;
}

.section-head h2 {
  margin-bottom: 12px;
  color: var(--black);
  font-size: clamp(31px,4vw,45px);
  line-height: 1.4;
  font-weight: 900;
}

.section-head p {
  font-size: 17px;
  line-height: 2.1;
  background-color: rgb(36, 33, 47);
  color: white;
  border-radius: 38px;
}

.category-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
}

.category-button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #e4e8ee;
  border-radius: 11px;
  color: #777c86;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  transition: .25s ease;
}

.category-button:hover,
    .category-button.active {
  color: #fff;
  background: var(--black);
  border-color: var(--black);
}

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

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: .3s ease;
}

.post-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.post-image {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,13,23,.18),
    transparent 55%
  );
}

.post-card:nth-child(1) .post-image {
  background:
    linear-gradient(
      135deg,
      #0b2032,
      #21638b
    );
}

.post-card:nth-child(2) .post-image {
  background:
    linear-gradient(
      135deg,
      #111923,
      #2e4761
    );
}

.post-card:nth-child(3) .post-image {
  background:
    linear-gradient(
      135deg,
      #09202a,
      #1c7380
    );
}

.post-card:nth-child(4) .post-image {
  background:
    linear-gradient(
      135deg,
      #10161f,
      #274563
    );
}

.post-card:nth-child(5) .post-image {
  background:
    linear-gradient(
      135deg,
      #0b1721,
      #1e5275
    );
}

.post-card:nth-child(6) .post-image {
  background:
    linear-gradient(
      135deg,
      #0f1924,
      #31506c
    );
}

.post-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
}

.post-shape.one {
  width: 230px;
  height: 230px;
  top: -110px;
  right: -45px;
}

.post-shape.two {
  width: 170px;
  height: 170px;
  bottom: -95px;
  left: -40px;
}

.post-mini-ui {
  position: absolute;
  width: 62%;
  height: 112px;
  right: 19%;
  top: 39px;
  z-index: 2;
  padding: 9px;
  border-radius: 13px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.post-mini-top {
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-line {
  width: 50%;
  height: 6px;
  border-radius: 20px;
  background: #dce2e8;
}

.post-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.post-mini-bars {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.post-mini-bars span {
  height: 24px;
  border-radius: 6px;
  background: #eef2f5;
}

.post-mini-chart {
  height: 42px;
  border-radius: 7px;
  background:
    linear-gradient(
      180deg,
      #edf6fc,
      #fafbfc
    );
  position: relative;
  overflow: hidden;
}

.post-mini-chart svg {
  width: 100%;
  height: 100%;
}

.post-content {
  padding: 20px 20px 22px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #a0a4ac;
  font-size: 8px;
}

.post-category {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--blue-dark);
  background: #eef8ff;
  font-size: 7px;
  font-weight: 800;
}

.post-content h3 {
  min-height: 54px;
  margin-bottom: 8px;
  color: #2d3038;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 900;
}

.post-content p {
  min-height: 49px;
  margin-bottom: 15px;
  color: #8b9099;
  font-size: 9px;
  line-height: 2;
}

.post-footer {
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eff2f5;
}

.read-more {
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 800;
}

.read-time {
  color: #a3a7ae;
  font-size: 8px;
}

/* FEATURED TOPICS */
.topics {
  padding: 110px 0;
  background:
    linear-gradient(
      180deg,
      var(--bg),
      #eef4f9
    );
}

.topics-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.topic-main,
    .topic-side {
  border-radius: 24px;
  overflow: hidden;
  min-height: 310px;
  position: relative;
}

.topic-main {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(35,156,254,.22),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #15171d,
      #252c37
    );
}

.topic-main::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(35,156,254,.14);
  border-radius: 50%;
  top: -130px;
  left: -80px;
}

.topic-main-content {
  position: relative;
  z-index: 2;
}

.topic-label {
  display: inline-block;
  margin-bottom: 11px;
  color: #8bcfff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .5px;
}

.topic-main h3 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(25px,3vw,35px);
  line-height: 1.55;
  font-weight: 900;
}

.topic-main p {
  max-width: 570px;
  color: #b7bdc8;
  font-size: 11px;
  line-height: 2.1;
}

.topic-side {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.topic-side-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 19px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--blue),
      #177bca
    );
  font-size: 22px;
  font-weight: 900;
}

.topic-side h3 {
  margin-bottom: 10px;
  color: #30333c;
  font-size: 21px;
  font-weight: 900;
}

.topic-side p {
  color: #858a94;
  font-size: 11px;
  line-height: 2.1;
}

.topic-side-link {
  margin-top: 20px;
  width: max-content;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
}

/* NEWSLETTER */
.newsletter {
  padding: 100px 0;
  background: #fff;
}

.newsletter-box {
  position: relative;
  overflow: hidden;
  padding: 55px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(35,156,254,.17),
      transparent 28%
    ),
    var(--black);
}

.newsletter-box::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  top: -190px;
  right: -70px;
}

.newsletter-text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.newsletter-text h2 {
  margin-bottom: 9px;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 900;
}

.newsletter-text p {
  color: #afb4bf;
  font-size: 11px;
  line-height: 2;
}

.newsletter-form {
  position: relative;
  z-index: 1;
  min-width: 370px;
  display: flex;
  gap: 7px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  font-size: 10px;
}

.newsletter-form input::placeholder {
  color: #898f9c;
}

.newsletter-form button {
  min-width: 108px;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 1000px) {

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
}

  .hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

  .hero-description {
    margin-left: auto;
    margin-right: auto;
}

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

  .hero-visual {
    min-height: 470px;
}

  .blog-grid {
    grid-template-columns: repeat(2,1fr);
}

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

  .newsletter-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

  .newsletter-text {
    max-width: 700px;
    margin: 0 auto;
}

  .newsletter-form {
    min-width: 0;
    width: min(500px,100%);
    margin: 0 auto;
}

}

@media (max-width: 850px) {

  .hero {
    padding-top: 65px;
}

}

@media (max-width: 650px) {

  .hero h1 {
    font-size: 39px;
}

  .hero-description {
    font-size: 13px;
}

  .hero-actions {
    flex-direction: column;
}

  .hero-button {
    width: 100%;
}

  .hero-visual {
    min-height: 375px;
}

  .visual-glow {
    width: 310px;
    height: 310px;
}

  .ring-1 {
    width: 310px;
    height: 310px;
}

  .ring-2 {
    width: 230px;
    height: 230px;
}

  .featured-post {
    width: 96%;
    transform: none;
}

  .featured-image {
    height: 175px;
}

  .image-dashboard {
    height: 105px;
    bottom: 21px;
}

  .image-chart {
    height: 49px;
}

  .featured-content {
    padding: 17px;
}

  .featured-content h2 {
    font-size: 15px;
}

  .floating-stat.one {
    right: 0;
    top: 0;
}

  .floating-stat.two {
    left: 0;
    bottom: 8px;
}

  .floating-stat {
    padding: 10px;
}

  .floating-stat strong {
    font-size: 13px;
}

  .blog-section,
      .topics,
      .newsletter {
    padding: 75px 0;
}

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

  .post-image {
    height: 210px;
}

  .topic-main {
    padding: 27px;
}

  .topic-side {
    padding: 26px;
}

  .newsletter-box {
    padding: 40px 20px;
    border-radius: 23px;
}

  .newsletter-form {
    flex-direction: column;
    background: transparent;
    border: 0;
    padding: 0;
}

  .newsletter-form input {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
}

  .newsletter-form button {
    min-height: 44px;
}

}

@media (max-width: 440px) {

  .hero h1 {
    font-size: 34px;
}

  .featured-image {
    height: 155px;
}

  .image-dashboard {
    width: 74%;
    right: 13%;
    height: 91px;
}

  .featured-content h2 {
    font-size: 14px;
}

  .featured-content p {
    font-size: 8px;
}

  .post-image {
    height: 180px;
}

}

@media (prefers-reduced-motion: reduce) {

  .reveal,
      .floating-stat,
      .post-card,
      .hero-button {
    animation: none !important;
    transition: none !important;
}

}
