[data-md-color-scheme="default"] {
  --md-primary-fg-color: #2a2438;
  --md-primary-bg-color: #fff;
  --md-typeset-a-color: #5488e8;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #3d3548;
  --md-primary-bg-color: #f8f7fa;
}

.hero-container {
  padding: 2rem 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 200" preserveAspectRatio="none"><path fill="%23e8e7ec" fill-opacity="0.3" d="M0,100 Q360,30 720,100 T1440,100 V200 H0 Z"/><path fill="%23e8e7ec" fill-opacity="0.5" d="M0,120 Q360,50 720,120 T1440,120 V200 H0 Z"/><path fill="%23e8e7ec" fill-opacity="1" d="M0,140 Q360,70 720,140 T1440,140 V200 H0 Z"/></svg>'),
    linear-gradient(
      180deg,
      #2a2438 0%,
      #3d3548 25%,
      #5a5168 50%,
      #8a8594 85%,
      #e8e7ec 100%
    );
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
}

[data-md-color-scheme="slate"] .hero-container {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 200" preserveAspectRatio="none"><path fill="%232a2438" fill-opacity="0.3" d="M0,100 Q360,30 720,100 T1440,100 V200 H0 Z"/><path fill="%232a2438" fill-opacity="0.5" d="M0,120 Q360,50 720,120 T1440,120 V200 H0 Z"/><path fill="%232a2438" fill-opacity="1" d="M0,140 Q360,70 720,140 T1440,140 V200 H0 Z"/></svg>'),
    linear-gradient(
      180deg,
      #3d3548 0%,
      #2a2438 50%,
      #221e2e 60%
    );
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
}

.mdx-hero {
  color: #e8e7ec;
  margin-bottom: 4rem;
}

.mdx-hero .md-button {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  color: #e8e7ec;
  border-color: #e8e7ec;
}

.mdx-hero .md-button--primary {
  color: #2a2438;
  background-color: #e8e7ec;
  border-color: #e8e7ec;
}

.mdx-hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


.hero-illustration {
  display: block;
  width: 80%;
  color: #e8e7ec;
}

[data-md-color-scheme="slate"] .hero-illustration {
  color: #e8e7ec;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.mdx-hero__image:hover {
  transform: translateY(-4px);
}

.hero-illustration:hover .hero-sidebar {
  animation: heroFileChange 0.5s ease 0s both;
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.hero-illustration:hover .hero-file-1 {
  animation: heroFileChange 0.5s ease 0.08s both;
  
}
.hero-illustration:hover .hero-file-2 {
  animation: heroFileChange 0.5s ease 0.16s both;
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.hero-illustration:hover .hero-file-3 {
  animation: heroFileChange 0.5s ease 0.24s both;
}
.hero-illustration:hover .hero-file-4 {
  animation: heroFileChange 0.5s ease 0.32s both;
}
.hero-illustration:hover .hero-file-5 {
  animation: heroFileChange 0.5s ease 0.4s both;
}

@keyframes heroFileChange {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mdx-hero__content {
  text-align: center;
}

.mdx-hero__content h1 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: currentColor;
}

@media screen and (min-width: 960px) {
  .md-sidebar--secondary {
    display: none;
  }

  .mdx-hero {
    display: flex;
    align-items: stretch;
  }

  .mdx-hero__image {
    order: 1;
    width: 50%;
  }

  .mdx-hero__content {
    width: 50%;
    margin-top: 5rem;
    padding-bottom: 20vh;
    text-align: left;
  }
}

.md-hero-intro {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 2rem auto 1.5rem;
  max-width: 61rem;
  padding: 0 1rem;
  color: var(--md-default-fg-color);
}

.md-features {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
  padding: 2rem 1rem 3rem;
  max-width: 61rem;
  margin: 0 auto;
}

.md-feature-card {
  padding: 0.3rem;
  border-radius: 0.5rem;
  background: var(--md-default-bg-color--light, rgba(0, 0, 0, 0.05));
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-md-color-scheme="slate"] .md-feature-card {
  background: var(--md-default-bg-color--lighter, rgba(255, 255, 255, 0.05));
}

.md-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.md-feature-card--browse:hover .feat-file-1 {
  animation: featFileAppear 0.4s ease 0s both;
}
.md-feature-card--browse:hover .feat-file-2 {
  animation: featFileAppear 0.4s ease 0.1s both;
}
.md-feature-card--browse:hover .feat-file-3 {
  animation: featFileAppear 0.4s ease 0.2s both;
}

@keyframes featFileAppear {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.md-feature-card--preview:hover .feat-preview {
  animation: featPreviewLoad 0.5s ease 0.15s both;
}

@keyframes featPreviewLoad {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.md-feature-card--auth:hover .feat-shield {
  animation: featFileAppear 0.4s ease 0s both;
}
.md-feature-card--auth:hover .feat-lock {
  animation: featFileAppear 0.4s ease 0.1s both;
}

.md-feature-card--simpleadmin:hover .feat-config {
  animation: featFileAppear 0.4s ease 0s both;
}
.md-feature-card--simpleadmin:hover .feat-gear {
  animation: featFileAppear 0.4s ease 0.1s both;
}

.md-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--md-primary-fg-color);
}

.md-feature-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.md-feature-card__image {
  width: 100%;
  max-width: 8rem;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.md-feature-card__svg {
  display: block;
  width: 8rem;
  aspect-ratio: 120 / 100;
  margin-bottom: 1rem;
  color: var(--md-default-fg-color);
}

.md-feature-card--browse .feat-folder {
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.md-feature-card--preview .feat-preview rect {
  fill: var(--md-primary-fg-color--light);
  fill-opacity: 0.2;
}
.md-feature-card--preview .feat-preview circle,
.md-feature-card--preview .feat-preview path {
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.md-feature-card--auth .feat-lock path,
.md-feature-card--auth .feat-lock rect:first-of-type {
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.md-feature-card--auth .feat-lock rect:first-of-type {
  fill: var(--md-primary-fg-color--light);
  fill-opacity: 0.4;
}
.md-feature-card--simpleadmin .feat-config {
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.md-feature-card--signedurl .feat-signed-file path:first-child,
.md-feature-card--signedurl .feat-signed-file path:nth-child(2) {
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}
.md-feature-card--signedurl .feat-signed-file path:nth-child(3) {
  fill: var(--md-primary-fg-color--light);
  fill-opacity: 0.2;
}
.md-feature-card--signedurl .feat-signed-file path:nth-child(4) {
  stroke: var(--md-primary-fg-color--light);
  stroke-opacity: 0.9;
}

.md-feature-card__svg svg {
  width: 100%;
  height: auto;
  display: block;
}

.md-feature-card__svg .feat-file,
.md-feature-card__svg .feat-preview,
.md-feature-card__svg .feat-shield,
.md-feature-card__svg .feat-lock,
.md-feature-card__svg .feat-config,
.md-feature-card__svg .feat-gear,
.md-feature-card__svg .feat-signed-left,
.md-feature-card__svg .feat-signed-right,
.md-feature-card__svg .feat-signed-file {
  transform-origin: center;
}

.md-features .md-feature-card--signedurl:hover .feat-signed-left,
.md-features .md-feature-card--signedurl:hover .feat-signed-right {
  animation: featSignedPulse 0.5s ease both;
}
.md-features .md-feature-card--signedurl:hover .feat-signed-right { animation-delay: 0.5s; }

.md-features .md-feature-card--signedurl:hover .feat-signed-file {
  animation: featSignedFilePop 0.5s ease 0.15s both;
}

@keyframes featSignedFilePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes featSignedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.md-feature-card__svg img {
  width: 100%;
  height: auto;
  display: block;
}

.md-feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.md-feature-card__description {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}



/* Demo: two-column layout - text left, GIF in browser frame right (same width as features/showcase) */
.md-demo {
  padding: 2rem 1rem 3rem;
  max-width: 61rem;
  margin: 0 auto;
}

.md-demo__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .md-demo__grid {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

.md-demo__heading {
  margin-bottom: 1rem;
}

.md-demo__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.md-demo__frame {
  flex: 1;
  min-width: 0;
}

.md-demo__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--md-default-fg-color);
}

.md-demo__description {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--md-default-fg-color);
  opacity: 0.9;
}

.md-demo__description strong {
  font-weight: 600;
}

.md-demo__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--md-primary-fg-color);
  text-decoration: none;
  margin-top: 0.25rem;
}

.md-demo__link:hover {
  text-decoration: underline;
}

.md-demo__frame {
  display: flex;
  justify-content: center;
  align-items: center;
}

.md-demo__frame svg {
  width: 100%;
  max-width: 38rem;
  min-width: 20rem;
  height: auto;
  color: var(--md-default-fg-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-demo__frame:hover svg {
  transform: translateY(-4px);
}

/* Showcase: 3 per row, icon left, title+description right */
.md-showcase {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem 1rem 1.5rem;
  max-width: 61rem;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .md-showcase {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.md-showcase__title {
  grid-column: 1 / -1;
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 0 0.5rem;
  color: var(--md-default-fg-color);
}

.md-showcase__items {
  display: contents;
}

.md-showcase-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: var(--md-default-bg-color--light, rgba(0, 0, 0, 0.05));
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-md-color-scheme="slate"] .md-showcase-item {
  background: var(--md-default-bg-color--lighter, rgba(255, 255, 255, 0.05));
}

.md-showcase-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.md-showcase-item__icon-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.md-showcase-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--md-default-fg-color);
}

.md-showcase-item__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.md-showcase-item__icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .md-showcase-item__icon-bg {
  background: rgba(255, 255, 255, 0.08);
}

.md-showcase-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.md-showcase-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.md-showcase-item__description {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}

.md-showcase-item__link {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Align content width with Material's .md-grid (61rem) */
.md-main__inner .md-content {
  max-width: 61rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

[data-md-component="announce"] .md-banner__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-md-color-scheme="default"] [data-md-component="announce"] .md-banner {
  background-color: var(--md-default-fg-color);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 32" preserveAspectRatio="none"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="0%25" y2="100%25"><stop offset="0%25" stop-color="%235d6cc0" stop-opacity="0"/><stop offset="30%25" stop-color="%235d6cc0" stop-opacity="0"/><stop offset="70%25" stop-color="%235d6cc0" stop-opacity="0.06"/><stop offset="100%25" stop-color="%235d6cc0" stop-opacity="0.15"/></linearGradient></defs><rect width="1440" height="32" fill="url(%23g)"/><rect x="0" y="30" width="1440" height="2" fill="%235d6cc0" fill-opacity="0.4" rx="1"/></svg>');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 100%;
  color: var(--md-default-bg-color);
}

[data-md-component="announce"] {
  --announce-accent: #8b9ae8; /* filetree brand #5d6cc0, lighter for dark banner */
}
[data-md-color-scheme="slate"] [data-md-component="announce"] .md-banner {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 32" preserveAspectRatio="none"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="0%25" y2="100%25"><stop offset="0%25" stop-color="%235d6cc0" stop-opacity="0"/><stop offset="30%25" stop-color="%235d6cc0" stop-opacity="0"/><stop offset="70%25" stop-color="%235d6cc0" stop-opacity="0.05"/><stop offset="100%25" stop-color="%235d6cc0" stop-opacity="0.12"/></linearGradient></defs><rect width="1440" height="32" fill="url(%23g)"/><rect x="0" y="30" width="1440" height="2" fill="%235d6cc0" fill-opacity="0.35" rx="1"/></svg>');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 100%;
}
[data-md-color-scheme="slate"] [data-md-component="announce"] {
  --announce-accent: #9fa8ed; /* filetree brand, lighter for slate */
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.announce__icon,
.announce__content {
  transition: transform 0.35s ease-in-out;
  transform: scale(1);
}

.announce__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--announce-accent);
  transform-origin: center center;
}

.announce__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.announce__content {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  transform-origin: left center;
}

.announce__text {
  color: inherit;
}

[data-md-component="announce"] .announce__link {
  color: var(--announce-accent);
  text-decoration: none;
  display: inline-block;
}

.announce__link:hover {
  text-decoration: underline;
}

.announce:hover .announce__icon,
.announce:hover .announce__content {
  transform: scale(1.15);
}