/* Minds & Machines Design System - Minimalist, Data-Driven, Credible */

/* CSS Variables - Design Tokens */
:root {
    /* Core Colors - HSL format */
    --color-background: 60 14% 98%; /* #FAFAF8 off-white */
    --color-foreground: 0 0% 10%; /* #1A1A1A dark charcoal */

    --color-primary: 0 0% 10%;
    --color-primary-foreground: 60 14% 98%;

    --color-secondary: 0 0% 54%; /* #8A8A8A */
    --color-muted: 60 7% 90%; /* #E6E6E3 */
    --color-muted-foreground: 0 0% 23%; /* #3A3A3A */

    --color-accent: 221 77% 60%; /* #4A76E8 soft blue */
    --color-border: 60 7% 90%;

    /* Spacing */
    --section-spacing: 7.5rem; /* 120px */
    --content-max-width: 700px;

    /* Animation */
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--color-border));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    line-height: 1.7;
    background-color: hsl(var(--color-background));
    color: hsl(var(--color-foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
}

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Header Section */
.header-section {
    margin-bottom: 4rem;
    text-align: center;
}

.logo {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .logo {
        width: 8rem;
        height: 8rem;
    }
}

.brand-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: hsl(var(--color-foreground));
}

@media (min-width: 768px) {
    .brand-title {
        font-size: 3.75rem;
    }
}

.tagline {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: hsl(var(--color-muted-foreground));
}

/* Intro Section */
.intro-section {
    margin-bottom: 5rem;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: hsl(var(--color-foreground));
}

/* Content Sections */
.content-section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: hsl(var(--color-foreground));
}

.section-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: hsl(var(--color-muted-foreground));
}

/* Subsections */
.subsection {
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--color-border));
    color: hsl(var(--color-foreground));
}

.subsection-body {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
}

.tooling-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: hsl(var(--color-muted-foreground) / 0.7);
    font-style: italic;
    margin-top: 1rem;
}

.tooling-text strong {
    font-weight: 600;
    font-style: normal;
}

/* Founders Section */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.founder-card {
    text-align: center;
}

.founder-photo {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    transition: all 500ms ease;
}

@media (min-width: 768px) {
    .founder-photo {
        width: 8rem;
        height: 8rem;
    }
}

.founder-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--color-foreground));
}

.founder-title {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.75rem;
}

.founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.6;
    transition: opacity var(--transition-smooth);
    color: hsl(var(--color-foreground));
    text-decoration: none;
}

.founder-linkedin:hover {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    margin-bottom: 5rem;
    text-align: center;
}

.cta-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: hsl(var(--color-foreground));
    color: hsl(var(--color-background));
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity var(--transition-smooth);
}

.cta-button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    border-top: 1px solid hsl(var(--color-border));
    background-color: hsl(var(--color-muted) / 0.2);
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-left {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-left {
        text-align: left;
    }
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-icon {
    color: hsl(var(--color-muted-foreground));
    transition: color var(--transition-smooth);
    text-decoration: none;
}

.footer-icon:hover {
    color: hsl(var(--color-accent));
}

/* Typing Animation */
@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.typing-cursor {
    animation: cursor-blink 1s step-end infinite;
    margin-left: 2px;
    display: inline;
}

/* Fade-in Animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .container {
        padding: 3rem 1.5rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
