/* Verifiable Intent — Brand Theme
   Neutral dark chrome with semantic layer color accents.
   Palette aligned to visuals/color-ref.JPG.
   L1 Green #8CBA2D  |  L2 Teal #4FCCAF  |  L3 Gold #F28C00 */

/* ── Brand Colors (Dark Only) ── */
:root > * {
  /* Header/nav background — must be dark */
  --md-primary-fg-color:        #1a1a1a;
  --md-primary-fg-color--light: #2a2a2a;
  --md-primary-fg-color--dark:  #0D0D0D;
  --md-accent-fg-color:         #E87600;
  --md-default-bg-color:        #0D0D0D;
  --md-default-bg-color--light: #161616;
  --md-hue: 0;

  /* VI semantic layer colors */
  --vi-l1: #A3D940;
  --vi-l2: #5EECC6;
  --vi-l3: #FFA020;
  --vi-cta: #E87600;
  --vi-brand: #FF661C;
  --vi-l1-text: #A3D940;
  --vi-l2-text: #5EECC6;
  --vi-l3-text: #FFA020;
}

/* ── Links — brighter for dark background readability ── */
.md-typeset a {
  color: #E87600;
}

.md-typeset a:hover {
  color: #F0A559;
}

/* ── Hero Section ── */
.vi-hero {
  padding: 2rem 2rem 3rem;
  text-align: center;
  background: #0a0a0a;
  color: #e8e8ed;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vi-hero__logo {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}

.vi-hero__logo img {
  width: 200px;
  height: 200px;
}

h1.vi-hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #FF661C;
}

.vi-hero__tagline {
  font-size: 1.2rem;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  color: #888;
}

.vi-hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  color: #666;
}

.vi-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.vi-hero__actions .md-button {
  border-radius: 0.25rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.vi-hero__actions .md-button--primary {
  background-color: var(--vi-cta);
  border-color: var(--vi-cta);
  color: #0a0a0a;
}

.vi-hero__actions .md-button--primary:hover {
  background-color: #F0A559;
  border-color: #F0A559;
}

.vi-hero__actions .md-button--secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #999;
}

.vi-hero__actions .md-button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #e8e8ed;
}

/* ── Traditional vs Agentic Commerce ── */
.vi-compare {
  padding: 3rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Column headers ── */
.vi-compare__headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0 1.25rem;
}

.vi-compare__header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
}

.vi-compare__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Row layer color system ── */
.vi-compare__row--l1 { --row-color: var(--vi-l1); --row-rgb: 163, 217, 64; }
.vi-compare__row--l2 { --row-color: var(--vi-l2); --row-rgb: 94, 236, 198; }
.vi-compare__row--l3 { --row-color: var(--vi-l3); --row-rgb: 255, 160, 32; }
.vi-compare__row--brand { --row-color: var(--vi-brand); --row-rgb: 255, 102, 28; }

/* ── Row card ── */
.vi-compare__row {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s;
}

.vi-compare__row[data-open] {
  border-color: rgba(var(--row-rgb), 0.15);
  border-left-color: var(--row-color);
}

/* ── Row header bar ── */
.vi-compare__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

.vi-compare__bar:hover {
  background: rgba(255, 255, 255, 0.02);
}

.vi-compare__bar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  min-width: 5.5rem;
  transition: color 0.2s;
}

.vi-compare__row[data-open] .vi-compare__bar-label {
  color: var(--row-color);
}

/* Chevron indicator */
.vi-compare__chevron {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: #555;
  transition: transform 0.3s, color 0.2s;
}

.vi-compare__chevron svg {
  width: 16px;
  height: 16px;
}

.vi-compare__row[data-open] .vi-compare__chevron {
  transform: rotate(180deg);
  color: var(--row-color);
}

.vi-compare__bar-pills {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  transform: translateX(-2rem);
}

.vi-compare__pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 500;
  color: #aaa;
  white-space: nowrap;
  justify-self: center;
}

.vi-compare__pill--accent {
  justify-self: center;
  border-color: rgba(var(--row-rgb), 0.25);
  color: var(--row-color);
}

.vi-compare__pill-icon {
  display: flex;
  align-items: center;
}

.vi-compare__pill-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.vi-compare__bar-arrow {
  display: flex;
  align-items: center;
  color: var(--row-color);
  opacity: 0.5;
}

.vi-compare__bar-arrow svg {
  width: 14px;
  height: 14px;
}

/* ── Detail area (collapsed by default, open via data-open) ── */
.vi-compare__detail {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  padding: 0 1.25rem;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.vi-compare__row[data-open] .vi-compare__detail {
  max-height: 18rem;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
}

/* ── Cells ── */
.vi-compare__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.vi-compare__cell--accent {
  border-color: rgba(var(--row-rgb), 0.15);
  background: rgba(var(--row-rgb), 0.04);
}

/* Icon in cell */
.vi-compare__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vi-compare__icon svg {
  width: 40px;
  height: 40px;
  fill: #666;
}

.vi-compare__cell--accent .vi-compare__icon svg {
  fill: var(--row-color);
}

/* Comparison text in cell */
.vi-compare__text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #999;
  font-weight: 400;
}

.vi-compare__text em {
  font-style: italic;
  color: #bbb;
}

.vi-compare__cell--accent .vi-compare__text {
  color: #c8d8e8;
}

.vi-compare__detail-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--row-color);
}

.vi-compare__detail-arrow svg {
  width: 16px;
  height: 16px;
}

.vi-compare__takeaway {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--row-color);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(var(--row-rgb), 0.1);
  text-align: center;
}


/* ── Feature Cards ── */
.vi-features {
  padding: 3rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.vi-features h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin-bottom: 1.5rem;
}

.vi-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.vi-features__card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}


/* Left border accent per layer */
.vi-features__card--l1 { border-left: 3px solid var(--vi-l1); }
.vi-features__card--l2 { border-left: 3px solid var(--vi-l2); }
.vi-features__card--l3 { border-left: 3px solid var(--vi-l3); }
.vi-features__card--brand { border-left: 3px solid var(--vi-brand); }

.vi-features__card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.vi-features__card--l1:hover { border-left-color: var(--vi-l1); }
.vi-features__card--l2:hover { border-left-color: var(--vi-l2); }
.vi-features__card--l3:hover { border-left-color: var(--vi-l3); }
.vi-features__card--brand:hover { border-left-color: var(--vi-brand); }


.vi-features__card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.vi-features__card--l1 h3 { color: var(--vi-l1-text); }
.vi-features__card--l2 h3 { color: var(--vi-l2-text); }
.vi-features__card--l3 h3 { color: var(--vi-l3-text); }
.vi-features__card--brand h3 { color: var(--vi-brand); }

.vi-features__card p {
  font-size: 0.85rem;
  margin: 0;
  color: #888;
  line-height: 1.6;
}


.vi-features__icon {
  margin-bottom: 0.75rem;
  display: block;
}

.vi-features__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.vi-features__card--l1 .vi-features__icon svg { fill: var(--vi-l1); }
.vi-features__card--l2 .vi-features__icon svg { fill: var(--vi-l2); }
.vi-features__card--l3 .vi-features__icon svg { fill: var(--vi-l3); }
.vi-features__card--brand .vi-features__icon svg { fill: var(--vi-brand); }


/* ── Delegation Chain ── */
.vi-chain {
  padding: 2rem 2rem 3rem;
  max-width: 740px;
  margin: 0 auto;
}

.vi-chain h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin-bottom: 1.5rem;
}

.vi-chain__steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.vi-chain__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid;
  flex: 1;
  max-width: 200px;
}

.vi-chain__step svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex-shrink: 0;
}

.vi-chain__step--l1 {
  border-color: rgba(163, 217, 64, 0.25);
  background: rgba(163, 217, 64, 0.04);
  color: var(--vi-l1-text);
}

.vi-chain__step--l2 {
  border-color: rgba(94, 236, 198, 0.25);
  background: rgba(94, 236, 198, 0.04);
  color: var(--vi-l2-text);
}

.vi-chain__step--l3 {
  border-color: rgba(255, 160, 32, 0.25);
  background: rgba(255, 160, 32, 0.04);
  color: var(--vi-l3-text);
}

.vi-chain__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.vi-chain__role {
  font-size: 0.85rem;
  font-weight: 600;
}

.vi-chain__desc {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.6;
}

/* Connector between chain steps */
.vi-chain__connector {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
}

.vi-chain__connector svg {
  width: 24px;
  height: 24px;
}

.vi-chain__lock-line {
  width: 20px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
}


/* ── Home Page Layout ── */
.vi-home .md-sidebar {
  display: none;
}

.vi-home .md-main__inner {
  margin: 0;
}

.vi-home .md-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.vi-home .md-content__inner {
  margin: 0;
  padding: 0;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  .vi-hero__title {
    font-size: 2rem;
  }

  .vi-hero__tagline {
    font-size: 1.05rem;
  }

  .vi-features__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vi-compare__headers {
    display: none;
  }

  .vi-compare__bar {
    flex-wrap: wrap;
  }

  .vi-compare__bar-pills {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    transform: none;
  }

  .vi-compare__pill,
  .vi-compare__pill--accent {
    justify-self: center;
  }

  .vi-compare__bar-arrow {
    display: none;
  }

  .vi-compare__detail {
    grid-template-columns: 1fr;
  }

  .vi-compare__row[data-open] .vi-compare__detail {
    max-height: 50rem;
  }

  .vi-compare__detail-arrow {
    display: none;
  }

  .vi-compare__cell {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .vi-compare__icon {
    flex-shrink: 0;
  }

  .vi-compare__icon svg {
    width: 28px;
    height: 28px;
  }

  .vi-compare__cell::before {
    content: "TODAY";
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    width: 100%;
  }

  .vi-compare__cell--accent::before {
    content: "WITH VI";
    color: var(--row-color);
  }

  .vi-compare__takeaway {
    grid-column: 1;
  }

  .vi-chain__steps {
    flex-direction: column;
    align-items: center;
  }

  .vi-chain__connector {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
}

@media screen and (max-width: 480px) {
  .vi-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .vi-hero__logo img {
    width: 140px;
    height: 140px;
  }

  .vi-hero__title {
    font-size: 1.6rem;
  }

  .vi-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .vi-compare {
    padding: 2rem 1rem;
  }
}
