:root {
    --bg-color: #030303;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-red: #c94b42;
    --card-bg: #0a0a0a;
    --card-border: #1a1a1a;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.logo {
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-outline {
    border: 1px solid var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

.hero {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-content {
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 auto 3rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Features Bento Grid Redesign */
.features {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 1.5rem;
}

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    border-color: #333;
    transform: translateY(-4px);
}

.card-tall {
    grid-column: span 4;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 8;
    grid-row: span 1;
}

.card-small {
    grid-column: span 4;
    grid-row: span 1;
}

.card-content .label {
    display: block;
    color: var(--accent-red);
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .card-tall, .card-wide, .card-small {
        grid-column: span 2;
        grid-row: auto;
        min-height: 350px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .card-tall, .card-wide, .card-small {
        grid-column: span 1;
    }
}

/* Testimonial & Code */
.testimonial-code {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.testimonial blockquote {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 400;
}

.code-window {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.window-header {
    background-color: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }

.window-title {
    margin: 0 auto;
    transform: translateX(-20px);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.window-body {
    padding: 1.5rem;
    overflow-x: auto;
}

pre {
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

code .comment { color: #6a9955; }
code .keyword { color: #c586c0; }
code .string { color: #ce9178; }
code .class { color: #4ec9b0; }
code .number { color: #b5cea8; }
code { color: #d4d4d4; }

/* Footer */
.footer {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 4rem 2rem 0;
    border-top: 1px solid var(--card-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Subpage Styles Overhaul */
.subpage-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 12rem 2rem 8rem;
}

.subpage-header {
    margin-bottom: 8rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 4rem;
}

.subpage-header .label {
    color: var(--accent-red);
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.subpage-header h1 {
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: #fff;
}

.subpage-header p {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 700px;
}

.content-section {
    margin-bottom: 8rem;
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.content-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.content-section ul {
    list-style: none;
    margin-top: 3rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

.content-section ul li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #eee;
    display: flex;
    align-items: flex-start;
}

.content-section ul li::before {
    content: "0" counter(list-item) ".";
    counter-increment: list-item;
    color: var(--accent-red);
    font-family: monospace;
    font-size: 0.8rem;
    margin-right: 1.5rem;
    padding-top: 0.3rem;
}

.content-section ul {
    counter-reset: list-item;
}

/* Legal/Text heavy pages */
.text-content {
    max-width: 800px;
}

.text-content h2 {
    font-size: 1.8rem;
    color: #fff;
    margin: 4rem 0 2rem;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Active Link State */
.active {
    color: #fff !important;
    position: relative;
}

.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-red);
}

@media (max-width: 768px) {
    .subpage-header h1 {
        font-size: 3.5rem;
    }
    
    .subpage-header p {
        font-size: 1.2rem;
    }
}

/* Request Form */
.request-form-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem;
    max-width: 600px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: #111;
    border: 1px solid var(--card-border);
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin: 4rem auto;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .card-tall, .card-small-top, .card-small-bottom, .card-wide {
        grid-column: 1;
        grid-row: auto;
        min-height: auto;
    }
    
    .testimonial-code {
        grid-template-columns: 1fr;
    }
}
