/* Fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('../assets/fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../assets/fonts/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../assets/fonts/Inter-Bold.ttf') format('truetype');
}

/* CSS Reset & Variables */
:root {
    /* Color Palette - Modern & Trustworthy */
    --primary: #047857;
    /* Emerald 700 */
    --primary-dark: #064E3B;
    --primary-light: #10B981;
    --accent: #D1FAE5;
    /* Emerald 100 */
    --surface: #FFFFFF;
    --bg: #F9FAFB;
    /* Gray 50 */
    --text-main: #111827;
    /* Gray 900 */
    --text-muted: #6B7280;
    /* Gray 500 */
    --border: #E5E7EB;
    /* Gray 200 */

    /* Typography */
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --header-height: 70px;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Navigation --- */
.navbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
}

.brand img {
    border-radius: 8px;
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--text-main);
    /* Modern Black Button style */
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    transition: transform 0.1s, background-color 0.2s;
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 13px;
    background-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background-color: #000;
    color: white;
}

.btn-primary.small:hover {
    background-color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

.hero-sub {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    margin-bottom: 48px;
}

.apple-icon {
    margin-bottom: 2px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup-wrapper {
    position: relative;
    width: 320px;
}

.phone-mockup {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    border-radius: 40px;
    /* Assuming image needs rounding, remove if pre-rounded */
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    right: -20px;
    color: var(--primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Features Bento Grid --- */
.section-features {
    padding: 100px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 320px;
    /* Fixed height for consistent look */
    gap: 24px;
}

.bento-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

/* Card Specifics */
.card-attendance {
    grid-column: span 2;
    /* Wide top left */
    background: radial-gradient(circle at top right, #F0FDF4, var(--bg));
}

.card-reports {
    grid-column: span 1;
    /* Tall right */
    grid-row: span 2;
    background: white;
    border-color: #E2E8F0;
    background: linear-gradient(180deg, white 0%, #EFF6FF 100%);
}

.card-planning {
    grid-column: span 2;
    /* Wide bottom left */
}

/* Card Content */
.card-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 300px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.green {
    background: #DCFCE7;
    color: #166534;
}

.blue {
    background: #DBEAFE;
    color: #1E40AF;
}

.purple {
    background: #F3E8FF;
    color: #6B21A8;
}

/* Visuals in Cards */
.card-visual-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 50%;
    align-self: flex-end;
    /* Push to right */
    border: 1px solid var(--border);
}

.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bg-green {
    background: #10B981;
}

.bg-red {
    background: #EF4444;
}

.bg-yellow {
    background: #F59E0B;
}

.card-visual-doc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon {
    font-size: 24px;
    font-weight: 800;
    color: #1E40AF;
    background: white;
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.1);
    border: 1px solid #DBEAFE;
}

.card-visual-calendar {
    align-self: flex-end;
    width: 60%;
    margin-top: 20px;
}

.cal-row {
    display: flex;
    gap: 8px;
}

.cal-row .day {
    flex: 1;
    height: 48px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.cal-row .day.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}


/* --- Security Section --- */
.section-security {
    padding: 100px 0;
}

.text-green {
    color: var(--primary);
}

.security-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.sec-item {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 20px;
}

.sec-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.sec-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.sec-item p {
    font-size: 15px;
    color: var(--text-muted);
}


/* --- Footer --- */
.footer {
    background: #111827;
    /* Gray 900 */
    color: white;
    padding: 0;
}

.footer-cta {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
}

.footer-cta h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 32px;
}

.footer-cta .btn-primary {
    background: white;
    color: var(--text-main);
}

.footer-cta .btn-primary:hover {
    background: #f3f4f6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 24px;
    font-size: 14px;
    color: #9CA3AF;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.f-logo {
    font-weight: 800;
    color: white;
    font-size: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: white;
}



/* --- Burger Menu --- */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1002;
    padding: 0;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Burger Animation */
.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Dropdown */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    padding: 12px 0;
    border-bottom: 1px solid var(--bg);
}

.full-width {
    width: 100%;
    margin-top: 12px;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {

    /* Navbar */
    .desktop-only {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    /* Stack Grid */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        margin-top: 0;
    }

    .phone-mockup-wrapper {
        width: 260px;
        /* Smaller on mobile */
        margin: 0 auto;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-sub {
        margin: 0 auto 32px;
        font-size: 18px;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
    }

    /* Optimized Mobile Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    /* All cards span 1 column */
    .card-attendance,
    .card-reports,
    .card-planning {
        grid-column: span 1;
        grid-row: auto;
    }

    /* Specific Compact Styles for Mobile Cards */
    .bento-card {
        padding: 24px;
        /* Reduced padding */
        min-height: auto;
        /* Remove fixed height constraint */
    }

    /* Optimize visuals for vertical stacking */
    .card-visual-list {
        width: 100%;
        /* Full width visual */
        margin-top: 20px;
    }

    .card-visual-doc {
        margin-top: 24px;
        height: auto;
        padding-bottom: 12px;
    }

    .card-visual-calendar {
        width: 100%;
        margin-top: 24px;
    }

    .security-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding-bottom: 80px;
        /* Space for bottom nav if needed */
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}