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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    line-height: 1.6;
    color: #e5e5e5;
    background: #1a1a1a;
    background-image: radial-gradient(ellipse at top center, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at bottom left, rgba(234, 88, 12, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    font-size: 14px;
    min-height: 100vh;
}

/* Ensure all text uses monospace */
* {
    font-family: inherit;
}

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

/* Header layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.2s;
}

.github-link:hover {
    color: #f97316;
    border-color: #f97316;
    transform: translateY(-1px);
}

.github-link svg {
    width: 20px;
    height: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    color: #999;
    font-weight: 400;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 20px;
    color: #fff;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: #fff;
}

p {
    margin: 16px 0;
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 0.95rem;
}

a {
    color: #f97316;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fb923c;
}

/* Hero RSS Subscribe */
.subscribe-card {
    background: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    box-shadow: 8px 8px 0 rgba(249, 115, 22, 0.15);
}

.subscribe-card h2 {
    color: #fff;
    margin: 0 0 16px;
}

.subscribe-card p {
    color: #999;
    margin-bottom: 24px;
}

.subscribe-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #000;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-width: 0;
    overflow-wrap: break-word;
}

.subscribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
    color: #000;
}

.rss-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.subscribe-help {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Method cards */
.method {
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 28px;
    margin: 24px 0;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.method:hover {
    box-shadow: 4px 4px 0 rgba(249, 115, 22, 0.1);
}

.method h3 {
    margin-top: 0;
    color: #f97316;
}

.method ol {
    margin: 16px 0 0 20px;
    color: #999;
}

.method li {
    margin: 10px 0;
}

code {
    background: #2a2a2a;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #f97316;
    border: 1px solid #404040;
}

/* Feature list */
ul {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin: 10px 0;
    color: #999;
}

li strong {
    color: #e5e5e5;
}

section {
    margin: 80px 0;
}

/* URL display */
.url-display {
    background: #242424;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 16px 20px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #f97316;
    word-break: break-all;
    margin: 20px 0;
    position: relative;
    overflow-x: auto;
}

.url-display::before {
    content: '$';
    color: #666;
    margin-right: 8px;
}

/* Stats grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f97316;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* Sponsorship section */
.sponsorship {
    text-align: center;
    margin: 80px 0;
    padding: 48px 32px;
    background: #242424;
    border-radius: 12px;
    border: 1px solid #333;
}

.sponsorship h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #fff;
}

.sponsorship p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
    margin: 16px 0;
}

.sponsor-link {
    color: #f97316;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted #f97316;
}

.sponsor-link:hover {
    color: #fb923c;
    border-bottom-style: solid;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 14px;
}

footer a {
    color: #999;
}

footer a:hover {
    color: #f97316;
}

/* Dotted background accent */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #f97316 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 10px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .github-link {
        align-self: flex-start;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .subscribe-card {
        padding: 32px 24px;
        box-shadow: 4px 4px 0 rgba(249, 115, 22, 0.2);
    }
    
    .subscribe-button {
        font-size: 14px;
        padding: 12px 20px;
        word-break: break-all;
        text-align: center;
    }
    
    .method {
        padding: 20px 16px;
        margin: 20px 0;
    }
    
    .method:hover {
        box-shadow: 2px 2px 0 rgba(249, 115, 22, 0.1);
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    section {
        margin: 60px 0;
    }
    
    .sponsorship {
        padding: 32px 20px;
        margin: 60px 0;
    }
    
    .sponsorship p {
        font-size: 1rem;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .container {
        padding: 10px 16px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subscribe-card {
        padding: 24px 16px;
        margin: 32px 0;
    }
    
    .subscribe-button {
        font-size: 12px;
        padding: 8px 14px;
        flex-direction: column;
        gap: 8px;
        line-height: 1.4;
    }
    
    .rss-icon {
        width: 18px;
        height: 18px;
    }
    
    .method {
        padding: 16px 12px;
    }
}

/* Code Examples Section */
.code-examples {
    margin: 80px 0;
}

.examples-intro {
    font-size: 1rem;
    color: #999;
    margin: 20px 0 32px;
}

/* Automation Cards Grid */
.automation-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.automation-card {
    background: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.automation-card:hover {
    box-shadow: 6px 6px 0 rgba(249, 115, 22, 0.15);
}

.automation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    flex: 1;
}

.card-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector {
    background: #2a2a2a;
    color: #f97316;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    min-width: 100px;
}

.lang-selector:hover {
    border-color: #f97316;
}

.lang-selector:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.copy-btn {
    background: #2a2a2a;
    color: #999;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #333;
    color: #f97316;
    border-color: #f97316;
}

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

.automation-card > p {
    color: #999;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.code-container {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.code-content {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.6;
}

.code-content code {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    display: block;
    text-shadow: none !important;
}

/* Override Prism.js theme - Grey and Orange palette */
.code-content .token.comment,
.code-content .token.prolog,
.code-content .token.doctype,
.code-content .token.cdata {
    color: #666666;
    font-style: italic;
}

.code-content .token.punctuation {
    color: #999999;
}

.code-content .token.property,
.code-content .token.tag,
.code-content .token.boolean,
.code-content .token.number,
.code-content .token.constant,
.code-content .token.symbol,
.code-content .token.deleted {
    color: #f97316;
}

.code-content .token.selector,
.code-content .token.attr-name,
.code-content .token.string,
.code-content .token.char,
.code-content .token.builtin,
.code-content .token.inserted {
    color: #fb923c;
}

.code-content .token.operator,
.code-content .token.entity,
.code-content .token.url,
.code-content .language-css .token.string,
.code-content .style .token.string {
    color: #a0a0a0;
}

.code-content .token.atrule,
.code-content .token.attr-value,
.code-content .token.keyword {
    color: #ea580c;
    font-weight: 500;
}

.code-content .token.function,
.code-content .token.class-name {
    color: #f59e0b;
}

.code-content .token.regex,
.code-content .token.important,
.code-content .token.variable {
    color: #dc2626;
}

/* Mobile responsiveness for code examples */
@media (max-width: 640px) {
    .code-examples {
        margin: 60px 0;
    }
    
    .automation-card {
        padding: 24px 20px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .card-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .lang-selector {
        flex: 1;
        max-width: none;
    }
    
    .code-content {
        padding: 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .automation-card {
        padding: 20px 16px;
        margin: 20px 0;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .code-content {
        padding: 12px;
        font-size: 10px;
    }
    
    .copy-btn {
        padding: 4px 6px;
    }
    
    .copy-btn svg {
        width: 14px;
        height: 14px;
    }
}
