/* ============================================
   Harding Programming Language Website
   Modern, clean design with dark theme
   ============================================ */

/* CSS Variables - Harding Smalltalk: The Mysterious Island Theme */
:root {
    /* Deep ocean and sunset adventure palette */
    --color-deep-ocean: #0a0f1a;
    --color-midnight: #0d1421;
    --color-navy: #162035;
    --color-navy-light: #1e2d47;
    --color-navy-dark: #080c14;

    /* Balloon/Airship gold and copper */
    --color-gold: #e8b84a;
    --color-gold-light: #f5d78e;
    --color-gold-dark: #c49a3b;
    --color-copper: #b87333;
    --color-copper-light: #d4915a;

    /* Sunset accents */
    --color-sunset: #e85a4f;
    --color-sunset-light: #f07a6e;
    --color-amber: #f5a623;
    --color-amber-light: #f7b84e;

    /* Background colors - deeper and more dramatic */
    --color-bg: #0a0f1a;
    --color-bg-secondary: #0d1421;
    --color-bg-tertiary: #162035;
    --color-bg-code: #080c14;

    /* Text colors */
    --color-text: #f0e6d3;
    --color-text-secondary: #c9bba8;
    --color-text-muted: #7a6f5e;

    /* Primary accent - Warm gold */
    --color-primary: #e8b84a;
    --color-primary-light: #f5d78e;
    --color-primary-dark: #c49a3b;

    /* Secondary accents - Sunset palette */
    --color-accent-cyan: #5eead4;
    --color-accent-pink: #f07a6e;
    --color-accent-green: #7dd87a;
    --color-accent-yellow: #f7b84e;
    --color-accent-orange: #e85a4f;

    --color-border: #2d3a52;
    --color-border-light: #3d4d6a;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-cyan);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 184, 74, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    font-size: 24px;
    color: var(--color-primary-light);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
}

/* Hero Logo Display */
.hero-logo {
    margin-bottom: 32px;
}

.hero-logo img {
    width: 320px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(212, 168, 75, 0.2);
}

/* Gold accent text */
.text-gold {
    color: var(--color-gold);
}

/* Navy accent background */
.bg-navy {
    background: var(--color-navy);
}

/* Enhanced code window - Airship instrument panel look */
.code-window {
    background: linear-gradient(145deg, rgba(13, 20, 33, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 184, 74, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(232, 184, 74, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.code-window:hover {
    transform: rotateY(0) rotateX(0);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 100px rgba(232, 184, 74, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Feature card enhancements */
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 184, 74, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(232, 184, 74, 0.1);
}

/* Quote styling */
blockquote {
    border-left-color: var(--color-gold);
}

/* Active nav link */
.nav-menu a.active {
    color: var(--color-gold);
    background: rgba(212, 168, 75, 0.1);
}

/* Comparison table enhancements */
.comparison-table th {
    background: rgba(232, 184, 74, 0.1);
    color: var(--color-gold-light);
}

/* Sidebar section */
.sidebar-section {
    background: rgba(22, 32, 53, 0.6);
    border: 1px solid rgba(232, 184, 74, 0.15);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--color-text);
    background: var(--color-bg-tertiary);
}

.nav-menu .nav-cta {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-navy-dark);
    font-weight: 600;
    margin-left: 8px;
}

.nav-menu .nav-cta:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-sunset) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    opacity: 0.12;
    animation: orb-pulse 8s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    opacity: 0.1;
    animation: orb-pulse 10s ease-in-out infinite reverse;
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gold-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-copper) 100%);
    color: var(--color-navy-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(232, 184, 74, 0.3), 0 0 20px rgba(232, 184, 74, 0.1);
    border: 1px solid rgba(232, 184, 74, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 184, 74, 0.4), 0 0 30px rgba(232, 184, 74, 0.15);
}

.btn-secondary {
    background: rgba(22, 32, 53, 0.6);
    color: var(--color-gold-light);
    border: 1px solid rgba(232, 184, 74, 0.3);
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: rgba(232, 184, 74, 0.1);
    border-color: rgba(232, 184, 74, 0.5);
    color: var(--color-gold);
}

/* Hero Code Window */
.hero-code {
    perspective: 1000px;
}

.code-window {
    background: var(--color-bg-code);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.code-window:hover {
    transform: rotateY(0) rotateX(0);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--color-border);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-title {
    font-size: 13px;
    color: var(--color-gold-light);
    font-family: var(--font-mono);
}

.code-body {
    padding: 20px;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
}

/* Syntax Highlighting */
.comment { color: var(--color-text-muted); font-style: italic; }
.type { color: var(--color-accent-cyan); }
.keyword { color: var(--color-accent-pink); }
.string { color: var(--color-accent-green); }
.number { color: var(--color-accent-yellow); }
.operator { color: var(--color-accent-orange); }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 184, 74, 0.08);
    border: 1px solid rgba(232, 184, 74, 0.25);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--color-text-secondary);
    margin-top: 12px;
}

/* ============================================
   Features Section
   ============================================ */

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   Examples Section
   ============================================ */

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

.example-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--color-border-light);
    color: var(--color-text);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border-color: var(--color-gold);
    color: var(--color-navy-dark);
    font-weight: 600;
}

.example-panels {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.code-block {
    background: var(--color-bg-code);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-block .code-header {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.code-block pre {
    padding: 20px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
}

/* ============================================
   Playground Section
   ============================================ */

.playground {
    background: var(--color-bg-secondary);
}

.playground-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.playground-editor {
    background: var(--color-bg-code);
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--color-border);
}

.editor-header span {
    font-size: 13px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.run-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-navy-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.run-btn:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    transform: translateY(-1px);
}

.run-btn svg {
    width: 14px;
    height: 14px;
}

.editor-textarea {
    flex: 1;
    min-height: 300px;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--color-border);
}

.toolbar-btn {
    padding: 6px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toolbar-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.playground-output {
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--color-border);
}

.output-header span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.clear-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.output-content {
    flex: 1;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow-y: auto;
    max-height: 300px;
}

.output-placeholder {
    color: var(--color-text-muted);
    font-style: italic;
}

.output-line {
    margin-bottom: 4px;
}

.output-line.output {
    color: var(--color-gold);
}

.output-line.error {
    color: var(--color-accent-pink);
}

/* ============================================
   Install Section
   ============================================ */

.install {
    background: var(--color-bg);
}

.install-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.install-card {
    padding: 40px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.install-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
}

.install-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-gold);
}

.install-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.code-snippet {
    position: relative;
    background: var(--color-bg-code);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    text-align: left;
}

.code-snippet pre {
    padding: 16px 20px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.copy-btn.copied {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy-dark);
}

.install-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.install-card code {
    padding: 2px 6px;
    background: var(--color-bg-tertiary);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: linear-gradient(180deg, rgba(13, 20, 33, 0.8) 0%, rgba(8, 12, 20, 0.95) 100%);
    border-top: 1px solid rgba(232, 184, 74, 0.15);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer-column a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-code {
        order: -1;
    }

    .code-window {
        transform: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .code-comparison {
        grid-template-columns: 1fr;
    }

    .playground-container {
        grid-template-columns: 1fr;
    }

    .playground-output {
        border-left: none;
        border-top: 1px solid var(--color-border);
    }
}

@media (max-width: 768px) {
    .navbar {
        backdrop-filter: none;
        background: rgba(10, 15, 26, 0.98);
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

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

    .install-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .install-card {
        padding: 24px;
    }

    .install-icon {
        width: 48px;
        height: 48px;
    }

    .install-icon svg {
        width: 24px;
        height: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    /* Mobile hero adjustments */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

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

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

    .hero-logo {
        margin-bottom: 24px;
    }

    .hero-logo img {
        width: 240px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 48px);
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-code {
        order: 2;
    }

    .code-window {
        transform: none;
    }

    .hero-logo-bg {
        width: 400px;
        height: 400px;
        opacity: 0.02;
    }

    /* Smaller gradient orbs on mobile to prevent overflow */
    .orb-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }

    .orb-2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -100px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .hero-bg,
    .scroll-indicator,
    .playground,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    section {
        padding: 40px 0;
    }
}

/* ============================================
   Page Header (for subpages)
   ============================================ */

.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, rgba(13, 20, 33, 0.9) 0%, rgba(10, 15, 26, 0.95) 100%);
    border-bottom: 1px solid rgba(232, 184, 74, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
    padding: 80px 0;
}

.content-section.alt {
    background: var(--color-bg-secondary);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
}

.main-content {
    max-width: 720px;
}

.main-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 48px 0 24px;
    color: var(--color-text);
}

.main-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.main-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.main-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.main-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.main-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.main-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-tertiary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.main-content blockquote p {
    font-size: 20px;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 8px;
}

.main-content blockquote cite {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: normal;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

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

.sidebar-section li {
    margin-bottom: 10px;
}

.sidebar-section a {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.sidebar-section a:hover {
    color: var(--color-primary-light);
}

/* ============================================
   Comparison Tables
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: var(--color-bg-tertiary);
    font-weight: 600;
    color: var(--color-text);
}

.comparison-table td {
    color: var(--color-text-secondary);
}

.comparison-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

.diff-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
}

/* ============================================
   Feature Detail Layout
   ============================================ */

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-detail.reverse {
    direction: rtl;
}

.feature-detail.reverse > * {
    direction: ltr;
}

.feature-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-text ul {
    list-style: none;
    padding: 0;
}

.feature-text li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--color-text-secondary);
}

.feature-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-large {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.feature-icon-large {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon-large svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary-light);
}

.feature-card-large h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card-large p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.feature-card-large pre {
    font-size: 13px;
}

/* ============================================
   Docs Grid
   ============================================ */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.doc-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.doc-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.doc-card pre {
    margin-bottom: 16px;
}

.doc-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ============================================
   Example Grid
   ============================================ */

.example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.example-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.example-item h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ============================================
   Reference Grid
   ============================================ */

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ref-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.ref-category ul {
    list-style: none;
}

.ref-category li {
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
}

.ref-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
}

.ref-category a {
    font-weight: 500;
}

.ref-category a:hover {
    color: var(--color-accent-cyan);
}

/* ============================================
   Help Grid
   ============================================ */

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.help-item {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.help-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.help-item p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   Comparison Section (For Smalltalkers)
   ============================================ */

.comparison-section {
    margin-top: 40px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comparison-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.comparison-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.comparison-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent-green);
}

.comparison-card li:last-child {
    border-bottom: none;
}

.diff-table {
    width: 100%;
    font-size: 14px;
}

.diff-table th,
.diff-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.diff-table th {
    color: var(--color-text-muted);
    font-weight: 500;
}

.diff-table td {
    color: var(--color-text-secondary);
}

.diff-table td code {
    background: var(--color-bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================================
   Active Navigation
   ============================================ */

.nav-menu a.active {
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* ============================================
   Responsive for new components
   ============================================ */

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

    .sidebar {
        position: static;
        order: -1;
    }

    .feature-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-detail.reverse {
        direction: ltr;
    }

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

    .docs-grid,
    .ref-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .content-section {
        padding: 60px 0;
    }

    .main-content h2 {
        font-size: 24px;
    }

    .main-content h3 {
        font-size: 20px;
    }
}
