/* Style Guide & Variables (Apple / Stripe style) */
:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-primary: #0f766e; /* Deep Teal/Cyan matching the logo */
    --accent-secondary: #0d9488; /* Vibrant Teal */
    --accent-light: #f0fdfa;
    --border-color: #f3f4f6; /* Very light gray */
    --border-hover: #e5e7eb;
    --input-bg: #fafafa;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Animation Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    background-color: var(--bg-color);
    font-family: var(--font-sans);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Page Layout Container */
.page-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Subtle Interactive Background Spotlight */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle 500px at 50% 50%, rgba(13, 148, 136, 0.035), transparent 80%);
    transition: background 0.15s ease-out;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    z-index: 20;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.03));
    transition: transform 0.8s var(--ease-out-expo);
}

.brand-logo:hover {
    transform: scale(1.02);
}

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 20px 0 60px 0;
    width: 100%;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 820px;
    gap: 24px;
}

/* Badge (Pill) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    animation: badge-pulse 2s infinite ease-out;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.badge-text {
    letter-spacing: -0.01em;
}

/* Typography styles */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 640px;
}

/* Grid of Pillars / Features - 1 Row / 4 Columns Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}

.feature-card:hover {
    border-color: rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent-primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}


/* Footer Section */
.main-footer {
    width: 100%;
    padding: 40px 0;
    margin-top: auto;
}

.footer-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
    margin-bottom: 24px;
}

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

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.separator {
    color: var(--border-hover);
    font-size: 12px;
}

/* Entry Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s var(--ease-out-expo) forwards;
}

/* Assign delay variables */
[style*="--delay"] {
    animation-delay: calc(var(--delay) * 120ms);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Responsive Design Queries - Critical & Robust */
@media (max-width: 1100px) {
    .page-container {
        padding: 0 32px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .main-content {
        gap: 60px;
    }
}

@media (max-width: 640px) {
    .page-container {
        padding: 0 20px;
    }

    .main-header {
        padding: 24px 0;
    }
    
    .brand-logo {
        max-height: 140px;
    }
    
    .main-content {
        gap: 40px;
        padding-top: 10px;
    }
    
    .hero-section {
        gap: 14px;
        padding: 0 8px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.55;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px;
        gap: 12px;
    }

    .feature-icon-wrapper {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .feature-icon {
        width: 22px;
        height: 22px;
    }

    .feature-title {
        font-size: 17px;
    }

    .feature-desc {
        font-size: 13.5px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
