/* LocalLogic - Midnight Forest Theme (SPA) */
:root {
    /* Core Palette - Midnight Forest */
    --color-bg: #121f1e;        /* Deep Green/Black */
    --color-bg-alt: #0a1111;    /* Darker Footer/Hero end */
    --color-bg-card: rgba(30, 45, 43, 0.6); /* Glassy Card */
    
    --color-text-main: #FFFFFF;
    --color-text-muted: #E0E0E0;
    
    /* Accents */
    --color-primary: #EBC47C;   /* Luminous Gold */
    --color-primary-light: #F2D8A0;
    --color-secondary: #9DB5B2; /* Muted Sage */
    --color-border: rgba(255, 255, 255, 0.15);

    /* Gradients & Texture */
    --gradient-hero: linear-gradient(135deg, #121f1e 0%, #0a1111 100%);
    --texture-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(18, 31, 30, 0.85);
    --glass-blur: 12px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.5rem; color: var(--color-text-main); }
p { margin-bottom: var(--spacing-md); color: var(--color-text-muted); }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

.text-highlight {
    font-weight: 600;
    font-style: italic;
}

/* Utilities */
.container {
    width: min(92%, 1200px);
    margin-inline: auto;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
}

/* Base Styles */
section { padding: var(--spacing-lg) 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem; /* Reduced padding slightly as requested */
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center; /* Ensure text is centered if wrapping */
    line-height: 1.4; /* Better line height for multi-line buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-primary {
    background: var(--color-primary);
    color: #121f1e; /* Dark text on gold */
    box-shadow: 0 4px 15px rgba(235, 196, 124, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 196, 124, 0.4);
    color: #121f1e !important; /* Force dark text on hover to override nav styles */
}

.btn-inverse {
    background: #121f1e;
    color: var(--color-primary);
    border: 1px solid #121f1e;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-inverse:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(18, 31, 30, 0.4);
    color: var(--color-primary);
}

.btn-inverse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-inverse:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem; /* Shrink font slightly */
    color: var(--color-primary);
    display: flex; align-items: center; gap: 0.5rem;
}

.logo img {
    height: 24px; /* Shrink logo image */
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links {
    display: flex;
    align-items: center; 
    gap: var(--spacing-md);
    list-style: none;
}

.nav-cta {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap; /* Prevent wrapping */
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on mobile */
    }
    
    .main-nav {
        display: flex; /* Keep container visible for CTA */
    }
}

.main-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.main-nav .btn {
    opacity: 1; /* Reset opacity for buttons in nav */
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav links on mobile */
    }
}

/* Hero */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-visual {
    position: absolute; width: 50%; height: 100%; right: 0; top: 0;
    background-size: cover; background-position: center;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative; z-index: 1;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column; /* Stack vertically on very small screens */
        align-items: stretch; /* Full width buttons */
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

.eyebrow {
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

/* Value Prop Section */
.value-prop-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-bg);
    padding: var(--spacing-md) var(--spacing-sm);
    position: relative;
    z-index: 2;
}



.value-header h2 {
    color: var(--color-bg);
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    max-width: 900px;
}

.value-header h2 .highlight-text {
    display: block; /* Break to new line by default */
    font-style: italic;
}

.value-subtitle {
    color: rgba(18, 31, 30, 0.9); /* Darker text for visibility */
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 700px;
    margin-bottom: var(--spacing-md);
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile 1 column */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items */
    text-align: center;  /* Center text */
    gap: 0.5rem;
}

.value-item i {
    font-size: 2.5rem; /* Larger icon */
    color: var(--color-bg);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.value-item h3 {
    font-size: 1.25rem;
    color: var(--color-bg);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.value-item p {
    color: rgba(18, 31, 30, 0.85);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet 2 columns */
    }
}

@media (min-width: 1024px) {
    .value-header h2 .highlight-text {
        display: inline; /* Inline on desktop */
        margin-left: 0.5rem; /* Small space instead of indent */
    }
    
    .value-grid {
        grid-template-columns: repeat(4, 1fr); /* Desktop 4 columns */
    }

    .value-prop-section {
        padding: var(--spacing-lg) 0; /* Increased vertical padding on wide screens */
    }

    .value-header h2 {
        font-size: 2.25rem; /* Increased font size for wide screens */
    }
}

/* Components */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-card-wide {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .feature-card-wide {
        gap: var(--spacing-sm);
        padding: var(--spacing-lg); /* More padding as requested */
        align-items: flex-start; /* Ensure left alignment */
    }

    .feature-card-wide .card-header {
        width: 100%; /* Full width header */
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card-wide .card-header i {
        margin-bottom: 0 !important; /* Remove bottom margin from icon since it's side-by-side with title */
    }

    .feature-card-wide .card-header h3 {
        margin-bottom: 0; /* Remove bottom margin from title */
    }

    .feature-card-wide .card-content {
        width: 100%;
    }
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pill {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.process-step {
    border-left: 2px solid var(--color-primary);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.process-step h3 {
    font-size: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--color-bg-alt);
    padding: var(--spacing-md) 0; /* Reduced from lg */
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}
