/* =========================================
   Creatifind Design System
   The Operating System for the Brand.
   ========================================= */

/* Imports */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,500&f[]=zodiak@400&f[]=general-sans@400,500,600&display=swap');

/* Variables */
:root {
    /* Colors */
    --color-coquelicot: #FF3C01;
    --color-soot: #160D08;
    --color-gravel: #221A15;
    /* Lighter soot for cards/sidebar */
    --color-white: #FFFFFF;
    --color-text-main: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.6);

    /* Spacing Scale (8pt grid) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 128px;

    /* Typography */
    --font-headline: 'Cabinet Grotesk', sans-serif;
    --font-accent: 'Zodiak', serif;
    --font-body: 'General Sans', sans-serif;

    /* Type Scale (Balanced Modern - 1080p Base) */
    --text-h1: 56px;
    --text-h2: 32px;
    --text-h3: 24px;
    --text-h4: 20px;
    --text-h5: 17px;
    --text-h6: 15px;

    --text-subtitle1: 17px;
    --text-subtitle2: 15px;
    --text-body1: 15px;
    --text-body2: 14px;
    --text-button: 14px;
    --text-caption: 12px;
    --text-overline: 10px;

    /* Layout */
    --sidebar-width: 280px;
    --container-max: 1200px;
}

/* =========================================
   Type Table Grid System
   ========================================= */
.ds-type-table {
    display: grid;
    /* Columns: Spec/Sample (Flex), Typeface, Weight, Size, LineHeight, Case, Spacing */
    grid-template-columns: 2fr 1fr 0.8fr 0.6fr 0.6fr 0.8fr 0.8fr;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    font-size: 13px;
}

.ds-type-table-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.5;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.ds-type-meta {
    opacity: 0.6;
    font-family: var(--font-body);
}

.ds-type-sample {
    color: var(--color-white);
    display: block;
    margin-bottom: 4px;
}

.ds-type-row-label {
    display: block;
    font-size: 11px;
    opacity: 0.4;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1000px) {

    .ds-type-table,
    .ds-type-table-header {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ds-type-meta-group {
        display: none;
        /* Hide detailed meta on mobile if crowded, or stack it */
    }

    /* Alternative mobile layout: Stack everything */
    .ds-type-table {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ds-type-meta {
        font-size: 11px;
        display: inline-block;
        margin-right: 12px;
    }
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.1);
    /* Global border default */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base 1rem */
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: var(--color-text-main);
    background-color: var(--color-soot);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-h1);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: var(--text-h2);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: var(--text-h3);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: var(--text-h4);
    line-height: 1.25;
    margin-bottom: var(--spacing-xs);
}

h5 {
    font-size: var(--text-h5);
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

h6 {
    font-size: var(--text-h6);
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

p {
    font-size: var(--text-body1);
    max-width: 70ch;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.text-lg {
    font-size: var(--text-subtitle1);
    line-height: 1.5;
}

.text-sm {
    font-size: var(--text-body2);
}

.text-xs {
    font-size: var(--text-caption);
}

strong {
    color: var(--color-white);
}

.accent {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--color-coquelicot);
    /* Accent color text */
}

/* =========================================
   Typography Utilities (Semantic)
   ========================================= */
.ds-text-display {
    font-size: var(--text-display);
    font-family: var(--font-headline);
    font-weight: 700;
}

.ds-text-h1 {
    font-size: var(--text-h1);
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.1;
}

.ds-text-h2 {
    font-size: var(--text-h2);
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.1;
}

.ds-text-h3 {
    font-size: var(--text-h3);
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.2;
}

.ds-text-body-lg {
    font-size: var(--text-subtitle1);
    font-family: var(--font-body);
    line-height: 1.5;
}

.ds-text-body {
    font-size: var(--text-body1);
    font-family: var(--font-body);
}

.ds-text-body-sm {
    font-size: var(--text-body2);
    font-family: var(--font-body);
}

/* Caption: 12px, Regular, Sentence Case */
.ds-text-caption {
    font-size: var(--text-caption);
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.4;
    font-weight: 400;
    /* Regular */
    letter-spacing: 0.4px;
}

/* Overline: 11px, Medium, ALL CAPS */
.ds-text-overline {
    font-size: var(--text-overline);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.ds-typo-label {
    /* Legacy: Redirecting to Overline to match previous uses, but prefer semantic classes moving forward */
    font-family: var(--font-body);
    font-size: var(--text-overline);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--color-text-muted);
}

/* =========================================
   Layout Structure
   ========================================= */
.ds-layout {
    display: flex;
    min-height: 100vh;
}

.ds-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--color-gravel);
    padding: var(--spacing-md);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    z-index: 10;
}

.ds-content {
    flex: 1;
    padding: var(--spacing-lg);
    max-width: calc(100% - var(--sidebar-width));
    /* Prevent overflow */
}

.ds-section-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-section {
    margin-bottom: var(--spacing-xl);
    scroll-margin-top: var(--spacing-md);
}

/* =========================================
   Utility: Spacing
   ========================================= */
.mt-0 {
    margin-top: 0 !important;
}

.mt-xs {
    margin-top: var(--spacing-xs) !important;
}

.mt-sm {
    margin-top: var(--spacing-sm) !important;
}

.mt-md {
    margin-top: var(--spacing-md) !important;
}

.mt-lg {
    margin-top: var(--spacing-lg) !important;
}

.mt-xl {
    margin-top: var(--spacing-xl) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-xs {
    margin-bottom: var(--spacing-xs) !important;
}

.mb-sm {
    margin-bottom: var(--spacing-sm) !important;
}

.mb-md {
    margin-bottom: var(--spacing-md) !important;
}

.mb-lg {
    margin-bottom: var(--spacing-lg) !important;
}

.mb-xl {
    margin-bottom: var(--spacing-xl) !important;
}

/* Opacity */
.opacity-100 {
    opacity: 1 !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.opacity-70 {
    opacity: 0.7 !important;
}

.opacity-60 {
    opacity: 0.6 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

/* Display & Width */
.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.w-100 {
    width: 100% !important;
}

/* Text alignment */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

/* Typography Utilities */
.italic {
    font-style: italic !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-headline {
    font-family: var(--font-headline) !important;
}

.font-body {
    font-family: var(--font-body) !important;
}

.font-accent {
    font-family: var(--font-accent) !important;
}

.text-white {
    color: var(--color-white) !important;
}

/* Flexbox Utilities */
.items-center {
    align-items: center !important;
}

.items-start {
    align-items: flex-start !important;
}

.justify-between {
    justify-content: space-between !important;
}

.gap-xs {
    gap: var(--spacing-xs) !important;
}

.gap-sm {
    gap: var(--spacing-sm) !important;
}

.gap-md {
    gap: var(--spacing-md) !important;
}

.gap-lg {
    gap: var(--spacing-lg) !important;
}

/* Sizing Utilities */
.w-icon {
    width: 24px;
}

.logo-header {
    height: 28px;
}

.logo-sidebar {
    width: 120px;
}

.logo-preview-lg {
    width: 240px;
}

.logo-preview-md {
    width: 160px;
}

.logo-preview-sm {
    width: 90px;
}

.logo-preview-fav {
    width: 80px;
    height: 80px;
}

.max-w-720 {
    max-width: 720px;
}

/* Color Utilities */
.text-coquelicot {
    color: var(--color-coquelicot) !important;
}

.border-top-light {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-left-brand {
    border-left: 4px solid var(--color-coquelicot);
}




/* Navigation */
.ds-nav ul {
    list-style: none;
}

/* Background Utilities */
.bg-coquelicot {
    background-color: var(--color-coquelicot) !important;
}

.bg-soot {
    background-color: var(--color-soot) !important;
}

.bg-gravel {
    background-color: var(--color-gravel) !important;
}

.bg-white {
    background-color: var(--color-white) !important;
}

/* Border Utilities */
.border-bottom-light {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-0 {
    border: 0 !important;
}

/* Spacing */
.mt-2xs {
    margin-top: 4px !important;
}

.items-end {
    align-items: flex-end !important;
}

.ml-xs {
    margin-left: var(--spacing-xs) !important;
}

/* Spacing Demo Utilities */
.spacing-bar-track {
    height: 20px;
    width: 100%;
    background: #2a2a2a;
    border-radius: 4px;
    position: relative;
}

.spacing-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--color-coquelicot);
}

.text-error {
    color: #FF5f56 !important;
}

.list-disc {
    list-style-type: disc;
    padding-left: 20px;
}

.ds-nav li {
    margin-bottom: 4px;
}

.ds-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.ds-nav a:hover,
.ds-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    transform: translateX(4px);
}

.ds-nav i {
    opacity: 0.5;
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.ds-nav a:hover i,
.ds-nav a.active i {
    color: var(--color-coquelicot);
    opacity: 1;
}

/* =========================================
   Components: Cards & Grid
   ========================================= */
.ds-grid,
.ds-grid-3,
.ds-grid-auto {
    display: grid;
    gap: var(--spacing-md);
}

.ds-grid {
    grid-template-columns: 1fr 1fr;
}

.ds-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ds-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ds-card {
    background: var(--color-gravel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ds-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 60, 1, 0.3);
    transform: translateY(-2px);
}

.ds-card-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg);
}

/* =========================================
   Components: Typeface Spec Cards
   ========================================= */
.ds-spec-card {
    background: var(--color-gravel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ds-spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.ds-spec-name {
    font-size: 20px;
    color: var(--color-white);
}

.ds-spec-badge {
    font-size: 10px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.7;
}

.ds-spec-preview {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-white);
}

.ds-spec-sample {
    font-size: 14px;
    opacity: 0.5;
    letter-spacing: 2px;
    margin-top: auto;
}


/* =========================================
   Components: Do / Don't
   ========================================= */
.ds-do-dont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.ds-do,
.ds-dont {
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
}

.ds-do {
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #4CAF50;
}

.ds-dont {
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid #F44336;
}

.ds-status-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.ds-do .ds-status-label {
    color: #4CAF50;
}

.ds-dont .ds-status-label {
    color: #F44336;
}


/* =========================================
   Components: Terminal (AI Rules)
   ========================================= */
.ds-terminal {
    background: #0D0D0D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    padding: 0;
    overflow: hidden;
}

.ds-terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-size: 12px;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 6px;
    align-items: center;
}

.ds-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ds-dot-r {
    background: #FF5f56;
}

.ds-dot-y {
    background: #FFBD2E;
}

.ds-dot-g {
    background: #27C93F;
}

.ds-terminal-body {
    padding: 24px;
    color: #00FF00;
    /* Hacker green text */
    font-size: 13px;
    line-height: 1.6;
}

.ds-terminal-line {
    display: block;
    margin-bottom: 12px;
}

.ds-terminal-line::before {
    content: "> ";
    opacity: 0.5;
}


/* =========================================
   Components: Artboards (Identity)
   ========================================= */
.ds-artboard {
    background-color: var(--color-soot);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 320px;
    /* Fixed height for prominent display */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Technical Grid Pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    /* Inner Glow for depth */
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.ds-pattern-grid {
    background-color: var(--color-soot);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

.ds-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 16px;
    padding: 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.ds-format-badge {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-soot);
    background: var(--color-white);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   Components: Colors
   ========================================= */
.ds-color-card {
    background: var(--color-gravel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.ds-color-preview {
    height: 140px;
    width: 100%;
}

.ds-color-info {
    padding: 20px;
}

.ds-color-name {
    font-family: var(--font-headline);
    font-size: var(--text-h5);
    /* 20px */
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-color-hex {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    /* 12px */
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ds-color-desc {
    font-size: var(--text-body2);
    /* 14px */
    opacity: 0.7;
    margin-top: 8px;
    line-height: 1.5;
}

/* =========================================
   Components: Section Intro
   ========================================= */
.ds-intro-text {
    font-size: var(--text-subtitle1);
    /* 18px */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 60ch;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

/* =========================================
   Components: Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    /* Slightly sharper for pro feel */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 60, 1, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Components: Spacing Demo
   ========================================= */
.ds-grid-spacing {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: flex-end;
}

.ds-swatch {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
    display: inline-block;
}

/* =========================================
   Components: Typography Board
   ========================================= */
.ds-typo-row {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.hierarchy-board {
    background: var(--color-gravel);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hierarchy-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.5;
    color: var(--color-text-muted);
}

.hierarchy-grid {
    display: flex;
    gap: var(--spacing-lg);
}

.type-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.h1-sample {
    font-family: var(--font-headline);
    font-size: 64px;
    line-height: 1;
}

.h2-sample {
    font-family: var(--font-headline);
    font-size: 48px;
    line-height: 1;
}

.h3-sample {
    font-family: var(--font-headline);
    font-size: 32px;
    line-height: 1;
}

.p-sample {
    font-family: var(--font-body);
    font-size: 16px;
}

.sub-sample {
    font-family: var(--font-body);
    font-size: 12px;
}

/* =========================================
   Components: Grid Demo
   ========================================= */
.ds-grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 4px;
}

.col-visual {
    background: rgba(255, 60, 1, 0.1);
    /* light coquelicot */
    border: 1px solid rgba(255, 60, 1, 0.2);
    padding: 12px 4px;
    font-size: 10px;
    text-align: center;
    color: var(--color-coquelicot);
}

.col-1 {
    grid-column: span 1;
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

/* =========================================
   Alerts
   ========================================= */
.alert {
    padding: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-warning {
    background-color: rgba(255, 160, 0, 0.1);
    color: #FFB040;
    border-left: 4px solid #FFAB00;
}

/* =========================================
   Mobile Header & Navigation
   ========================================= */
.ds-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-gravel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 20px;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

.ds-mobile-logo img {
    height: 28px;
}

.ds-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.ds-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.ds-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ds-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ds-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.ds-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ds-sidebar-overlay.active {
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {

    /* Show mobile header */
    .ds-mobile-header {
        display: flex;
    }

    .ds-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .ds-sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Transform sidebar into slide-in panel */
    .ds-layout {
        flex-direction: column;
        padding-top: 60px;
        /* Account for fixed header */
    }

    .ds-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 80px;
        /* Space for mobile header */
    }

    .ds-sidebar.open {
        transform: translateX(0);
    }

    .ds-content {
        max-width: 100%;
        padding: var(--spacing-md);
    }

    .ds-grid,
    .ds-grid-3 {
        grid-template-columns: 1fr;
    }

    .ds-do-dont {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .ds-section-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }

    .ds-section {
        margin-bottom: var(--spacing-lg);
    }

    /* Artboard adjustments */
    .ds-artboard {
        height: 200px;
    }

    .ds-artboard img {
        max-width: 80%;
    }

    /* Color cards */
    .ds-color-preview {
        height: 100px;
    }

    /* Terminal */
    .ds-terminal-body {
        font-size: 11px;
        padding: 16px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .ds-mobile-header {
        padding: 0 16px;
    }

    .ds-content {
        padding: var(--spacing-sm);
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .ds-card {
        padding: var(--spacing-sm);
    }

    .ds-spec-preview {
        font-size: 24px;
    }
}