/* Website Stylesheet */

:root {
    --spacer: 2rem;
    --bubble-radius: 2rem;
}

.ai-only {
    display: none;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
    height: 100%;
}

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

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

a {
    color: var(--complement);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 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);
}

.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(--complement);
    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: 0.5rem;
    text-indent: 0;
    position: relative;
}

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

/*
.docs-section li::before {
  content: "•";
  position: absolute;
  left: 0;
}
 */
/*
.docs-section li:not(:last-child) {
  margin-bottom: 0.5rem;
}
 */

.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: inline-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:hover,
.nav-brand:hover h1 {
    text-decoration: none !important;
}

.nav-brand.logo {
    width: 120px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.nav-brand.logo h1 {
    color: transparent;
    margin: 0;
    font-size: inherit;
}

[data-theme="light"] .nav-brand.logo {
    background-image: url("/img/logo-black.png");
}

[data-theme="dark"] .nav-brand.logo {
    background-image: url("/img/logo-white.png");
}

[data-theme="auto"] .nav-brand.logo {
    background-image: url("/img/logo-white.png");
}

/* PHONE MOCKUP */
.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 25px;
    background: #000;
    border-radius: 0 0 40px 40px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    padding: 25px 15px 15px;
    gap: 12px;
    overflow: hidden;
}

.phone-header {
    font-size: 0.95rem;
    color: #1a202c;
    padding: 0 15px 10px 15px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
    opacity: 0;
}

.message.incoming {
    background: #e2e8f0;
    color: #1a202c;
    align-self: flex-start;
}

.message.outgoing {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-color-scheme: light) {
    [data-theme="auto"] .nav-brand.logo {
        background-image: url("/img/logo-black.png");
    }
}

.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) * 2) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

#hero-network {
    display: none;
}

.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: 2.625rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tagline {
    font-size: 110%;
    color: var(--text-secondary);
    margin-bottom: var(--spacer);
    line-height: 1.5;
}

.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;
    }
}

@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-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: var(--bubble-radius);
    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: 3rem;
    height: 3rem;
    display: inline-block;
    color: var(--code-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: 4rem;
    height: 4rem;
    display: block;
    margin: 0 auto;
    color: var(--code-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;
}

.hero-sticker {
    width: clamp(350px, 100%, 550px);
    height: auto;
    position: relative;
    z-index: 1;
}

[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: 2rem 0;
    scroll-margin-top: 3rem;
}

#the-problem {
    background-color: var(--bg-secondary);
}

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

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

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

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

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

.section h2 + small {
    display: block;
    font-size: 1rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

@media (max-width: 768px) {
    .section h3 {
        font-size: 1.25rem;
    }
}

.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);
}

/* COMPARISON */
.comparison {
    background-color: var(--bg-primary);
}

.comparison-table {
    max-width: 100%;
    margin: var(--spacer) auto;
    background-color: var(--bg-primary);
}

.comparison-table td {
    vertical-align: top;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.comparison-table .trait {
    width: 25%;
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table .arland {
    width: 37.5%;
    color: var(--text-secondary);
}

.comparison-table .typical {
    width: 37.5%;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .comparison-table .trait {
        width: 30%;
    }

    .comparison-table .arland {
        width: 35%;
    }

    .comparison-table .typical {
        width: 35%;
    }

    .comparison-table td {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* 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(--code-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: var(--bubble-radius);
    /* border: 1px solid var(--border); */
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

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

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

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

/* PROBLEM GRID */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacer);
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* PROBLEM CARD */
.problem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacer);
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    gap: 1rem;
}

.problem-card p:first-child {
    margin-top: 0;
}

.problem-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card-icon svg {
    width: 4rem;
    height: 4rem;
    color: var(--code-primary);
}

.problem-card h3 {
    margin: 0;
    color: var(--text-primary);
}

.problem-card p {
    margin: 0;
    color: var(--text-secondary);
}

#contact .problem-card {
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
}

/* 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-primary);
}

.getting-started .steps {
    background-color: var(--bg-primary);
    padding: 0;
}

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

.step {
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    padding: var(--spacer);
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
    align-items: center;
}

.step-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.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 {
    text-align: center;
    background-color: var(--bg-secondary);
}

#faq {
    background-color: var(--bg-primary);
}

#faq .value-prop {
    background-color: var(--bg-secondary);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: calc(var(--spacer) * 1.5);
}

.cta-content > p {
    margin-bottom: calc(var(--spacer) * 2 - 1rem);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacer) * 1.5);
    align-items: center;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.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-tertiary);
    /* border-top: 1px solid var(--border); */
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

.footer-content .footer-section:nth-child(2) {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content .footer-section:nth-child(2) {
        text-align: left;
    }
}

.footer-branding {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 100%;
    max-width: 120px;
    height: 3rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    margin-bottom: 0.5rem;
}

.footer-logo h1 {
    color: transparent;
    margin: 0;
    font-size: inherit;
}

[data-theme="light"] .footer-logo {
    background-image: url("/img/logo-black.png");
}

[data-theme="dark"] .footer-logo {
    background-image: url("/img/logo-white.png");
}

[data-theme="auto"] .footer-logo {
    background-image: url("/img/logo-white.png");
}

@media (prefers-color-scheme: light) {
    [data-theme="auto"] .footer-logo {
        background-image: url("/img/logo-black.png");
    }
}

.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.logo {
    width: 100px;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

#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(--complement);
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
}

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

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

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

    body {
        font-size: 16px;
    }

    .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: 2rem;
    }

    .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: 0.5rem 0;
    }

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

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

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

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

    .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;
    }
}

#the-problem .excerpt p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* BLOCKQUOTE */
blockquote {
    font-weight: 400;
    font-style: italic;
    border-left: none;
    font-size: 1rem;
    box-sizing: border-box;
    position: relative;
    line-height: 1.5;
}

blockquote::before {
    content: "‘‘";
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 6rem;
    letter-spacing: -0.25rem;
    position: absolute;
    font-style: normal;
    font-weight: 900;
    color: var(--code-primary);
    top: -5rem;
    left: -0.5rem;
}

.docs-section blockquote p {
    color: var(--text-secondary);
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.6;
}

blockquote p:last-child {
    margin-bottom: 0;
}

.section-sticker {
    width: clamp(150px, 30%, 225px);
    height: auto;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-left {
    text-align: center;
}

.about-left .section-sticker {
    width: clamp(250px, 100%, 400px);
}

.about-left h2 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-left h3 {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-left {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* CALLOUT */
.callout {
    padding: 0.5rem 0;
    background-color: var(--bg-tertiary);
}

.callout .container {
    text-align: center;
}

/* QUOTE EXPANDABLE */
.quote-expandable {
    background-color: var(--bg-secondary);
}

.quote-expandable .container {
    max-width: 800px;
}

.quote-expandable details summary {
    cursor: pointer;
    user-select: none;
    padding: 1.5rem;
    margin: 0 -1.5rem;
    border-radius: var(--bubble-radius);
    transition: background-color 0.2s;
}

.quote-expandable details summary:hover {
    background-color: var(--bg-tertiary);
}

.quote-expandable details summary h2 {
    margin: 0;
    display: inline;
}

.quote-expandable .quote-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.quote-expandable .quote-body p {
    margin-bottom: 1rem;
}

.quote-expandable .quote-body p:last-of-type {
    margin-bottom: 0;
}
