/* IOE AI - Editorial Warmth Aesthetic */

:root {
    /* Warm Earth Palette */
    --primary: #c2410c;
    --primary-dark: #9a3412;
    --primary-light: #ea580c;
    --accent: #166534;
    --accent-light: #22c55e;
    --gold: #b45309;

    /* Backgrounds */
    --bg: #faf7f2;
    --bg-warm: #f5f0e8;
    --bg-dark: #1c1917;
    --bg-card: #ffffff;

    /* Text */
    --text: #1c1917;
    --text-muted: #57534e;
    --text-light: #a8a29e;
    --text-inverse: #faf7f2;

    /* Utilities */
    --border: #e7e5e4;
    --border-dark: #d6d3d1;
    --shadow: 0 4px 6px -1px rgba(28, 25, 23, 0.05), 0 2px 4px -2px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(28, 25, 23, 0.08), 0 8px 10px -6px rgba(28, 25, 23, 0.04);
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle grain texture */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

em {
    font-style: italic;
    color: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-dark);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Cormorant Garamond', serif;
}

.logo-mark {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo-text {
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    padding: 12px 24px;
    background: var(--text);
    color: var(--text-inverse);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 140px 80px 100px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 32px;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 15px;
    animation: float 6s ease-in-out infinite;
}

.hero-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-card.card-2 {
    top: 40%;
    right: 5%;
    animation-delay: -2s;
}

.hero-card.card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: -4s;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-icon.green {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.card-icon.amber {
    background: linear-gradient(135deg, var(--gold) 0%, #fbbf24 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-shape {
    position: absolute;
    top: 50%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194, 65, 12, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: -1;
}

/* Trusted Section */
.trusted {
    padding: 60px 80px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-warm);
}

.trusted-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 32px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trusted-logos span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.trusted-logos span:hover {
    opacity: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header.light {
    color: var(--text-inverse);
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header.light .section-eyebrow {
    color: rgba(255,255,255,0.7);
}

.section-header.light em {
    color: #fbbf24;
}

/* Services Section */
.services {
    padding: 120px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card.featured {
    grid-row: span 2;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-warm) 100%);
}

.service-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--border);
    line-height: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-warm);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 28px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
    font-size: 15px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.2;
}

.service-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* How It Works */
.how-it-works {
    padding: 120px 80px;
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.steps {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-visual {
    position: relative;
    margin-bottom: 32px;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    font-weight: 300;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    z-index: 0;
}

.step-icon {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-light);
}

.step-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: white;
}

.step-content p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.step-connector {
    padding-top: 60px;
    color: rgba(255,255,255,0.2);
}

/* Testimonials */
.testimonials {
    padding: 120px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.3s ease;
}

.testimonial:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial.featured {
    background: var(--bg-dark);
    color: var(--text-inverse);
    border-color: var(--bg-dark);
}

.testimonial p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 32px;
}

.testimonial footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
}

.testimonial footer span {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonial.featured footer span {
    color: rgba(255,255,255,0.6);
}

/* CTA Section */
.cta {
    padding: 120px 80px;
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: 24px;
}

.cta p {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-light);
}

.cta-decoration {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.decoration-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.decoration-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -50px;
}

.decoration-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: -100px;
    right: 0;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 80px 80px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 16px;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
}

.footer-brand .logo-mark {
    color: var(--primary-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.4);
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        padding: 120px 40px 80px;
        gap: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card.featured {
        grid-row: span 1;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-top: 160px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 20px 0;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .hero, .services, .testimonials, .cta {
        padding-left: 24px;
        padding-right: 24px;
    }

    .how-it-works {
        padding: 80px 24px;
    }

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

    .footer {
        padding: 60px 24px 32px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .trusted {
        padding: 40px 24px;
    }

    .trusted-logos {
        gap: 30px;
    }

    .trusted-logos span {
        font-size: 16px;
    }
}

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

.hero-content,
.service-card,
.step,
.testimonial {
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(5) { animation-delay: 0.3s; }
