/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Display font for headlines: Recoleta when hosted, Playfair Display fallback */
:root {
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: var(--font-display);
    color: #004754;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
}

.nav-link:hover {
    color: #004754;
}

.nav-link-demo {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: #9aff68;
    color: #004754;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-link-demo:hover {
    background-color: #a9f285;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #004754;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #fafafa;
    color: #1a1a1a;
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

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

.hero-copy {
    max-width: 720px;
    text-align: left;
}

.eyebrow {
    font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: #004754;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #004754;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
    color: #6b7280;
    /* Match title column width — avoid narrower centered block */
    max-width: none;
}

.hero-subtitle + .hero-subtitle {
    margin-top: 1rem;
}

.hero-copy > .hero-subtitle:last-of-type {
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.hero-media {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-media::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20%;
    background: linear-gradient(to right, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
    pointer-events: none;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #9aff68;
    color: #004754;
}

.btn-primary:hover {
    background: #a9f285;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.btn-outline {
    background: transparent;
    color: #004754;
    border: 2px solid #004754;
}

.btn-outline:hover {
    background: rgba(0, 71, 84, 0.06);
    transform: translateY(-2px);
}

.hero-cta {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.hero-note {
    font-size: 0.875rem;
    color: #6b7280;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #004754;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.align-left h2,
.align-left p {
    margin-left: 0;
}

.section-label {
    font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #ffffff;
}

.company-size .container > p {
    margin: 0;
}

.company-size .container > p + p {
    margin-top: 1.5rem;
}

.problem-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-phase {
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.timeline-phase-header {
    margin-bottom: 0.5rem;
}

.timeline-phase-title {
    font-weight: 500;
    color: #004754;
}

.timeline-phase-muted {
    opacity: 0.6;
}

.timeline-phase-active {
    border-left: 4px solid #9aff68;
    background-color: #ffffff;
    opacity: 1;
}

.timeline-phase-active .timeline-phase-title {
    font-weight: 600;
}

.timeline-phase p {
    color: #6b7280;
    margin: 0;
}

.problem-summary {
    margin-top: 2rem;
    font-weight: 600;
    color: #004754;
    font-size: 1.125rem;
}

.problem-quote {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.65;
    /* Full width of container — align with .timeline-phase cards above */
    max-width: none;
}

/* Process Section */
.process {
    padding: 6rem 0;
    background: #f9fafb;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #9aff68;
    border-radius: 1rem;
    transition: box-shadow 0.2s ease;
}

.process-step:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.process-step-num {
    flex-shrink: 0;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #9aff68;
}

.process-step-content {
    flex: 1;
}

.process-step-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #004754;
    margin-bottom: 0.5rem;
}

.process-step-desc,
.process-step-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 42rem;
}

.process-cta-wrap {
    margin-top: 2rem;
    margin-bottom: 0;
}

.process-cta-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #004754;
    text-decoration: underline;
}

.process-cta-link:hover {
    color: #9aff68;
}

.flows-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: flex-start;
}

.flow-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #004754;
}

.flow-chain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-chain-accent .flow-card {
    border-color: rgba(154, 255, 104, 0.3);
}

.flow-card {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.flow-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.flow-card p {
    margin: 0;
    color: #004754;
}

.flow-arrow {
    display: flex;
    justify-content: center;
    color: #d1d5db;
}

.flow-arrow i {
    font-size: 0.9rem;
}

.flows-convergence {
    margin-top: 3rem;
    text-align: center;
}

.flows-convergence p {
    font-weight: 500;
    color: #004754;
}

/* Job Architecture Builder Section */
.job-architecture {
    padding: 6rem 0;
    background: white;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.architecture-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.architecture-text p {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.architecture-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.architecture-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.architecture-feature i {
    font-size: 1.5rem;
    color: #F8D1C4;
    flex-shrink: 0;
}

.architecture-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.architecture-feature p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.architecture-visual {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 20px;
}

.architecture-box {
    flex: 1;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.architecture-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.architecture-box i {
    font-size: 3rem;
    color: #F8D1C4;
    margin-bottom: 1rem;
}

.architecture-box p {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.architecture-arrow {
    padding: 0 1rem;
}

.architecture-arrow i {
    font-size: 2rem;
    color: #d1ff00;
}

/* Product Section */
.product {
    padding: 6rem 0;
    background: #ffffff;
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.product-tab {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
}

.product-tab strong {
    font-weight: 700;
}

.product-tab.active {
    color: #004754;
}

.product-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.75rem;
    height: 2px;
    background-color: #9aff68;
}

.product-panels {
    margin-top: 1rem;
}

.product-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.product-copy h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004754;
    margin-bottom: 1rem;
}

.product-copy p {
    color: #6b7280;
    font-size: 1.05rem;
}

.product-copy p + p {
    margin-top: 1rem;
}

.product-screen {
    width: 100%;
}

.product-screen-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background-color: #fafafa;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
}

.product-screen-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background-color: #fafafa;
    display: block;
    padding: 0.5rem;
}

/* Differentiator */
.differentiator {
    border-top: 1px solid #e5e7eb;
    padding: 4rem 1.5rem;
}

.differentiator-text {
    font-size: 1rem;
    color: #1a1a1a;
    font-style: italic;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Built For Section */
.built-for {
    padding: 6rem 0;
    background: #f9fafb;
}

.built-for-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.built-for-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.built-for-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.built-for-role {
    font-weight: 600;
    color: #004754;
    margin-bottom: 0.75rem;
}

.built-for-decision {
    font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5BBF3A;
    margin-bottom: 0.75rem;
}

.built-for-description {
    color: #6b7280;
    font-size: 0.98rem;
    margin: 0;
}

.built-for-description + .built-for-description {
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-bio {
    margin-bottom: 4rem;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bio-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004754;
    margin-bottom: 1.5rem;
}

.bio-text p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.bio-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.bio-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #004754;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004754;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* CTA Band */
.cta-band {
    background: #004754;
    color: #ffffff;
    padding: 6rem 0;
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-band-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cta-band-text p {
    color: rgba(255, 255, 255, 0.7);
}

.cta-band-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.cta-band-btn {
    background-color: #9aff68;
    color: #004754;
}

.cta-band-btn:hover {
    background-color: #a9f285;
}

.cta-band-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    background: #004754;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
}

.footer-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-simple a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-simple a:hover {
    color: #9aff68;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-actions {
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 7rem;
        padding-bottom: 5rem;
    }

    .hero-copy {
        text-align: center;
        margin: 0 auto;
    }

    .hero-media {
        display: none;
    }

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

    .product-layout {
        grid-template-columns: 1fr;
    }

    .built-for-grid {
        grid-template-columns: 1fr;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-simple {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

.service-card,
.portfolio-item,
.stat {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}
