/* Base Variables & Reset */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-inverse: #000000;
    
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-inverse: #ffffff;
    
    --border-color: #000000;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --container-width: 1400px;
    --header-height: 80px;
    --spacing-unit: 1rem;
}

/* Grain Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Selection (Ink Highlight) */
::selection {
    background: var(--bg-inverse);
    color: var(--text-inverse);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; color: var(--text-secondary); }

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--bg-inverse);
    color: var(--text-inverse);
    font-weight: 500;
    border: 1px solid var(--bg-inverse);
    border-radius: 2px; /* Sharper corners for ink look */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    /* Keep it solid black to feel like heavy ink */
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--text-inverse);
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    z-index: 1003; /* Keep logo above mobile menu */
    position: relative;
    line-height: 1;
}

/* Desktop Menu Wrapper */
.nav-menu {
    display: flex;
    align-items: center;
    flex: 1; /* Take up remaining space */
    margin-left: 2rem; /* Spacing from logo */
}

.nav-links-center {
    display: flex;
    gap: 4rem;
    flex: 1; /* Take up all available space between logo and CTA */
    justify-content: center; /* Center the links within that space */
    align-items: center;
}

.nav-links-center a {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.nav-links-center a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Ink Blot Background */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 60%; /* Position to the right */
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 70%);
    border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%; /* Organic Blob Shape */
    z-index: -1;
    filter: blur(40px);
    animation: blobFloat 10s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%; transform: translate(-50%, -50%) rotate(0deg); }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%, -50%) rotate(10deg); }
}

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

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Sections General */
section {
    padding: 100px 0;
}

/* About / Intro */
.about {
    background-color: var(--bg-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Tech Stack Marquee */
.tech-stack-container {
    overflow: hidden;
    padding: 2rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.tech-stack-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.tech-stack-track span {
    font-family: 'Courier New', Courier, monospace; /* Typewriter look */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary); /* Darker for better contrast */
    margin-right: 4rem;
    text-transform: uppercase;
    letter-spacing: -0.05em; /* Tight tracking for typewriter effect */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Manifesto */
.manifesto {
    background-color: var(--bg-inverse);
    color: var(--text-inverse);
    text-align: center;
    padding: 140px 0;
}

.manifesto h2 {
    color: var(--text-inverse);
    font-size: 3rem;
    margin-bottom: 2rem;
}

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

/* ROI Section */
.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.roi-card {
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.roi-card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.roi-card ul {
    list-style: none;
}

.roi-card li {
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem; /* Slightly smaller for monospace */
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}

.roi-card li i {
    width: 20px;
    height: 20px;
}

.old-way {
    background: #fdfdfd;
}

.old-way h3 { color: #666; }
.old-way li i { color: #ff4444; }

.new-way {
    background: var(--bg-inverse);
    color: var(--text-inverse);
    border: 1px solid var(--bg-inverse);
}

.new-way h3 { color: var(--text-inverse); }
.new-way li { color: #ccc; }
.new-way li i { color: #44ff88; }

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

.service-card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: transform 0.2s;
}

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

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Features/Process */
.process-step {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.process-step h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-num {
    font-size: 0.9rem;
    background: var(--bg-inverse);
    color: var(--text-inverse);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Footer */
footer {
    background-color: var(--bg-inverse);
    color: var(--text-inverse);
    padding: 80px 0 40px;
}

footer h2, footer h3 {
    color: var(--text-inverse);
}

footer p {
    color: #888;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    
    .mobile-toggle .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 18px;
        cursor: pointer;
    }

    .mobile-toggle .hamburger span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transition: 0.3s;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: 0.3s ease;
        border-left: 1px solid var(--border-color);
        margin-left: 0;
        gap: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-links-center {
        flex-direction: column;
        align-items: center;
        margin: 0;
        gap: 2rem;
        flex: initial; /* Reset flex grow on mobile */
    }
    
    .grid-2, .footer-content, .roi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .manifesto {
        padding: 80px 0;
    }

    .manifesto h2 {
        font-size: 2rem;
    }
}
