:root {
    --primary-teal: #0d9488;
    --primary-teal-light: #14b8a6;
    --primary-teal-dark: #0f766e;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --bg-cream: #fafaf9;
    --text-dark: #1c1917;
    --text-mid: #44403c;
    --text-light: #78716c;
    --surface-white: #ffffff;
    --surface-light: #f5f5f4;
    --border-subtle: #e7e5e4;
}

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

body {
    font-family: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient mesh background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, -4%) rotate(1deg); }
    66% { transform: translate(-2%, 3%) rotate(-1deg); }
}

/* Grain texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    padding: 3rem 0 2rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.header-brand::before {
    content: '';
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-cyan));
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

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

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

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary-teal);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.2), 0 2px 4px -1px rgba(13, 148, 136, 0.1);
    cursor: pointer;
}

.hero-cta:hover {
    background: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.3), 0 4px 6px -2px rgba(13, 148, 136, 0.15);
    color: white;
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(4px);
}

/* Decorative diagonal line */
.diagonal-accent {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 400px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: -1;
}

/* Cards Grid */
.cards-section {
    padding: 3rem 0 5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.section-label {
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-teal);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardFadeIn 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.7s; }
.card:nth-child(2) { animation-delay: 0.85s; }
.card:nth-child(3) { animation-delay: 1s; }
.card:nth-child(4) { animation-delay: 1.15s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    border-color: var(--primary-teal-light);
    box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.08), 0 10px 10px -5px rgba(13, 148, 136, 0.04);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-cyan));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.card-description {
    color: var(--text-mid);
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.card-link:hover {
    color: var(--primary-teal-dark);
    gap: 0.75rem;
}

.card-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* Footer */
footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--border-subtle);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

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

.footer-logo {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.938rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-contact:hover {
    color: var(--primary-teal);
}

.footer-contact i {
    color: var(--primary-teal);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 2rem 0 1rem;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .diagonal-accent {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 4px;
    border-radius: 0.25rem;
}