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

:root {
    --coffee-dark: #2d2520;
    --coffee-medium: #6b4e3d;
    --coffee-light: #d4a574;
    --cream: #faf8f5;
    --white: #ffffff;
    --gray-light: #f5f3f0;
    --gray-medium: #a39a91;
    --gray-dark: #5a5550;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--coffee-dark);
    background-color: var(--cream);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid #e8e4df;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.header-cta {
    background: var(--coffee-dark);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid var(--coffee-dark);
}

.header-cta:hover {
    background: var(--coffee-medium);
    border-color: var(--coffee-medium);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('https://decaf.studio/src/coffee-beans.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 37, 32, 0.88) 0%, rgba(107, 78, 61, 0.85) 100%);
    z-index: -1;
}

.hero-label {
    display: inline-block;
    background: rgba(212, 165, 116, 0.2);
    color: var(--coffee-light);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 2rem auto 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.cta-primary {
    background: var(--white);
    color: var(--coffee-dark);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.2s ease;
    border: 2px solid var(--white);
}

.cta-primary:hover {
    background: var(--coffee-light);
    border-color: var(--coffee-light);
    color: var(--coffee-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.2s ease;
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background: var(--white);
    color: var(--coffee-dark);
    transform: translateY(-2px);
}

/* Featured Logos */
.featured-section {
    border-top: 1px solid #e8e4df;
    border-bottom: 1px solid #e8e4df;
    background: var(--white);
    padding: 3rem 2rem;
}

.featured-content {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
}

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.featured-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.featured-logo img {
    max-width: 100%;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.featured-logo:hover img {
    opacity: 0.85;
    filter: grayscale(50%);
}

/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

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

.stats-text .section-label {
    color: var(--coffee-medium);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.stats-text .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.stats-text .section-description {
    font-size: 1.125rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

.stats-image-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.stats-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(45, 37, 32, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(45, 37, 32, 0.15);
}

/* Services Section */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e8e4df 50%, transparent 100%);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-label {
    color: var(--coffee-medium);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

/* Inline links (homepage sections) */
.section-description a,
.step-description a,
.service-description a {
    color: var(--coffee-medium);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

.section-description a:hover,
.step-description a:hover,
.service-description a:hover {
    color: var(--coffee-dark);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e8e4df;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45, 37, 32, 0.08);
    border-color: var(--coffee-light);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--coffee-dark);
}

.service-description {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* Process Section */
.process {
    background: var(--white);
    border-top: 1px solid #e8e4df;
    border-bottom: 1px solid #e8e4df;
    padding: 6rem 2rem;
}

.process-content {
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--coffee-light);
    margin-bottom: 1rem;
    display: block;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--coffee-dark);
}

.step-description {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* Case Study Section */
.case-study {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.case-study-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.case-study-screenshot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(45, 37, 32, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(45, 37, 32, 0.15);
}

.case-study-text .section-label {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('https://decaf.studio/src/coffee-beans.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 37, 32, 0.9) 0%, rgba(107, 78, 61, 0.88) 100%);
    z-index: -1;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-email {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
}

/* Footer */
footer {
    background: var(--cream);
    color: var(--coffee-dark);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #e8e4df;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--coffee-dark);
}

.footer-description {
    color: var(--gray-dark);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-email {
    color: var(--coffee-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--coffee-dark);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e4df;
    font-size: 0.875rem;
    opacity: 0.6;
    color: var(--gray-dark);
}

.footer-bottom a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--coffee-dark);
    text-decoration: underline;
}

/* Content Page */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.content-page h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.content-page h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--coffee-dark);
}

.content-page h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--coffee-dark);
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: var(--coffee-medium);
    text-decoration: underline;
}

.content-page a:hover {
    color: var(--coffee-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header-cta {
        display: none;
    }

    .logo-text {
        font-size: 1.125rem;
        white-space: nowrap;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-grid {
        gap: 2rem;
    }

    .stats-section {
        padding: 4rem 1.5rem;
    }

    .stats-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .case-study-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stats-text {
        text-align: center;
    }

    .stats-image-wrapper {
        justify-content: center;
    }
}