/* Duso Website Stylesheet */

:root {
  --spacer: 2rem;
}

.ai-only {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacer);
}

/* TYPOGRAPHY */

.docs-section {
  font-size: 18px;
}

.docs-section h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacer);
  margin-top: calc(var(--spacer) * 1.5);
  text-align: left;
}

.docs-section h2, .docs-section h3, .docs-section h4, .docs-section h5, .docs-section h6 {
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
  text-align: left;
}

.docs-section h2 {
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}

.docs-section h2 { font-size: 1.75rem; }
.docs-section h3 { font-size: 1.5rem; }
.docs-section h4 { font-size: 1.25rem; }
.docs-section h5 { font-size: 1.125rem; }
.docs-section h6 { font-size: 1rem; }

.docs-section p {
  color: var(--text-secondary);
  margin-bottom: var(--spacer);
}

.docs-section pre {
  line-height: 1.25;
}

.docs-section pre code {
  font-size: 1rem;
}

.docs-section a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.docs-section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.docs-section ul, ol {
  margin-bottom: var(--spacer);
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.docs-section li {
  list-style-position: outside;
  padding-left: .5rem;
  text-indent: 0;
  position: relative;
}

.docs-section li code:first-of-type {
  margin-right: .5rem;
}

/* 
.docs-section li::before {
  content: "•";
  position: absolute;
  left: 0;
}
 */
/* 
.docs-section li:not(:last-child) {
  margin-bottom: 0.5rem;
}
 */
 
.docs-section blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--spacer);
  margin-left: 0;
  margin-bottom: var(--spacer);
  color: var(--text-secondary);
  font-style: italic;
}

.docs-section hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: calc(var(--spacer) * 2) 0;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacer) 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

table thead {
  background-color: var(--bg-tertiary);
}

table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

table tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover {
  background-color: var(--bg-secondary);
  transition: background-color 0.15s ease;
}

/* NAVBAR */
.navbar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacer);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-brand img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  margin-left: 0;
  margin-bottom: 0;
}

.nav-links li {
  margin: 0;
  margin-bottom: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--complement);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.nav-links a.active {
  color: var(--text-primary);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--complement);
  transition: color 0.3s, transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: absolute;
}

.theme-toggle:hover .theme-icon {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Show appropriate icon based on theme mode */
[data-theme="light"] .theme-icon-moon {
  display: block;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-auto {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-auto {
  display: none;
}

[data-theme="auto"] .theme-icon-moon {
  display: none;
}

[data-theme="auto"] .theme-icon-sun {
  display: none;
}

[data-theme="auto"] .theme-icon-auto {
  display: block;
}

/* HERO */
.hero {
  padding: calc(var(--spacer) * 3) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%); */
  z-index: -1;
}

#hero-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacer);
  line-height: 1.8;
}

.hero-alt-bg {
  background-image: url('/img/build-with-duso-mobile.jpg');
  aspect-ratio: 1030 / 950;
  background-repeat: no-repeat;
}

[data-theme="dark"] .hero-alt-bg {
  background-image: url('/img/build-with-duso-mobile-dark.jpg');
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .hero-alt-bg {
    background-image: url('/img/build-with-duso-mobile-dark.jpg');
  }
}

@media (min-width: 1024px) {
  .hero-alt-bg {
    background-image: url('/img/build-with-duso.jpg');
    aspect-ratio: 1200 / 727;
  }

  [data-theme="dark"] .hero-alt-bg {
    background-image: url('/img/build-with-duso-dark.jpg');
  }

  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] .hero-alt-bg {
      background-image: url('/img/build-with-duso-dark.jpg');
    }
  }
}

.hero-alt {
  margin: 0;
  padding: 0;
  background-color: var(--bg-tertiary);
}

.hero-alt-bg {
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1030 / 950;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

@media (min-width: 640px) {
  .hero-alt-bg {
    background-image: url('/img/build-with-duso.jpg');
    aspect-ratio: 1200 / 727;
  }

  [data-theme="dark"] .hero-alt-bg {
    background-image: url('/img/build-with-duso-dark.jpg');
  }

  [data-theme="auto"] .hero-alt-bg {
    background-image: url('/img/build-with-duso.jpg');
  }

  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] .hero-alt-bg {
      background-image: url('/img/build-with-duso-dark.jpg');
    }
  }
}

@media (min-width: 1024px) {
  .hero-alt-bg {
    max-width: 1200px;
  }
}

.hero-alt-content {
  position: static;
  text-align: center;
  max-width: 66%;
  margin: 0;
  padding: 0;
  grid-row: 1;
}

.hero-alt-content h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0 0.5rem 0;
  line-height: 1;
}

.hero-alt-content .tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .hero-alt-content {
    max-width: unset;
    padding: 0 var(--spacer);
  }

  .hero-alt-content .tagline {
    line-height: 1.1;
  }
}

@media (min-width: 1100px) {
  .hero-alt-content {
    max-width: 50%;
  }
}

@media (min-width: 480px) {
  .hero-alt-content h1 {
    font-size: 2.5rem;
    margin: 0 0 0.75rem 0;
  }

  .hero-alt-content .tagline {
    font-size: 1.1rem;
  }
}

@media (min-width: 640px) {
  .hero-alt-bg {
    grid-template-rows: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-alt-content h1 {
    font-size: 3.5rem;
  }

  .hero-alt-content .tagline {
    font-size: 1.25rem;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem var(--spacer);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: filter 0.1s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  filter: brightness(var(--hover-brightness));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--complement);
  color: white;
}

.btn-secondary:hover {
  filter: brightness(var(--hover-brightness));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.step-content .btn,
.step-content input {
  align-self: flex-start;
  margin: var(--spacer);
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Icon Styling */
img.icon,
img.icon-inline {
  filter: var(--icon-filter);
}

.feature-item .icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  color: var(--primary);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.icon-inline {
  width: 1.5rem;
  height: 1.5rem;
  display: inline;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: inherit;
}

.value-prop .icon-inline {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  margin: 0 auto;
  color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo {
  max-width: 400px;
  height: auto;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  animation: heroPulseLightMode 4s ease-in-out infinite;
}

[data-theme="dark"] .hero-logo {
  animation: heroPulseDarkMode 4s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .hero-logo {
    animation: heroPulseDarkMode 4s ease-in-out infinite;
  }
}

@keyframes pendulum {
  0% { transform: translateY(0px); }
  40% { transform: translateY(-50px); }
  55% { transform: translateY(-50px); }
  80% { transform: translateY(0px); }
  100% { transform: translateY(0px); }
}

@keyframes heroPulseLightMode {
  0%, 100% {
    box-shadow: 0 0 80px 40px hsla(var(--comp-hue), 40%, 65%, 0.5), 0 30px 100px 50px hsla(var(--comp-hue), 40%, 65%, 0.4);
    transform: rotateZ(0deg) scale(1);
  }
  50% {
    box-shadow: 0 0 40px 20px hsla(var(--comp-hue), 40%, 70%, 0.3), 0 15px 50px 25px hsla(var(--comp-hue), 40%, 70%, 0.2);
    transform: rotateZ(0deg) scale(1.025);
  }
}

@keyframes heroPulseDarkMode {
  0%, 100% {
    box-shadow: 0 0 80px 40px hsla(var(--comp-hue), 100%, 50%, 0.25), 0 30px 100px 50px hsla(var(--comp-hue), 100%, 50%, 0.15);
    transform: rotateZ(0deg) scale(1);
  }
  50% {
    box-shadow: 0 0 40px 20px hsla(var(--comp-hue), 100%, 30%, 0.12), 0 15px 50px 25px hsla(var(--comp-hue), 100%, 30%, 0.07);
    transform: rotateZ(0deg) scale(1.025);
  }
}

/* SECTIONS */
.section {
  padding: calc(var(--spacer) * 2) 0;
  scroll-margin-top: 3rem;
}

.docs-section {
  padding: var(--spacer) 0;
  scroll-margin-top: var(--spacer);
}

.section h2 {
  font-size: 1.75rem;
  margin-bottom: calc(var(--spacer) * 2);
  text-align: center;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .section h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .section h2 {
    font-size: 2.5rem;
  }
}

.section h2:has(+ small) {
  margin-bottom: 0;
}

.section h2 + small {
  display: block;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: calc(var(--spacer) * 2);
  color: var(--text-secondary);
}

.section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.getting-started .steps .step-label h3 {
    margin-bottom: 0;
}

.section p {
  color: var(--text-secondary);
}

/* INSTALL CONTROLS */
.install-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding: 2rem;
}

.step-content .install-controls {
  margin-bottom: 0;
}

.platform-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s;
  font-size: 1rem;
  align-self: flex-start;
  margin: var(--spacer);
}

.platform-select:hover {
  border-color: var(--primary);
}

.platform-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lighter);
}

.install pre {
  padding: 2rem 4rem 2rem 2rem;
  border: none;
  word-break: break-word;
  white-space: pre-wrap;
  background-color: var(--bg-secondary);
}

/* FEATURES */
.features {
  background-color: var(--bg-secondary);
}

/* WHY DUSO EXISTS */
.why-duso-section {
  background-color: var(--bg-secondary);
}

.why-duso-section .container {
  max-width: 700px;
}

.why-duso-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.why-duso-quote {
  display: block;
  margin: var(--spacer) 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  line-height: 1.5;
}

.why-duso-quote::before {
  content: '\2018\2018';
  font-family: "Georgia", "Garamond", "Cambria", serif;
  font-size: 4rem;
  letter-spacing: -0.25rem;
  position: absolute;
  top: -1.75rem;
  left: -0.5rem;
  font-style: normal;
  font-weight: 900;
  text-align: left;
  color: var(--primary);
  hanging-punctuation: first;
}

.why-duso-quote p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.why-duso-quote p:last-of-type {
  margin-bottom: 0;
}

.why-duso-quote footer {
  display: block;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  text-align: right;
  padding-right: 2rem;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacer);
}

.value-prop {
  padding: var(--spacer);
  background-color: var(--bg-primary);
  border-radius: 0.75rem;
  /* border: 1px solid var(--border); */
  transition: all 0.3s;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.value-prop-text {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}

.value-prop svg {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.value-prop h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* EXAMPLES */
.examples {
  background-color: var(--bg-primary);
}

#examples .step {
  background-color: var(--bg-tertiary);
}

#examples .step-label {
  display: block;
  flex: none;
  width: 18rem;
  padding: var(--spacer);
}

#examples .step-content {
  background-color: var(--bg-secondary);
}

.example-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}


.tab-button.active {
  background-color: var(--primary-lighter);
  color: var(--primary-contrast);
  border-color: var(--primary);
  border-width: 2px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.example-content {
  position: relative;
  min-height: 400px;
}

.example {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.example.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.example-desc {
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

pre {
  /* border: 1px solid var(--border); */
  border-radius: 0.5rem;
  padding: 1rem;
  /* padding-top: 2.5rem; */
  margin: var(--spacer) 0;
  overflow-x: auto;
  position: relative;
  line-height: 1.5;
}

.code-language-label {
  position: absolute;
  top: 1rem;
  right: 2.75rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 10;
}

/* Copy button styling */
.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: inherit;
  color: var(--text-secondary);
  border: none;
  border-radius: 0.25rem;
  padding: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
}

.copy-button:hover {
  /* background-color: var(--bg-primary); */
  color: var(--text-primary);
  transform: scale(1.25);
}


.code-block-wrapper {
  position: relative;
}

.copy-tooltip {
  position: absolute;
  top: 2.5rem;
  right: 0.75rem;
  background-color: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  animation: fadeIn 0.2s ease-in;
}

.copy-tooltip.fade-out {
  animation: fadeOut 0.3s ease-out;
}

code {
  /* background-color: var(--bg-secondary); */
  font-size: 95%;
  line-height: inherit;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Cascadia Code', 'Source Code Pro', 'JetBrains Mono', ui-monospace, monospace;
  /* color: var(--text-secondary); */
}

pre code {
  background-color: inherit;
}

/* GETTING STARTED */
.getting-started {
  background-color: var(--bg-tertiary);
}

.getting-started .step-content {
  background-color: var(--bg-secondary);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacer);
}

.step {
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  background-color: var(--bg-primary);
  border-radius: 0.75rem;
  /* border: 1px solid var(--border); */
}

.step-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 8rem;
  padding: var(--spacer);
  min-width: 18rem;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.step-label h3 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.step-content {
  flex: 1;
  min-width: 0;
  padding: 0;
  background-color: var(--bg-tertiary);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.examples .step-content {
  justify-content: unset;
}

.step-content p {
  margin-bottom: 2rem;
}

.step-content pre {
  border-radius: 0;
  flex: 1;
  border: none;
  padding: var(--spacer);
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  align-self: normal;
  background: inherit;
}

.step-content pre code {
  display: block;
  white-space: pre;
  word-break: break-word;
  min-height: 4rem;
  align-content: center;
  background: inherit;
}

#macos-instructions {
  padding: var(--spacer);
  margin: 0;
}

#macos-instructions p {
  margin-bottom: 0;
}

.step-content .code-block-wrapper:not(:last-of-type) {
  border-bottom: 2px solid var(--bg-tertiary);
}

.cta-section {
  text-align: center;
  padding: 3rem var(--spacer);
  background-color: var(--bg-tertiary);
  /* border-radius: 0.75rem; */
  box-shadow: inset 0 4px 8px -3px rgba(0, 0, 0, 0.15), inset 0 -4px 8px -3px rgba(0, 0, 0, 0.15);
}

.cta-section h3 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 2rem;
}

/* FOOTER */
.footer {
  background-color: var(--bg-secondary);
  /* border-top: 1px solid var(--border); */
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--complement);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--spacer);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
}

.mobile-nav[data-menu="open"] {
  display: block;
}

.mobile-nav-header {
  padding: 1rem var(--spacer);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

[data-theme="dark"] .mobile-nav-header {
  background-color: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .mobile-nav-header {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.mobile-nav-controls {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#mobile-nav .nav-brand img {
  height: 2rem;
}

#mobile-nav .hamburger-btn {
  width: 1.75rem;
  height: 1.75rem;
}

.hamburger-btn {
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--complement);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.hamburger-btn:hover {
  color: var(--text-primary);
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem var(--spacer) 2rem;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  margin: 0;
  margin-left: 0;
  margin-bottom: 0;
}

[data-theme="dark"] .mobile-nav-links {
  background-color: rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .mobile-nav-links {
    background-color: rgba(0, 0, 0, 0.25);
  }
}


.mobile-nav-links li {
  margin: 0;
  margin-bottom: 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

.mobile-nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  :root {
    --spacer: 1rem;
  }

  body {
    font-size: 15px;
  }

  .docs-section {
    font-size: 16px;
  }

  #desktop-nav {
    display: none;
  }

  #mobile-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-links {
    display: none;
  }

  #mobile-nav[data-menu="open"] .mobile-nav-links {
    display: block;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacer);
    width: 100%;
  }

  .hero-logo {
    max-width: 66%;
    height: auto;
  }

  .value-props {
    grid-template-columns: 1fr;
  }

  .value-prop {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .value-prop .icon-inline {
    width: 3rem;
    height: 3rem;
    margin: .5rem 0;
  }

  .hero-feature {
    grid-template-columns: 1fr;
  }

  .example-tabs {
    flex-direction: column;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacer)
  }

  .step-label {
    flex: 1;
    width: 100%;
    min-width: unset;
    padding-bottom: 0;
  }

  .step-number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.125rem;
  }

  #examples .step {
      gap: 0;
  }

  #examples .step-label {
    width: unset;
  }

  .step-content {
    width: 100%;
  }

  pre {
    font-size: 0.8rem;
  }

  pre code {
    font-size: inherit;
  }

  .step-content pre {
    white-space: pre;
    overflow-x: auto;
    overflow: auto;
    word-break: normal;
  }

  .step-content pre code {
    white-space: pre;
    word-break: normal;
  }

  .getting-started .step-content pre {
    white-space: pre-wrap;
    overflow: visible;
    word-break: break-word;
  }

  .getting-started .step-content pre code {
    white-space: pre-wrap;
    word-break: break-word;
  }

}
