/*!
 *  Darkside — Homepage styles
 *  Extends assets/css/about.css (Matter framework). Only additions live here,
 *  so the shared design system stays untouched.
 */

:root {
  --ds-ink: #05050b;
  --ds-ink-2: #110f24;
  --ds-surface: #1d1a3d;
  --ds-line: rgba(255, 255, 255, 0.12);
  --ds-line-light: #ececee;
  --ds-primary: #7c06d1;
  --ds-primary-2: #393ed8;
  --ds-accent: #39cfa2;
  --ds-text-muted: rgba(255, 255, 255, 0.7);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body.page-home {
  background: var(--ds-ink);
}

/* Header ------------------------------------------------------------------ */
@media only screen and (min-width: 768px) {
  .header-main nav > ul.inline {
    float: right;
  }
  .header-main ul.inline li:last-child {
    padding-right: 0;
  }
}

.header-main.fade-in nav {
  background: rgba(5, 5, 11, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ds-line);
}

/* Small shared pieces ----------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1rem;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.75;
}

.dark .eyebrow {
  color: #fff;
}

.eyebrow:before {
  background: var(--ds-accent);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  width: 0.5rem;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1rem;
  text-transform: uppercase;
  border-radius: 3rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  vertical-align: middle;
}

.badge-live {
  background: rgba(57, 207, 162, 0.16);
  color: #1c8c68;
}

.badge-soon {
  background: rgba(124, 6, 209, 0.12);
  color: var(--ds-primary);
}

.dark .badge-live {
  background: rgba(57, 207, 162, 0.18);
  color: var(--ds-accent);
}

.dark .badge-soon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-head {
  margin: 0 auto 3rem auto;
  max-width: 44rem;
  text-align: center;
}

.section-head p {
  opacity: 0.75;
}

/* Hero -------------------------------------------------------------------- */
.hero-row {
  padding-top: 5rem;
}

/* Flex columns default to min-width:auto, which lets the <pre> below push the
   grid apart. Let the columns shrink and scroll the code block instead. */
.hero-row [class^="col-"] {
  min-width: 0;
}

.hero-actions .button {
  margin: 0.5rem 0.75rem 0.5rem 0;
}

.hero-note {
  font-size: 0.875rem;
  line-height: 1.5rem;
  margin-top: 1.5rem;
  opacity: 0.6;
}

/* Terminal / console mock */
.console {
  border-radius: 0.75rem;
  max-width: 100%;
  min-width: 0;
  background: rgba(5, 5, 11, 0.72);
  border: 1px solid var(--ds-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  width: 100%;
}

.console-bar {
  align-items: center;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--ds-line);
  display: flex;
  padding: 0.75rem 1rem;
}

.console-dot {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-block;
  height: 0.625rem;
  margin-right: 0.4rem;
  width: 0.625rem;
}

.console-title {
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  margin-left: 0.75rem;
  opacity: 0.6;
}

.console-body {
  text-align: left;
  font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.75rem;
  margin: 0;
  overflow-x: auto;
  padding: 1.25rem;
  white-space: pre;
}

.console-body .c-key { color: #b388ff; }
.console-body .c-str { color: #7ee1c1; }
.console-body .c-dim { color: rgba(255, 255, 255, 0.45); }

/* Stats ------------------------------------------------------------------- */
.stat-band {
  border-top: 1px solid var(--ds-line);
  margin-top: 4rem;
  padding-top: 2.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: "Lato", Georgia, serif;
  line-height: 3rem;
  margin: 0 0 0.25rem 0;
}

.stat-label {
  font-size: 0.875rem;
  line-height: 1.5rem;
  margin: 0;
  opacity: 0.65;
}

/* Panels ------------------------------------------------------------------ */
.panel {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ds-line);
  height: 100%;
  padding: 2rem;
  transition: all 0.2s;
}

.panel:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.panel h5,
.panel h4 {
  margin-bottom: 0.5rem;
}

.panel p {
  font-size: 0.9375rem;
  line-height: 1.625rem;
  opacity: 0.7;
}

.panel .feature-icons {
  font-size: 1.75rem;
  height: 3.5rem;
  line-height: 3.5rem;
  width: 3.5rem;
}

/* Product cards ----------------------------------------------------------- */
/* The card is the grid column itself, so it stretches to the tallest sibling.
   A percentage height here would opt it out of that stretch. */
.product-card {
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: 0 12px 30px rgba(17, 15, 36, 0.14);
  transform: translateY(-2px);
}

.product-head img {
  height: 3rem;
  margin-right: 1rem;
  vertical-align: middle;
  width: auto;
}

.product-head {
  align-items: center;
  display: flex;
  margin-bottom: 1.25rem;
}

.product-head h4 {
  margin: 0 0 0.25rem 0;
}

.product-card p {
  font-size: 1rem;
  line-height: 1.75rem;
}

.product-card .button,
.product-card .product-link {
  margin-top: auto;
}

.product-link {
  font-weight: 700;
  display: inline-block;
  padding-top: 1rem;
}

.product-link:after {
  content: " →";
}

/* Checklists -------------------------------------------------------------- */
.checklist {
  list-style: none;
  margin: 1.25rem 0 0 0;
  padding: 0;
}

.checklist li {
  font-size: 0.9375rem;
  line-height: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
}

.checklist li:before {
  color: var(--ds-primary);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.dark .checklist li:before {
  color: var(--ds-accent);
}

.checklist.muted-list li {
  opacity: 0.75;
}

/* Timeline tweaks --------------------------------------------------------- */
.timeline .step-index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ds-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* FAQ --------------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--ds-line-light);
  padding: 1.25rem 0;
}

.faq summary {
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding-right: 2rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:after {
  content: "+";
  font-weight: 400;
  position: absolute;
  right: 0;
  top: -0.125rem;
  transition: transform 0.2s;
}

.faq details[open] summary:after {
  content: "–";
}

.faq p {
  margin-top: 0.75rem;
  opacity: 0.75;
}

/* Call to action ---------------------------------------------------------- */
.section-head-inset {
  margin-top: 4rem;
}

.button.button-light {
  background: #fff;
  color: var(--ds-ink-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.button.button-light:hover {
  background: #fff;
  color: var(--ds-primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.cta-panel {
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(17, 15, 36, 0.25);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-panel .button {
  margin: 0.5rem 0.5rem 0 0.5rem;
}

/* Footer ------------------------------------------------------------------ */
.footer-main ul.blank li {
  margin-bottom: 0.5rem;
}

.footer-social a {
  margin-right: 1.25rem;
}

@media only screen and (max-width: 767px) {
  .console-body {
    font-size: 0.75rem;
  }
  .stat-band {
    margin-top: 3rem;
    padding-top: 2rem;
  }
  .stat-band [class^="col-"] {
    margin-top: 2rem;
  }
  .cta-panel {
    padding: 2.5rem 1.25rem;
  }
}
