:root {
  --bg: #131313;
  --surface: #2c2b2b;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-nav {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 40px;
}

.nav-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-nav.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.top-nav.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.top-nav.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-pill {
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 18px;
}

.nav-links {
  display: flex;
  gap: 10px;
  width: fit-content;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.nav-links a.is-active,
.nav-links a:hover {
  color: #fff;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  min-width: 140px;
}

.brand-pill img {
  display: none;
}

.brand-pill span {
  font-size: 14px;
}

.talk-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 10px 27px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.blogs-header {
  margin-top: 138px;
  display: grid;
  grid-template-columns: 1fr 331px;
  gap: 48px;
  align-items: center;
}

.blogs-header h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  max-width: 548px;
}

.blogs-header p {
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.blogs-grid {
  margin-top: 34px;
  margin-bottom: 90px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blogs-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: var(--muted);
  font-family: var(--font-mono, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: var(--text-base, 14px);
}

.blog-card {
  display: block;
  border: 1px dashed var(--border);
  overflow: hidden;
  background: #161616;
}

.blog-card img {
  width: 100%;
  height: 214px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 22px 20px 18px;
}

.blog-card-content h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.14;
}

.blog-card-content p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.64;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.read-tag {
  display: inline-block;
  background: rgba(192, 188, 188, 0.12);
  padding: 6px 11px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--muted);
}

.cta {
  min-height: 591px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.cta-overlay {
  position: absolute;
  inset: 0;
}

.cta-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px 68px;
}

.cta-content h2 {
  margin: 0 0 16px;
  font-family: "Newsreader", serif;
  font-size: 60px;
  line-height: 1;
  max-width: 703px;
}

.cta-content p {
  margin: 0;
  max-width: 703px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 18px;
  line-height: 1.45;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 999px;
}

.cta-btn {
  min-width: 161px;
  height: 51px;
  font-size: 32px;
  font-family: "Newsreader", serif;
}

.footer {
  padding: 70px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.footer-card {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  min-height: 220px;
  height: 100%;
  padding: 66px 20px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-sizing: border-box;
}

.card-corners img {
  width: 7px;
  height: 7px;
  position: absolute;
}

.card-corners img:nth-child(1) {
  top: -1px;
  left: -1px;
}
.card-corners img:nth-child(2) {
  top: -1px;
  right: -1px;
}
.card-corners img:nth-child(3) {
  bottom: -1px;
  left: -1px;
}
.card-corners img:nth-child(4) {
  bottom: -1px;
  right: -1px;
}

.footer-card small {
  display: block;
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-card h3 {
  margin: 0;
  font-family: "Noto Serif", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.footer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.35;
}

.footer-brand {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 222px;
}

.chip {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1a1614;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f4f4e7;
}

.legal {
  max-width: 222px;
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.brand-lockup {
  text-align: center;
  flex-shrink: 0;
}

.brand-lockup img {
  width: 79px;
  height: 69px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.brand-lockup span {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .blogs-header {
    margin-top: 72px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .blogs-header h1 {
    font-size: 44px;
    margin: 0 auto;
  }

  .blogs-header p {
    margin: 0 auto;
    max-width: 620px;
  }

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

  .cta-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 56px;
  }

  .cta-content h2 {
    font-size: 48px;
  }

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

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-card,
  .footer-brand {
    min-height: 200px;
    padding: 40px 20px 32px;
  }
}

@media (max-width: 900px) {
  .top-nav {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-top: 20px;
  }

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

  .brand-pill {
    min-width: 0;
    padding: 10px 16px;
  }

  .talk-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    width: auto;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(28, 28, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

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

  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .blog-card-content h2 {
    font-size: 24px;
  }

  .cta-content h2 {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .blogs-header {
    margin-top: 48px;
  }

  .blogs-header h1 {
    font-size: 34px;
  }

  .talk-btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .nav-links {
    left: 16px;
    right: 16px;
  }

  .cta {
    min-height: 420px;
  }

  .cta-content h2 {
    font-size: 30px;
  }

  .cta-btn {
    min-width: 140px;
    font-size: 16px;
    height: 46px;
  }

  .footer {
    padding: 40px 0;
  }
}
