* {
  box-sizing: border-box;
}

:root {
  --blue: #0866f5;
  --navy: #071b3b;
  --text: #111827;
  --muted: #788394;
  --green: #17a86b;
  --border: #e8edf4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-container {
  width: min(100% - 36px, 1200px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 850;
  letter-spacing: -1px;
}

.brand {
  color: #080d18;
}

.brand img,
.footer-brand .logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-highlight {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #17345f;
  cursor: pointer;
}

.icon-btn:hover {
  background: #f2f6fc;
}

.icon-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Search */
.search-bar {
  display: none;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 14px 18px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.search-bar.is-open,
.search-bar.open {
  display: flex;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  outline: none;
  font: inherit;
}

.search-bar input:focus {
  border-color: var(--blue);
}

.search-bar button {
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile navigation */
.mobile-menu {
  display: none;
  padding: 10px 18px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.is-open,
.mobile-menu.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  color: #344256;
  font-size: 14px;
}

.mobile-menu a:hover {
  background: #f1f5fb;
  color: var(--blue);
}

/* Main layout */
main {
  width: min(100% - 36px, 1000px);
  margin: 24px auto 56px;
}

/* Hero */
.hero {
  min-height: 320px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, #147df5 0, transparent 25%),
    radial-gradient(circle at 75% 100%, #063b9c 0, transparent 42%),
    linear-gradient(115deg, #03132e, #062d68 60%, #020d22);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  background-image:
    linear-gradient(#69b9ff 1px, transparent 1px),
    linear-gradient(90deg, #69b9ff 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 58%;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #7fd7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  max-width: 460px;
  margin: 0 0 22px;
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.12;
  letter-spacing: -0.8px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 19px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 8px 22px #0066ff44;
}

.read-more:hover {
  background: #3282ff;
}

.hero-art {
  position: absolute;
  inset: 0 0 0 48%;
  overflow: hidden;
}

.glow {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: #008bff;
  filter: blur(65px);
  opacity: 0.5;
}

.laptop {
  position: absolute;
  top: 25%;
  right: 12%;
  width: min(44%, 260px);
  height: 160px;
  transform: perspective(650px) rotateY(-12deg) rotateZ(-3deg);
}

.laptop-screen {
  position: absolute;
  inset: 0 0 13px;
  display: grid;
  place-items: center;
  border: 7px solid #0a1831;
  border-radius: 12px;
  background: linear-gradient(145deg, #123f83, #04152f);
  box-shadow: inset 0 0 30px #00aaff33, 0 15px 40px #0008;
}

.laptop-screen span {
  color: #39d9ff;
  font-size: clamp(45px, 6vw, 78px);
  font-weight: 900;
  text-shadow: 0 0 24px #00aaff99;
}

.laptop-base {
  position: absolute;
  left: -9%;
  right: -9%;
  bottom: -1px;
  height: 13px;
  background: linear-gradient(#9cb8d8, #334b6c 60%, #142744);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  border-radius: 0 0 9px 9px;
}

.code-mark {
  position: absolute;
  top: 16%;
  right: 5%;
  color: #4b9fff;
  font-size: 24px;
  font-weight: 800;
  opacity: 0.7;
}

.spark {
  position: absolute;
  color: #62dfff;
  font-size: 27px;
}

.spark-one {
  top: 12%;
  right: 15%;
}

.spark-two {
  right: 8%;
  bottom: 18%;
  font-size: 36px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 15px 0 27px;
}

.slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd0d8;
}

.slider-dots .active {
  background: var(--blue);
}

/* Article section and cards */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -0.5px;
}

.section-heading > a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

.article-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

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

/* Images fill the complete thumbnail */
.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-info {
  min-width: 0;
}

.category {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 650;
}

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

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

.article-info h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.25px;
}

.article-info h3 a:hover {
  color: var(--blue);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.no-results {
  padding: 20px 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 48px 7% 0;
  background: #0b1930;
  color: #d1d9e6;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 45px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 35px;
}

.footer-brand .logo {
  color: #fff;
  font-size: 23px;
  letter-spacing: -0.5px;
}

.logo-highlight {
  color: #60a5fa;
}

.footer-brand > p {
  max-width: 360px;
  margin-top: 16px;
  color: #b8c4d6;
  font-size: 15px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links h3 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 16px;
}

.footer-links a {
  color: #b8c4d6;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid #29374b;
}

.footer-bottom p {
  margin: 0;
  color: #9eacc0;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 700px) {
  .header-container {
    min-height: 64px;
  }

  .brand {
    gap: 8px;
    font-size: 22px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .search-bar {
    padding: 12px 18px;
  }

  .search-bar button {
    padding: 0 14px;
  }

  .mobile-menu {
    padding: 8px 12px 14px;
  }

  main {
    margin-top: 18px;
    margin-bottom: 42px;
  }

  .hero {
    min-height: 255px;
    padding: 22px 19px;
    border-radius: 12px;
    align-items: flex-start;
  }

  .hero-copy {
    width: 75%;
    align-self: center;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .hero h1 {
    margin-bottom: 17px;
    font-size: clamp(24px, 6.3vw, 31px);
  }

  .read-more {
    padding: 10px 14px;
    font-size: 12px;
  }

  .hero-art {
    left: 38%;
    opacity: 0.75;
  }

  .laptop {
    top: 32%;
    right: 4%;
    width: 57%;
    height: 105px;
  }

  .laptop-screen {
    border-width: 5px;
    border-radius: 8px;
  }

  .laptop-base {
    height: 9px;
  }

  .code-mark {
    right: 4%;
    font-size: 17px;
  }

  .spark-one {
    right: 11%;
  }

  .spark-two {
    right: 1%;
  }

  .slider-dots {
    padding: 13px 0 23px;
  }

  .section-heading {
    margin-bottom: 15px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .section-heading > a {
    font-size: 13px;
  }

  .article-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-card {
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 12px;
  }

  .thumb {
    border-radius: 8px;
  }

  .article-info h3 {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.25;
  }

  .category {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .article-meta {
    font-size: 11px;
  }

  .site-footer {
    padding: 35px 6% 0;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .header-container {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 20px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-btn {
    width: 35px;
    height: 35px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .read-more,
  .icon-btn,
  .mobile-menu a,
  .article-info h3 a {
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  }
}
