/* 
  HINALL - Enterprise SaaS Theme (Zoho-inspired)
  Clean. Colorful. Minimal.
*/

:root {
    /* Brand Colors - Clean SaaS Palette */
    --bg-body: #ffffff;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;

    --primary: #006aff;
    /* Zoho-ish Blue */
    --primary-dark: #0050c2;
    --secondary: #facc15;
    /* Yellow accent */
    --danger: #ef4444;
    --success: #22c55e;

    /* Text Colors */
    --text-main: #111827;
    /* Near black */
    --text-muted: #4b5563;
    /* Gray */
    --text-light: #9ca3af;

    /* Layout */
    --container-width: 1200px;
    --nav-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows - Soft & Professional */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    /* Keep Outfit for headings, it's nice */
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

/* --- Helper Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--danger);
    /* Red primary buttons like Zoho sometimes uses for 'Big Actions' */
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: #f9fafb;
}

/* --- Header --- */
header {
    height: var(--nav-height);
    background: var(--bg-white);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0 60px;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- App Grid (The "Zoho" Look) --- */
.app-grid-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.app-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #e5e7eb;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* App Icon Colors */
.icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.icon-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.icon-yellow {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.icon-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.icon-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.icon-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.app-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    gap: 8px;
    /* Arrow slide animation */
}

/* --- Feature Sections (Alternating) --- */
.feature-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.25rem;
}

.feature-content p {
    font-size: 1.1rem;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- Stats/Numbers --- */
.stats-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 8px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Footer --- */
footer {
    background: #f8fafc;
    /* Very light gray */
    padding: 80px 0 40px;
    border-top: 1px solid #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* --- Trust Grid (Why HINALL) --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.hero-title {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.5rem;
}

@media (max-width: 968px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Header & Nav */
    header {
        padding: 0 16px;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 20px;
        border-top: 1px solid #eee;
        z-index: 1000;
        height: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-cta {
        display: none;
        /* Hide desktop buttons, move into nav-links if JS supports or just simplify */
    }

    .mobile-toggle {
        display: block !important;
        /* Force show */
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-main);
        cursor: pointer;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Layout */
    .hero-section {
        padding: 40px 0 20px;
    }

    .hero-content p {
        font-size: 1.1rem !important;
    }

    /* Grids */
    .app-grid {
        grid-template-columns: 1fr;
        /* Full width cards */
    }

    .container {
        padding: 0 20px;
        /* More breathing room on edges */
    }

    /* Feature Sections (Image/Text side-by-side) */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        /* Force stack */
        gap: 40px !important;
    }

    /* Stats */
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }

    .hero-section {
        padding-top: 20px;
    }

    .logo span,
    .logo {
        font-size: 20px;
    }
}