:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --card-border: #222222;
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Background Effect */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.2;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dot {
    color: var(--primary);
}

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

.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    /* Changed from inline-flex to flex for better control */
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Take full height to align properly */
}

/* Remove separate margins since we use gap in parent */
.links a:hover {
    color: var(--text-main);
}

.navbar-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.navbar-icon:hover {
    color: var(--text-main);
}

.navbar-icon i {
    width: 20px;
    height: 20px;
}

.github-link {
    display: flex;
    align-items: center;
    padding-top: 3px;
    /* Micro-adjustment for visual optical alignment if SVG baseline differs */
}

.github-link i {
    width: 20px;
    height: 20px;
    display: block;
    /* Removes inline SVG alignment quirks */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 0;
    /* Add top padding to account for fixed navbar */
    position: relative;
    max-width: 1000px;
    /* Limit width to keep text readable */
    margin: 0 auto;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 2rem;
    /* Increased spacing slightly */
    animation: fadeInDown 0.8s ease-out;
    display: inline-block;
}

h1 {
    font-size: 4.5rem;
    /* Slightly larger */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    /* Centered with auto margins */
    line-height: 1.5;
    /* Better readability */
    animation: fadeInUp 1s ease-out;
    font-weight: 400;
}

/* Install Box */
.install-box {
    background: #111;
    /* Darker background */
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 12px;
    /* Smoother corners */
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Subtle depth */
}

.install-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.15);
}

.prompt {
    color: var(--primary);
    user-select: none;
    font-weight: 700;
}

.command {
    font-size: 1.1rem;
    color: #e5e5e5;
}

.copy-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding: 4px;
}

.copy-btn:hover {
    color: var(--text-main);
}

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

/* Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    /* More space between buttons */
    animation: fadeInUp 1.4s ease-out;
    justify-content: center;
    /* Explicit centering */
}

.btn {
    padding: 1rem 2rem;
    /* Larger buttons */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: var(--primary);
    color: #000;
}

.btn.primary:hover {
    background: #34d399;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-main);
}

.btn.secondary:hover {
    border-color: var(--text-main);
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.features,
.roadmap {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-section {
    padding: 1rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 1rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-caption {
    text-align: center;
    color: var(--text-muted);
    margin: -2.5rem auto 3rem;
    max-width: 760px;
    font-size: 1.05rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

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

.card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.product-actions .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.price-card .price-meta {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    color: #d4d4d8;
}

.price-card code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
}

.version-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    color: #555;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 4px;
}

.version-tag.new {
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* Roadmap */
.roadmap {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Adjust for mobile, center usually requires media query logic or flex */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.marker {
    position: absolute;
    left: 11px;
    /* Center over line (20px left + 1px half width - 10px half marker) approx */
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid #555;
    border-radius: 50%;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.marker svg {
    width: 12px;
    height: 12px;
}

.timeline-item.done .marker {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.timeline-item.future .marker {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-item.done h3 {
    color: var(--text-main);
}

.timeline-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
    background: #0a0a0a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.brand h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .links {
        display: none;
        /* Simple hiding for mobile for now, can be improved */
    }

    .cta-group {
        flex-direction: column;
        width: min(100%, 320px);
    }

    .cta-group .btn {
        width: 100%;
    }

    .page-hero {
        min-height: auto;
        padding-top: 6.5rem;
    }

    .timeline::before {
        left: 20px;
    }
}

/* --- Documentation Page Styles --- */

.docs-page {
    background-color: var(--bg-color);
}

.docs-page .navbar {
    position: sticky;
    top: 0;
}

/* Docs Layout */
.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding-top: 80px;
    /* Offset fixed navbar */
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 1rem;
    border-right: 1px solid var(--card-border);
}

/* Hide scrollbar for sidebar but keep functionality */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.sidebar-content h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
}

.sidebar-content h3:first-child {
    margin-top: 0;
}

.sidebar-content a {
    display: block;
    color: #bbb;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.sidebar-content a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-content a.active-link {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    border-left-color: var(--primary);
}

/* Main Content Area */
.docs-content {
    padding: 2rem 4rem 4rem 2rem;
    max-width: 900px;
    /* Readability limit */
}

/* Typography for Docs */
.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.docs-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.docs-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    scroll-margin-top: 100px;
    /* Scroll offset */
}

.docs-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    scroll-margin-top: 100px;
}

.docs-content p,
.docs-content li {
    font-size: 1.05rem;
    color: #ccc;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Feature Grid Mini */
.feature-grid-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.feat-item {
    text-decoration: none;
}

a.feat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.18);
}

.feat-item svg {
    width: 18px;
    height: 18px;
}

/* Step List */
.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 2rem;
    height: 2rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 50%;
    text-align: center;
    line-height: 1.9rem;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.step-list strong {
    color: var(--text-main);
}

/* Code Blocks */
.code-block {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    position: relative;
    margin: 1.5rem 0;
    padding: 1.2rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: var(--font-mono);
    color: #e5e5e5;
    font-size: 0.9rem;
}

.copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.code-block:hover .copy-code {
    opacity: 1;
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

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

/* Inline Code */
p code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: #ddd;
}

/* Table */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.docs-table th {
    background: #1a1a1a;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.docs-table code {
    color: var(--primary);
}

/* Responsive Docs */
@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr;
        /* Stack sidebar on top or hide it */
        padding-top: 60px;
    }

    .sidebar {
        display: none;
        /* For simplicity on mobile, or could become a drawer */
    }

    .docs-content {
        padding: 1rem;
    }
}

/* Feature Lists in Cards */
.feature-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.feature-list li::before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Code Showcase Example */
.code-showcase-section {
    padding: 2rem 0 6rem;
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.code-showcase-container {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.code-header {
    background: #252526;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}

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

.code-header .dot.red {
    background: #ff5f56;
}

.code-header .dot.yellow {
    background: #ffbd2e;
}

.code-header .dot.green {
    background: #27c93f;
}

.code-header .filename {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #999;
}

.code-showcase-container pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-showcase-container code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #d4d4d4;
    line-height: 1.5;
}

/* Simple Syntax Highlighting for the demo */
.key {
    color: #9cdcfe;
}

.string {
    color: #ce9178;
}

.number {
    color: #b5cea8;
}

/* Company blueprint homepage */
.blueprint-home {
    --primary: #54e39a;
    --primary-glow: rgba(84, 227, 154, 0.35);
}

.blueprint-home .background-glow {
    top: -12rem;
    width: 900px;
    height: 700px;
    opacity: 0.28;
}

.blueprint-home .logo {
    color: var(--text-main);
    text-decoration: none;
}

.blueprint-home .navbar {
    padding-inline: max(5%, calc((100% - 1200px) / 2));
}

.company-hero {
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 1rem 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 5rem;
    align-items: center;
}

.company-hero .badge {
    margin-bottom: 1.75rem;
    animation: none;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.company-hero h1 {
    max-width: 850px;
    margin: 0 0 1.75rem;
    text-align: left;
    font-size: clamp(3.5rem, 6.6vw, 6.7rem);
    animation: none;
}

.company-hero .subtitle {
    max-width: 700px;
    margin: 0 0 2.5rem;
    text-align: left;
    font-size: 1.2rem;
    animation: none;
}

.company-hero .cta-group {
    justify-content: flex-start;
    animation: none;
}

.company-hero .btn svg,
.closing-cta .btn svg {
    width: 17px;
    margin-left: 0.65rem;
}

.hero-system {
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.72);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.system-label,
.eyebrow {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.system-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 1.25rem;
}

.system-row strong {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.system-row span {
    font-weight: 600;
}

.system-line {
    height: 1px;
    margin-left: 2.3rem;
    background: linear-gradient(90deg, rgba(84, 227, 154, 0.45), transparent);
}

.company-strip {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 4rem);
    border-block: 1px solid #222;
    color: #d4d4d8;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.company-strip svg {
    width: 15px;
    color: var(--primary);
}

.company-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 1rem;
    scroll-margin-top: 72px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.section-heading h2,
.operating-copy h2,
.partner-banner h2,
.closing-cta h2 {
    margin-top: 0.8rem;
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-heading > p,
.operating-copy > p,
.partner-banner > p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.portfolio-card {
    grid-column: span 2;
    min-height: 330px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: linear-gradient(145deg, #121212, #0d0d0d);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.portfolio-card.featured-product {
    grid-column: span 3;
    min-height: 430px;
}

.portfolio-card:hover {
    border-color: rgba(84, 227, 154, 0.55);
    transform: translateY(-4px);
}

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

.product-number {
    color: #555;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.product-state {
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(84, 227, 154, 0.3);
    border-radius: 999px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.product-state.muted {
    border-color: #333;
    color: #777;
}

.product-icon {
    width: 48px;
    height: 48px;
    margin: 3.5rem 0 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(84, 227, 154, 0.09);
}

.portfolio-card:not(.featured-product) .product-icon {
    margin-top: 2.5rem;
}

.product-icon svg {
    width: 23px;
}

.portfolio-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.45rem;
}

.portfolio-card p {
    color: var(--text-muted);
}

.portfolio-card ul {
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.portfolio-card li {
    padding: 0.35rem 0.6rem;
    border: 1px solid #282828;
    border-radius: 6px;
    color: #b8b8bd;
    font-size: 0.75rem;
}

.text-link {
    width: fit-content;
    margin-top: auto;
    padding-top: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.text-link svg {
    width: 16px;
}

.services-section {
    max-width: none;
    padding-inline: max(1rem, calc((100% - 1200px) / 2));
    background: #090909;
    border-block: 1px solid #1c1c1c;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #262626;
    border-radius: 16px;
    overflow: hidden;
}

.service-grid article {
    min-height: 260px;
    padding: 2rem;
    border-right: 1px solid #262626;
}

.service-grid article:last-child {
    border-right: 0;
}

.service-grid svg {
    width: 27px;
    color: var(--primary);
    margin-bottom: 4rem;
}

.service-grid h3 {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.service-grid p,
.model-steps p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.operating-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.operating-copy > p {
    margin-top: 1.75rem;
}

.model-steps {
    list-style: none;
}

.model-steps li {
    padding: 1.35rem 0;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    border-bottom: 1px solid #262626;
}

.model-steps > li > span {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.model-steps strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}

.partner-banner {
    max-width: 1200px;
    margin: 2rem auto 7rem;
    padding: 4rem;
    display: grid;
    grid-template-columns: auto 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    border: 1px solid rgba(84, 227, 154, 0.25);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(84, 227, 154, 0.1), rgba(17, 17, 17, 0.8) 55%);
}

.partner-banner h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.partner-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #050505;
    background: var(--primary);
}

.partner-icon svg {
    width: 30px;
}

.roadmap-section {
    padding-top: 1rem;
}

.section-heading.compact h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.phase-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #333;
}

.phase {
    position: relative;
    padding: 2rem 1.25rem 0 0;
}

.phase::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #555;
}

.phase.active::before {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.phase span,
.phase small,
.phase strong {
    display: block;
}

.phase span {
    margin-bottom: 1.4rem;
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.phase strong {
    margin-bottom: 0.35rem;
}

.phase small {
    color: var(--text-muted);
}

.closing-cta {
    min-height: 70vh;
    padding: 7rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid #222;
    background: radial-gradient(circle at 50% 65%, rgba(84, 227, 154, 0.13), transparent 42%);
}

.closing-cta h2 {
    margin: 1rem 0 2.5rem;
    font-size: clamp(3.5rem, 7vw, 7rem);
}

.blueprint-home footer {
    margin-top: 0;
}

@media (max-width: 900px) {
    .company-hero,
    .section-heading,
    .operating-section,
    .partner-banner {
        grid-template-columns: 1fr;
    }

    .company-hero {
        gap: 3rem;
    }

    .section-heading,
    .operating-section {
        gap: 2rem;
    }

    .portfolio-card,
    .portfolio-card.featured-product {
        grid-column: span 3;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid article:nth-child(2) {
        border-right: 0;
    }

    .service-grid article:nth-child(-n+2) {
        border-bottom: 1px solid #262626;
    }

    .partner-banner {
        margin-inline: 1rem;
    }
}

@media (max-width: 768px) {
    .blueprint-home .navbar {
        align-items: center;
    }

    .blueprint-home .links {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
    }

    .blueprint-home .links a:nth-child(3),
    .blueprint-home .links a:nth-child(4),
    .blueprint-home .github-link {
        display: none;
    }

    .company-hero {
        min-height: auto;
        padding-top: 8rem;
    }

    .company-hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .company-hero .cta-group {
        align-items: stretch;
    }

    .company-strip {
        padding-inline: 1rem;
        gap: 0.7rem;
        text-align: center;
    }

    .company-section {
        padding-block: 5.5rem;
    }

    .portfolio-grid,
    .service-grid,
    .phase-track {
        grid-template-columns: 1fr;
    }

    .portfolio-card,
    .portfolio-card.featured-product {
        grid-column: auto;
        min-height: 340px;
    }

    .service-grid article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid #262626;
    }

    .service-grid article:last-child {
        border-bottom: 0;
    }

    .service-grid svg {
        margin-bottom: 2.5rem;
    }

    .partner-banner {
        padding: 2rem;
        gap: 1.5rem;
    }

    .phase-track {
        border-top: 0;
        border-left: 1px solid #333;
    }

    .phase {
        padding: 0 0 2rem 2rem;
    }

    .phase::before {
        top: 0;
        left: -5px;
    }

    .phase span {
        margin-bottom: 0.5rem;
    }

    .footer-content {
        align-items: flex-start;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .portfolio-card { transition: none; }
}
