/* ============================================================================
   Virto brand styles for docs-hugo
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Ubuntu:wght@400;500;600;700;800&display=swap");

:root {
  --vs-accent:        #5C65F5;
  --vs-accent-hover:  #4a52d1;
  --vs-deep:          #29285E;
  --vs-footer:        #0C093A;
  --vs-bg-page:       #F8FAFD;     /* page background — slight blue tint */
  --vs-bg-soft:       #F0F3FF;     /* cards/tile backgrounds */
  --vs-bg-grad-1:     #DDEBF7;
  --vs-bg-grad-2:     #F2F8FD;
  --vs-text:          #1F1F1F;
  --vs-text-muted:    #8C8C8C;
  --vs-text-hover:    #79788B;
  --vs-border:        #D9D9D9;
  --vs-card-bg:       #FFFFFF;

  --vs-font-heading: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vs-font-body:    "Ubuntu", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --vs-radius-card:  24px;
  --vs-radius-btn:   8px;
  --vs-radius-pill:  999px;
  --vs-radius-soft:  7px;
  --vs-shadow-card:  0 0 34px -16px rgba(0, 0, 0, 0.21);

  --color-link: var(--vs-accent);
  --body-font-family: var(--vs-font-body);
}

body { font-family: var(--vs-font-body); color: var(--vs-text); margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--vs-font-heading); }

/* ============================================================================
   HEADER
   ============================================================================ */
.vs-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--vs-border);
}
.vs-header__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
}
.vs-header__logo img { display: block; height: 40px; width: auto; }

.vs-nav { flex: 1; }
.vs-nav__list {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
.vs-nav__item { position: relative; }
.vs-nav__link {
  color: var(--vs-text); text-decoration: none; font-weight: 500;
  font-family: var(--vs-font-heading);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0;
  transition: color 0.2s ease;
}
.vs-nav__link:hover { color: var(--vs-accent); }
.vs-nav__caret { font-size: .8em; }

.vs-nav__submenu {
  position: absolute; top: 100%; left: 0;
  display: none; min-width: 260px; padding: 8px 0;
  background: #fff; border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-btn); box-shadow: var(--vs-shadow-card);
  list-style: none; margin: 0;
}
.vs-nav__submenu li a {
  display: block; padding: 10px 16px;
  color: var(--vs-text); text-decoration: none; font-size: .95rem;
  font-family: var(--vs-font-heading);
}
.vs-nav__submenu li a:hover { background: var(--vs-bg-soft); color: var(--vs-accent); }
.vs-nav__item.has-submenu:hover .vs-nav__submenu,
.vs-nav__item.has-submenu:focus-within .vs-nav__submenu { display: block; }

.vs-cta {
  background: var(--vs-accent); color: #fff;
  padding: 12px 24px; border-radius: var(--vs-radius-btn);
  text-decoration: none; font-weight: 500;
  font-family: var(--vs-font-heading);
  transition: background .15s ease;
}
.vs-cta:hover { background: var(--vs-accent-hover); color: #fff; }

/* ============================================================================
   LANDING
   ============================================================================ */
.vs-landing { background: var(--vs-bg-page); padding: 0; }

.vs-hero {
  background: linear-gradient(169deg, var(--vs-bg-grad-1) 34%, var(--vs-bg-grad-2) 62%);
  padding: 100px 24px 70px;
}
.vs-hero > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.vs-hero { text-align: center; }
.vs-hero h1 {
  text-align: center !important;
  font-size: 46px; font-weight: 800; line-height: 70px;
  margin: 0 auto 12px; color: #000;
  word-spacing: 5px;
}
.vs-hero p {
  color: #1F1F1F; max-width: 640px;
  margin: 0 auto 32px; font-size: 15px; line-height: 24px;
  font-family: "Roboto", sans-serif;
}
.vs-hero__search {
  display: flex; gap: 12px; max-width: 640px; margin: 0 auto;
}
.vs-hero__search input {
  flex: 1; padding: 14px 18px; border: 0;
  border-radius: var(--vs-radius-btn); background: #fff; font-size: 1rem;
  font-family: var(--vs-font-body);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.vs-hero__search input:focus { outline: 2px solid var(--vs-accent); }
.vs-hero__search button {
  padding: 0 18px; border: 0; border-radius: var(--vs-radius-btn);
  background: var(--vs-accent); color: #fff; cursor: pointer;
  font-size: 1rem; min-width: 54px;
  font-family: var(--vs-font-heading); font-weight: 500;
  transition: background .15s ease;
}
.vs-hero__search button:hover { background: var(--vs-accent-hover); }

.vs-platform {
  max-width: 1140px; margin: 0 auto; padding: 48px 24px 24px;
}
.vs-platform__title {
  font-size: 24px; font-weight: 700; line-height: 36px;
  margin: 0 0 24px; color: #000;
}
.vs-platform__seeall { text-align: center; margin: 24px 0 0; }
.vs-platform__seeall a {
  color: var(--vs-deep); text-decoration: underline;
  font-family: var(--vs-font-heading); font-weight: 500;
  font-size: 15px;
}
.vs-platform__seeall a:hover { color: var(--vs-text-hover); }

.vs-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.vs-card {
  background: var(--vs-card-bg);
  border-radius: var(--vs-radius-card);
  padding: 32px 24px;
  box-shadow: var(--vs-shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.vs-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: transparent;
}
.vs-card__icon img { width: 80px; height: 80px; }
.vs-card__title {
  margin: 12px 0 0; font-size: 20px; font-weight: 600; line-height: 30px;
}
.vs-card__title a { color: #1F1F1F; text-decoration: none; }
.vs-card__title a:hover { color: var(--vs-accent); }
.vs-card__sub {
  color: var(--vs-text-muted); margin: 0 0 8px;
  font-size: 16px; line-height: 24px;
  font-style: italic;
  border-bottom: 1px solid var(--vs-border); padding-bottom: 12px;
}
.vs-card__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vs-card__links li {
  background: var(--vs-bg-soft);
  border-radius: var(--vs-radius-soft);
  padding: 0;
}
.vs-card__links a {
  display: block; padding: 12px 16px;
  color: #1F1F1F; text-decoration: none;
  font-size: 16px; line-height: 24px;
  font-family: var(--vs-font-heading);
}
.vs-card__links a:hover { color: var(--vs-accent); }

/* Info tiles (Guides / Privacy / Support / Release Notes) */
.vs-infotiles {
  max-width: 1140px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; padding: 0 24px;
}
.vs-infotile {
  background: var(--vs-bg-soft);
  border-radius: var(--vs-radius-card);
  padding: 32px 24px;
  text-decoration: none; color: var(--vs-text);
  transition: background 0.3s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.vs-infotile:hover { background: #FAFAFA; }
.vs-infotile__icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
}
.vs-infotile__icon svg {
  width: 40px; height: 40px;
  color: var(--vs-accent);
}
.vs-infotile h3 {
  margin: 4px 0 8px; font-size: 20px; font-weight: 600; line-height: 30px;
  color: #1F1F1F;
}
.vs-infotile p {
  margin: 0; color: var(--vs-text-muted);
  font-size: 16px; line-height: 24px;
  font-family: var(--vs-font-heading);
}

/* Bottom CTA block ("Have questions?") */
.vs-cta-block {
  background: #19145C; color: #fff;
  margin: 64px 0 0;
  padding: 56px 24px;
  text-align: center;
}
.vs-cta-block h2 {
  margin: 0 0 12px; font-weight: 600; font-size: 28px;
  color: #fff;
}
.vs-cta-block p  { margin: 0 0 24px; opacity: .9; font-size: 16px; }
.vs-cta-block__btn {
  display: inline-block; background: #fff; color: var(--vs-accent);
  padding: 14px 32px; border-radius: var(--vs-radius-btn);
  text-decoration: none; font-weight: 600;
  font-family: var(--vs-font-heading);
  transition: background .15s ease;
}
.vs-cta-block__btn:hover { background: var(--vs-bg-soft); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.vs-footer {
  background: #0C093F; color: #fff;
  padding: 48px 24px 24px;
}
.vs-footer__inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px;
  align-items: center;
}
.vs-footer__logo { height: 40px; width: auto; display: block; }
.vs-footer__nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  justify-content: center;
}
.vs-footer__nav a {
  color: #fff; text-decoration: none;
  font-family: var(--vs-font-heading); font-size: 14px;
  opacity: .85;
}
.vs-footer__nav a:hover { opacity: 1; text-decoration: underline; }
.vs-footer__social {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px;
}
.vs-footer__social a {
  color: #fff; opacity: .85; text-decoration: none;
  font-family: var(--vs-font-heading); font-size: 14px;
}
.vs-footer__social a:hover { opacity: 1; }
.vs-footer__copy {
  grid-column: 1 / -1; text-align: center;
  opacity: .7; font-size: 13px; padding-top: 24px; margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--vs-font-heading);
}

/* ============================================================================
   ARTICLE TWEAKS
   ============================================================================ */
article.book-page table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--vs-font-body);
}
article.book-page table th,
article.book-page table td {
  border: 1px solid var(--vs-border);
  padding: 10px 14px;
  font-size: 15px;
}
article.book-page table thead th {
  background: var(--vs-bg-soft);
  font-weight: 600;
}
article.book-page h1,
article.book-page h2,
article.book-page h3 { font-family: var(--vs-font-heading); }
article.book-page a { color: var(--vs-accent); }
article.book-page a:hover { color: var(--vs-accent-hover); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .vs-hero h1 { font-size: 36px; line-height: 48px; }
  .vs-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .vs-header__inner { gap: 16px; }
  .vs-nav__list { gap: 1rem; }
  .vs-cta { padding: 10px 18px; font-size: .9rem; }
}
@media (max-width: 700px) {
  .vs-nav { display: none; }
  .vs-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .vs-footer__nav ul, .vs-footer__social { justify-content: center; }
  .vs-hero { padding: 60px 24px 40px; }
  .vs-hero h1 { font-size: 32px; line-height: 40px; word-spacing: normal; }
}
