/* ============================================
   InsightFlow Landing Page
   Earthy & organic — playful, warm, grounded
   ============================================ */

/* --- Color System --- */
:root {
    /* Backgrounds */
    --bg-cream: #F5F0E8;
    --bg-warm: #EDE6D8;
    --bg-card: #FDFAF4;

    /* Greens (accent) */
    --sage: #7A8B6F;
    --sage-light: #94A585;
    --sage-faint: #E8EDE4;

    /* Earth tones */
    --brown-dark: #3D2E1E;
    --brown-medium: #5C4A36;
    --brown-light: #8A7560;

    /* Terracotta (highlights) */
    --terra: #C47B5A;
    --terra-light: #D8A48A;
    --terra-faint: #F4E4DA;

    /* Text */
    --text-primary: #2E2118;
    --text-secondary: #5C4A36;
    --text-muted: #8A7560;

    /* Functional */
    --shadow-sm: 0 1px 3px rgba(61, 46, 30, 0.06);
    --shadow-md: 0 4px 16px rgba(61, 46, 30, 0.08);
    --shadow-lg: 0 8px 32px rgba(61, 46, 30, 0.1);
    --radius: 12px;
    --radius-lg: 20px;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-max: 900px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* --- Grain Texture Overlay --- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 700;
    font-variation-settings: 'opsz' 144;
    letter-spacing: -0.02em;
}

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

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    font-variation-settings: 'opsz' 72;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

a {
    color: var(--sage);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--terra);
}

/* --- Navigation --- */
.nav {
    padding: var(--space-md) 0;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    font-variation-settings: 'opsz' 144;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.wordmark:hover {
    color: var(--sage);
}

/* --- Hero --- */
.hero {
    padding: var(--space-xl) 0 var(--space-3xl);
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terra);
    margin-bottom: var(--space-md);
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero-body {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Products --- */
.products {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.products h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(122, 139, 111, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--sage-faint);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    margin-bottom: var(--space-xs);
    color: var(--brown-dark);
}

.product-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: var(--space-sm);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.98rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--terra);
    transition: color 0.2s ease, gap 0.2s ease;
}

.product-link:hover {
    color: var(--brown-dark);
    gap: 0.7rem;
}

.product-link .arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.product-link:hover .arrow {
    transform: translateX(2px);
}

.more-coming {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 24;
}

/* --- Footer --- */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid rgba(122, 139, 111, 0.15);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-wordmark {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-wordmark:hover {
    color: var(--sage);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--terra);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-lg) 0 var(--space-2xl);
    }

    .product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-lg);
    }

    .product-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-description {
        max-width: 480px;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
    :root {
        --container-padding: 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    .product-card {
        padding: var(--space-md);
    }

    .product-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

/* --- Utilities --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
