/* --- CSS VARIABLES (Modern Tech Palette) --- */
:root {
    --bg-main: #ffffff;
    --bg-offset: #f9fafb;
    --bg-apple-grey: #f5f5f7; /* Solid premium steel grey */
    --bg-apple-glass: rgba(245, 245, 247, 0.85); /* Frosted glass version */
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb; 
    --primary-hover: #1d4ed8;
    --border: #e5e7eb;
    --code-bg: #1f2937;
    --max-width: 900px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- LAYOUT CONTAINERS --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
main {
    flex: 1; 
    padding: 3rem 0;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--bg-apple-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* --- BRAND LOGO (STACKED) --- */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}
.logo-main {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.logo-main span { 
    color: var(--primary); 
}
.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

nav { display: flex; gap: 1.5rem; }
nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
nav a:hover, nav a.active { color: var(--primary); }

/* --- TYPOGRAPHY & CONTENT --- */
h1, h2, h3 { color: var(--text-main); font-weight: 700; letter-spacing: -0.025em; margin-top: 2rem; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; line-height: 1.2; margin-top: 0; }
h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; font-size: 1.05rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- CODE BLOCKS --- */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--bg-offset);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--border);
    color: #db2777;
}
pre {
    background: var(--code-bg);
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
pre code { background: transparent; border: none; color: inherit; padding: 0; }

/* --- BUTTONS & TAGS --- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-hover); }
.tag {
    display: inline-block;
    background: var(--bg-offset);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- FOOTER (ENTERPRISE SAAS DESIGN) --- */
footer {
    margin-top: 4rem; 
    background-color: var(--bg-apple-grey); 
    border-top: 1px solid var(--border);
    padding: 4rem 0 1rem 0; 
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col.brand-col .logo-wrapper {
    display: flex;
    margin-bottom: 1.25rem;
}

.footer-col.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Make it stack nicely on mobile phones */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
}