/* valdi.ai — one hand-written stylesheet. Colors and sizes are from the
   Webflow site's CSS; class names are ours. */
:root {
  --navy: #121331;
  --indigo: #191c47;
  --ink: #0a0b22;
  --black: #050511;
  --card: #2a2c6e;
  --card-line: #55568c;
  --cyan: #2adffd;
  --purple: #a022f0;
  --pink: #fa2184;
  --text: #ffffffd6;
  --muted: #ffffff86;
  --link: #63b2fb;
  --grad: linear-gradient(90deg, var(--purple), var(--pink));
  /* Buttons end on a slightly deeper pink so white labels stay at 4.5:1. */
  --btn-grad: linear-gradient(90deg, var(--purple), #e3056a);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 300 14px/20px Inter, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, h4 { color: #fff; font-weight: 800; margin: 20px 0 10px; }
h1 { font-size: 38px; line-height: 44px; font-weight: 700; }
h2 { font-size: 32px; line-height: 36px; font-weight: 700; }
h3 { font-size: 24px; line-height: 30px; }
h4 { font-size: 18px; line-height: 24px; }
p { margin: 0 0 10px; }

.wrap { max-width: 1073px; margin: 0 auto; padding: 0 20px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons: a 1px gradient frame around a filled label. */
.btn {
  display: inline-block;
  padding: 1px;
  border-radius: 7px;
  background: var(--btn-grad);
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}
.btn span { display: block; padding: 9px 30px; border-radius: 7px; }
.btn-outline { background: linear-gradient(90deg, #2ddffd, #a021f1); }
.btn-outline span { background: #1f1744; }
.btn-large span { padding: 14px 34px; font-size: 16px; font-weight: 500; }
.btn:hover span { filter: brightness(1.1); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--navy); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.nav-logo img { display: block; width: 150px; }
.nav-menu { display: flex; align-items: center; flex: 1; }
.nav-link {
  color: #fff;
  font: 300 14px/20px Inter, sans-serif;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
}
.nav-menu > .nav-link, .nav-drop { margin-left: 50px; }
.nav-menu > .nav-drop { margin-left: auto; }
.nav-link.current { border-bottom-color: #30ddfd; }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }
.nav-drop { position: relative; }
.nav-drop-toggle::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 0 3px 10px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  width: 320px;
  padding: 10px 20px;
  background: var(--navy);
  border-radius: 0 0 8px 8px;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { display: block; }
.nav-entry { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: #94a1c5; font-size: 13px; text-decoration: none; }
.nav-entry img { width: 17px; }
.nav-entry strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 991px) {
  .nav-burger { display: block; width: 28px; height: 20px; position: relative; cursor: pointer; }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff;
  }
  .nav-burger::before { top: 0; }
  .nav-burger span { top: 9px; }
  .nav-burger::after { bottom: 0; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    background: var(--navy);
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-menu > .nav-link, .nav-menu > .nav-drop { margin: 0; padding: 12px 0; font-size: 16px; }
  .nav-drop-toggle { font-size: 16px; }
  .nav-panel { display: block; position: static; width: auto; padding: 0 0 0 10px; }
  .nav-actions { margin: 12px 0 0; }
}

/* Hero */
.hero {
  background: var(--indigo) url(img/circuit-background.svg) 0 0 / cover;
  padding: 60px 0;
}
.hero-tall { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; }
.hero-title { margin: 30px 0; font-size: 88px; line-height: 111px; font-weight: 800; }
.hero-title span { display: block; }
.lead { max-width: 670px; margin: 0 0 40px; color: #fff; font: 300 25.6px/41px Inter, sans-serif; }
.logos {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: 16px 30px;
  align-items: center;
  margin-top: 80px;
}
.logos img { height: 47px; width: auto; }

/* Bands */
.band { background: var(--indigo); padding: 60px 0 80px; }
.band-dark { background: var(--ink); }
.h2 { margin: 20px 0 10px; color: var(--cyan); font-size: 45px; line-height: 54px; font-weight: 800; }
.h2.grad { line-height: 60px; }
.h2.white { color: #fff; }
.intro { max-width: 670px; color: #fff; font-size: 20px; line-height: 30px; font-weight: 300; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin-top: 40px; text-align: left; }
.feature {
  display: grid;
  grid-template-columns: .5fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.feature img { max-height: 150px; justify-self: center; }
.feature h3 { margin: 0 0 10px; color: var(--cyan); font-size: 22px; }
.feature p, .gpu p { color: #fff; font-size: 15px; font-weight: 200; letter-spacing: .5px; }

.gpu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 40px 0;
  border-bottom: 1px solid #444875;
  text-align: left;
}
.gpu-img { text-align: center; }
.gpu-img img { max-width: 320px; max-height: 264px; width: auto; }
.gpu h3 { margin-top: 0; font-size: 20px; }
.gpu .btn { margin-top: 10px; font-size: 14px; }

.cta { padding-top: 140px; }
.cta-img { width: 100%; max-width: 500px; margin: 10px 0 40px; }

/* Blog listing */
.list-title { margin: 0 0 20px; font-size: 22px; font-weight: 200; }
.blog-list { padding-top: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #202249;
  border: 1px solid #40417a;
  border-radius: 10px;
  text-decoration: none;
}
.card img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card-text { display: flex; flex-direction: column; padding: 20px; }
.card-date { color: var(--muted); font-size: 12px; line-height: 26px; }
.card-title { color: #fff; font-size: 16px; line-height: 26px; font-weight: 800; }

/* Post */
.post { max-width: 1080px; margin: 0 auto; padding: 40px 20px; background: var(--black); }
main:has(.post) { background: var(--black); }
.post h1 { margin: 20px 0 10px; font-size: 38px; line-height: 44px; font-weight: 800; }
.post-hero { display: block; width: 100%; border-radius: 20px; }
.notice {
  margin: 20px 0;
  padding: 14px 20px;
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--pink);
  border-radius: 10px;
  background: var(--card);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
}
.prose { padding-top: 40px; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 40px; }
.prose ul, .prose ol { margin: 0 0 10px; padding-left: 40px; font-weight: 200; }
.prose ol { color: #fff; }
.prose img { display: block; margin: 20px auto; }
.prose figure { margin: 20px 0; text-align: center; }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: 5px; color: var(--muted); }
.prose blockquote { margin: 0 0 10px; padding: 10px 20px; border-left: 5px solid #e2e2e2; color: #fff; font-size: 18px; line-height: 22px; font-weight: 200; }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 20px 0; border: 0; }
.prose table { width: 100%; margin: 0 0 20px; border-collapse: collapse; }
.prose td { padding: 5px 10px 5px 0; vertical-align: top; }
.prose tr:first-child td { color: #fff; font-weight: 400; }
.prose th, .prose table:has(thead) td { padding: 10px 5px; border: 1px solid #242933; color: #fff; text-align: left; }
.prose th { font-weight: 700; text-align: center; }
.prose table:has(thead) { display: block; overflow-x: auto; }
.prose table:has(thead) tr:first-child td { font-weight: 300; }
.prose hr { margin: 30px 0; border: 0; border-top: 1px solid #384d86; }
.prose code { color: #fff; font-size: 13px; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--ink); padding: 60px 0 80px; }
.footer-grid { display: grid; grid-template-columns: 1fr .5fr; gap: 16px; }
.footer-logo { width: 200px; }
.copyright { margin-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.social { display: flex; gap: 10px; margin-top: 30px; }
.social a {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer-cols > div { display: flex; flex-direction: column; }
.footer-cols h2 { margin: 0 0 10px; font-size: 14px; line-height: 20px; font-weight: 800; }
.footer-cols a { margin-bottom: 10px; color: #8e97b1; font-size: 13px; text-decoration: none; }
.footer-cols a:hover { color: #fff; }

@media (max-width: 991px) {
  .hero-title { font-size: 60px; line-height: 76px; }
  .logos { grid-template-columns: repeat(3, auto); }
  .cards { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature img { justify-self: start; max-height: 80px; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 40px; line-height: 50px; }
  .lead { font-size: 20px; line-height: 32px; }
  .logos { grid-template-columns: 1fr 1fr; }
  .h2 { font-size: 27px; line-height: 36px; }
  .h2.grad { line-height: 36px; }
  .features, .gpu, .cards, .footer-grid { grid-template-columns: 1fr; }
  .gpu-img img { max-width: 250px; }
  .cta { padding-top: 60px; }
  .footer-grid { gap: 40px; }
  .post h1 { font-size: 30px; line-height: 36px; }
}
@media (max-width: 479px) {
  .hero-title { font-size: 32px; line-height: 40px; }
}
