/* Clean Professional Premium Variables */
:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Premium Palette */
    --color-bg: #f5f5f7;
    /* Apple-esque light gray */
    --color-bg-gradient: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);

    --color-card: rgba(255, 255, 255, 0.7);
    --color-card-border: rgba(255, 255, 255, 0.5);

    --color-text-main: #1d1d1f;
    /* Soft deep black */
    --color-text-sub: #86868b;
    /* Premium gray */
    --color-accent: #000000;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --shadow-inner: inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    --radius-card: 24px;
    --radius-btn: 12px;
    --blur-glass: 20px;

    --spacing-section: 20px;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    background-image: var(--color-bg-gradient);
    min-height: 100vh;
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

h2 {
    font-size: 32px;
    margin-bottom: 32px;
}

p.body-text {
    font-size: 19px;
    /* Slightly larger */
    color: var(--color-text-main);
    /* Darker for better readability */
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.8;
}

p.lead-text {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Layout */
.page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    /* Sit above watermark */
}

.centered {
    text-align: center;
}

/* Header */
.site-header {
    display: flex;
    justify-content: flex-end;
    /* Align button to the right */
    align-items: center;
    padding: 20px 0;
    /* Reduced padding */
    margin-bottom: 0px;
    /* Removed bottom margin */
}

.hero-logo {
    display: block;
    margin: 10px auto 20px auto;
    /* Negative margins to pull content closer */
    height: 100px;
    /* Further increased size */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18));
    /* Premium shadow */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-logo:hover {
    transform: scale(1.05) translateY(-5px);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-text-main);
    margin-left: 12px;
    letter-spacing: -0.02em;
}

/* Footer specific overrides */
.footer-logo {
    margin-bottom: 24px;
}

.btn-header {
    text-decoration: none;
    color: #fff;
    background: #000;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-header:hover {
    border-color: #000;
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-section);
    position: relative;
}

/* Hero Background Glow */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-sub);
    font-weight: 600;
    display: block;
    margin-bottom: 24px;
    opacity: 0.6;
}

.subtitle {
    font-size: 16px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Cards */
.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cta-card {
    background: var(--color-card);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-card);
    padding: 48px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.cta-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.9);
}

.cta-card:hover::after {
    opacity: 1;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text-sub);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.cta-card p {
    font-size: 16px;
    color: var(--color-text-sub);
    line-height: 1.5;
}

.arrow-icon {
    align-self: flex-end;
    font-size: 28px;
    margin-top: 24px;
    transition: transform 0.4s;
    color: var(--color-text-main);
    opacity: 0.8;
}

.cta-card:hover .arrow-icon {
    transform: translateX(6px);
    opacity: 1;
}

/* Sections with Watermarks */
.section-block {
    margin-bottom: var(--spacing-section);
    position: relative;
    padding: 0px 0;
    /* Tightened */
}

.step-container {
    background: #ffffff;
    padding: 40px;
    /* Reduced from 60px */
    /* Restored generous padding for professional feel */
    border-radius: 32px;
    /* Smoother, larger radius */
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.05);
    /* Deep, premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.04);
    /* Very subtle definition */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step-container:hover {
    box-shadow: 0 30px 60px -8px rgba(0, 0, 0, 0.12), 0 0 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Grids */
.grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #f5f5f7;
    /* Subtle Apple-gray for contrast against white container */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Prepare for border transition */
}

/* Removed hover effect */
.hover-lift:hover {
    transform: none;
    background: #f5f5f7;
    border-color: transparent;
    box-shadow: none;
}

.highlight-card {
    background: #f5f5f7;
    /* Unified shade */
    color: var(--color-text-main);
    /* Unified text color */
    border: 1px solid transparent;
}

.highlight-card:hover {
    background: #f5f5f7;
    border-color: transparent;
    transform: none;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.large-card {
    background: #f5f5f7;
    /* Consistent static shade */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 56px;
    border-radius: 24px;
    box-shadow: none;
    /* No shadow */
    border: 1px solid transparent;
    /* Prepare for border transition if needed, but keeping it simple */
    transition: all 0.3s;
}

.large-card:hover {
    /* Explicitly remove hover effects if any parent logic applies, though .hover-lift handles most */
    transform: none;
    background: #f5f5f7;
    box-shadow: none;
    border-color: transparent;
}

.large-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
    margin-bottom: 16px;
}

.big-text {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
}

/* Process Timeline */
/* Process Timeline */
.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Increased gap */
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    /* Space for the line */
}

/* Vertical Connector Line */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    /* Aligns with marker center */
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.1) 90%, transparent);
    z-index: 0;
}

.timeline-step {
    background: #f5f5f7;
    /* Very subtle off-white to distinguish from parent */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 32px 40px;
    border-radius: 24px;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.timeline-step:hover {
    transform: none;
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: none;
}

.step-marker {
    width: 44px;
    height: 44px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Glowing pop */
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: -4px;
    /* Align slightly up */
    position: relative;
    z-index: 2;
}

.step-marker::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.5;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 16px;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.mono-note {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--color-text-sub);
    opacity: 0.7;
}

/* Tech Stack */
.tech-stack-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.tech-stack-row span {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-main);
    font-family: var(--font-heading);
    transition: all 0.3s;
}

.tech-stack-row span:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background: #fff;
}

/* Footer */
.site-footer {
    background: #f5f5f7;
    /* Matching the light gray shade */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    padding: 80px 80px;
    margin-top: 80px;
    border-radius: 32px;
    box-shadow: none;
    /* Removed heavy shadow for consistency with cards */
    margin-bottom: 40px;
    color: var(--color-text-main);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.footer-left h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.footer-left p {
    color: var(--color-text-sub);
    margin-bottom: 24px;
    max-width: 440px;
    font-size: 16px;
}

.contact-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-link {
    font-family: var(--font-heading);
    font-size: 32px;
    /* Much larger call to action */
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-main);
    transition: color 0.2s;
    letter-spacing: -0.02em;
}

.footer-link:hover {
    color: var(--color-text-sub);
}

.or-divider {
    display: block;
    margin: 16px 0;
    font-style: italic;
    color: var(--color-text-sub);
    font-size: 14px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Auto-scale typography */
    h1 {
        font-size: 24px;
        /* Reduced from 28px */
        line-height: 1.25;
        word-wrap: break-word;
        hyphens: manual;
    }

    h2 {
        font-size: 20px;
        /* Reduced from 24px */
        line-height: 1.25;
    }

    .cta-card h3 {
        font-size: 18px;
        /* Reduced from 20px */
    }

    /* Layout Collapses */
    .cta-wrapper,
    .grid-2col,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        /* Consistent gap */
    }

    .grid-3x2 {
        grid-template-columns: 1fr;
        /* Single column for features */
    }

    .cta-card,
    .large-card {
        min-height: auto;
        /* Allow natural height on mobile */
    }

    /* Padding adjustments */
    .section-block {
        margin-bottom: 60px;
        /* Tighter spacing */
        padding: 20px 0;
    }

    .page-container {
        padding: 0 24px;
    }

    .watermark {
        font-size: 100px;
        /* Smaller watermark */
        top: -20px;
    }

    /* Footer Alignment - Stacked */
    .site-header {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        /* Center logo and button */
        margin-bottom: 40px;
        text-align: center;
    }

    .logo {
        margin-bottom: 16px;
    }

    .header-link,
    .contact-box {
        align-items: center;
        text-align: center;
    }

    .footer-content {
        gap: 40px;
        text-align: center;
        grid-template-columns: 1fr;
    }

    .footer-left .logo-container {
        justify-content: center;
    }

    .site-footer {
        padding: 40px 24px;
    }

    .contact-box {
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 480px) {

    /* Smaller mobile tweaks */
    h1 {
        font-size: 20px;
        /* Reduced from 24px */
        margin-bottom: 16px;
    }

    h2 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 14px;
        /* Reduced from 16px */
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .btn-header {
        font-size: 12px;
        /* Smaller button text */
        padding: 10px 16px;
    }

    .btn-header {
        width: 100%;
        text-align: center;
        display: block;
        white-space: nowrap;
        /* Try to keep button text on one line if possible */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cta-card {
        padding: 24px;
    }

    .feature-card,
    .large-card,
    .timeline-step {
        padding: 24px;
    }

    .timeline-step {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}