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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px; /* Account for fixed header + spacing */
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    padding-top: 80px; /* Account for fixed header */
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #000;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand:hover {
    text-decoration: none;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #555;
    font-weight: 400;
    margin-top: 0.25rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}

.main-nav a:hover {
    color: #5b6b9e;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5b6b9e;
    transition: width 0.2s;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: #5b6b9e;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #000;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.menu-toggle:hover {
    background: #000;
    color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #000;
}

.hero-content {
    max-width: 900px;
}

.subheadline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.mini-line {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Feature Bullets */
.feature-bullets {
    list-style: none;
    margin: 2rem 0;
    font-size: 1.2rem;
}

.feature-bullets li {
    padding: 0.5rem 0;
}

.feature-bullets li:before {
    content: "■ ";
    color: #5b6b9e;
    font-weight: bold;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: #5b6b9e;
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #5b6b9e;
    transition: all 0.2s;
}

.cta-button:hover {
    background: #fff;
    color: #5b6b9e;
}

.cta-button-secondary {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #000;
    transition: all 0.2s;
}

.cta-button-secondary:hover {
    background: #000;
    color: #fff;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Section Separator */
.section-separator {
    border-top: 1px solid #e0e0e0;
}

/* Problem Section */
.problem-section {
    text-align: center;
    background: #fafafa;
}

.problem-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 1rem auto;
    line-height: 1.8;
}

/* Hosted CI Section */
.hosted-ci-section {
    background: #fff;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* Bullets List */
.bullets-list {
    list-style: none;
}

.bullets-list li {
    padding: 0.2rem 0;
    font-size: 1.1rem;
}

.bullets-list li:before {
    content: "→ ";
    font-weight: bold;
}

/* Copy Line */
.copy-line {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #5b6b9e;
    background: #f5f5f5;
}

/* Cache Details */
.cache-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
}

.cache-details h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cache-details ul {
    list-style: none;
    font-size: 0.95rem;
}

.cache-details li {
    padding: 0.3rem 0;
}

/* Pricing Section */
.pricing-section {
    background: #fafafa;
}

.pricing-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-family: "Courier New", monospace;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border: 2px solid #000;
}

.pricing-table th {
    background: #000;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-table tr:nth-child(even) {
    background: #fff;
}

.pricing-callout {
    margin: 2rem 0;
    padding: 1rem;
    background: #fff;
    border-left: 4px solid #5b6b9e;
}

.pricing-callout p {
    margin: 0.5rem 0;
}

/* Who Section */
.who-section {
    background: #fff;
}

.split-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.column-box {
    padding: 2rem;
    border: 3px solid #000;
}

.column-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.column-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.column-box.positive {
    background: #f0f8f0;
}

.column-box.negative {
    background: #f8f0f0;
}

.mini-line-bottom {
    text-align: center;
    font-size: 1rem;
    margin-top: 2rem;
    font-style: italic;
}

/* Trust Section */
.trust-section {
    background: #000;
    color: #fff;
    text-align: center;
}

.trust-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer CTA */
.footer-cta {
    text-align: center;
    padding: 5rem 0;
    background: #fafafa;
}

.footer-cta h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.secondary-link {
    display: block;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #5b6b9e;
    text-decoration: none;
    font-weight: 600;
}

.secondary-link:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1rem;
    color: #5b6b9e;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Principles Section */
.hiw-section {
    background: #fff;
}

.principles-list {
    list-style: none;
    max-width: 800px;
    margin: 2rem 0;
}

.principles-list li {
    padding: 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.principles-list li:before {
    content: "■ ";
    color: #5b6b9e;
    font-weight: bold;
    margin-right: 0.5rem;
}

.principles-list li:last-child {
    border-bottom: none;
}

/* What We Do Section */
.what-we-do-section {
    background: #fafafa;
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.services-list li {
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #000;
    font-size: 1.1rem;
    font-weight: 500;
}

.services-list li:before {
    content: "→ ";
    font-weight: bold;
    font-size: 1.3rem;
}

.what-we-do-section .copy-line {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 3rem 0;
    padding: 2rem;
    border-left: 4px solid #5b6b9e;
    background: #fff;
}

/* Charging Section */
.charging-section {
    background: #000;
    color: #fff;
}

.charging-section h2 {
    color: #fff;
}

.charging-content {
    font-size: 1.4rem;
    line-height: 1.9;
    max-width: 900px;
    font-weight: 500;
}

.charging-content strong {
    color: #5b6b9e;
    font-weight: 700;
}

/* Site Footer */
.site-footer {
    background: #000;
    color: #fff;
    padding: 3rem 0 2rem;
    border-top: 3px solid #000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #5b6b9e;
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-disclaimer p {
    margin-bottom: 1rem;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Open Source Page Styles */
.commitment-section {
    background: #fafafa;
}

.philosophy-section {
    background: #fff;
}

/* Projects Section */
.projects-section {
    background: #fafafa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-card {
    background: #fff;
    border: 2px solid #000;
    padding: 1.5rem;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1.2rem;
    margin: 0;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: #5b6b9e;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: auto;
}

.project-link {
    color: #5b6b9e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.project-link:hover {
    color: #000;
    text-decoration: underline;
}

.project-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Contribution Section */
.contribution-section {
    background: #fff;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contribution-card {
    padding: 1.5rem;
    background: #fafafa;
    border-left: 4px solid #5b6b9e;
}

.contribution-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #000;
}

.contribution-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .site-header {
        padding: 0.75rem 1rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        border-bottom: 2px solid #000;
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .main-nav a::after {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .two-column,
    .split-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        min-height: 60vh;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button,
    .cta-button-secondary {
        text-align: center;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .charging-content {
        font-size: 1.2rem;
    }

    .footer-cta h2 {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-disclaimer {
        font-size: 0.75rem;
        padding-top: 1.5rem;
    }

    /* Open Source Page Mobile Styles */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-tech {
        justify-content: flex-start;
    }

    .contribution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
