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

:root {
    --bg-primary: #f5f5f0;
    --bg-dark: #1c1917;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-light: #a8a29e;
    --text-on-dark: #fafaf9;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --border: #e7e5e4;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #292524 100%);
    color: var(--text-on-dark);
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* === Hero === */
.hero {
    padding: 80px 0 100px;
    text-align: center;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.03);
}

.section-dark .btn-secondary,
.section-cta .btn-secondary {
    color: var(--text-on-dark);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-dark .btn-secondary:hover,
.section-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* === Section Headers === */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 60px;
}

.section-dark .section-subtitle,
.section-cta .section-subtitle {
    color: var(--text-light);
}

/* === Capabilities === */
.capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.capability {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, border-color 0.2s;
}

.capability:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.capability h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-on-dark);
}

.capability p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* === Projects === */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.project {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-live {
    background: #dcfce7;
    color: #166534;
}

.status-building {
    background: #fef3c7;
    color: #92400e;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 100px;
    border: 1px solid var(--border);
}

.projects-more {
    text-align: center;
}

.link-arrow {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.link-arrow:hover {
    color: var(--accent-hover);
}

/* === Principles === */
.principles {
    max-width: 700px;
    margin: 0 auto;
}

.principle {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.principle:last-child {
    border-bottom: none;
}

.principle h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-on-dark);
}

.principle p {
    font-size: 1rem;
    color: var(--text-light);
}

/* === Vision === */
.vision {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.vision h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.vision p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* === Contact === */
.contact-options {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
    min-width: 240px;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-on-dark);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Newsletter === */
.newsletter {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-on-dark);
}

.newsletter > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input::placeholder {
    color: var(--text-light);
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-note {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* === Footer === */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-logo {
        max-width: 240px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .capabilities,
    .projects {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 320px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* === Utilities === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
