:root {
    /* Brand Palette */
    --iron-charcoal: #2A2F35;
    --rust-orange: #8C4615;
    --brushed-steel: #A0AAB5;
    --terminal-green: #39E639;
    --alert-red: #FF3333;
    
    /* Functional Colors */
    --bg-color: #FFFFFF;
    --text-color: var(--iron-charcoal);
    --secondary-bg: #F0F4F8;
    --code-bg: #1E1E1E;
    --code-text: #D4D4D4;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--rust-orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--iron-charcoal);
}

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

/* Header */
header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--brushed-steel);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 64px;
    vertical-align: middle;
    width: auto;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--iron-charcoal);
}

.nav-links a.btn {
    margin-left: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--rust-orange);
    color: #FFFFFF !important;
    border: 2px solid var(--rust-orange);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #a3521a;
    border-color: #a3521a;
    color: #FFFFFF !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--iron-charcoal);
    border: 2px solid var(--iron-charcoal);
}

.btn-secondary:hover {
    background-color: var(--iron-charcoal);
    color: white;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--iron-charcoal);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-actions {
    margin-bottom: 3rem;
}

/* Terminal/Diff Demo */
.terminal-window {
    background-color: var(--iron-charcoal);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background-color: #1a1e22;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-body {
    padding: 20px;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.diff-add {
    color: var(--terminal-green);
    background-color: rgba(57, 230, 57, 0.1);
    display: block;
}

.diff-del {
    color: var(--alert-red);
    background-color: rgba(255, 51, 51, 0.1);
    display: block;
    text-decoration: line-through; /* Optional for diff style */
    text-decoration-thickness: 1px;
}

.diff-ctx {
    color: #888;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--brushed-steel);
    border-radius: 8px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--rust-orange);
}

.feature-icon {
    font-size: 2rem;
    color: var(--rust-orange);
    margin-bottom: 20px;
    display: block;
}

/* How It Works */
.how-it-works {
    background-color: var(--iron-charcoal);
    color: white;
    padding: 80px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--rust-orange);
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: #ccc;
}

/* Footer */
footer {
    background-color: #1a1e22;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--iron-charcoal);
    border-bottom: 2px solid var(--brushed-steel);
    padding-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content pre {
    background-color: var(--iron-charcoal);
    color: #FFFFFF;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

.content code {
    background-color: var(--secondary-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.content pre code {
    background-color: transparent;
    padding: 0;
}

.page-header {
    background-color: var(--iron-charcoal);
    color: white;
    padding: 60px 0;
}

.page-header h1 {
    margin: 0;
    color: white;
}

/* Utility */
.text-highlight {
    color: var(--rust-orange);
}
