/* ========================================
   Church Information Management System (CIMS)
   AlmpactNI-Softalaya — Stylesheet
   ======================================== */

:root {
    --primary: #0f4c75;
    --primary-dark: #0b3857;
    --primary-light: #1b7aa8;
    --secondary: #5aa469;
    --secondary-light: #7bc089;
    --accent: #8ec13f;
    --gold: #f0a821;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-warm: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.12), 0 8px 10px -6px rgb(15 23 42 / 0.12);
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --max-width: 1200px;
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 76, 117, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.btn-text:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    height: var(--header-height);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-brand {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--dark);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 3rem) 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #fefce8 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f4c75' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(15, 76, 117, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.badge-icon {
    color: var(--secondary);
    font-size: 1rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.text-highlight {
    color: var(--primary-light);
    position: relative;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number,
.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Dashboard Mockup */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.mockup-dots {
    display: flex;
    gap: 0.4rem;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.mockup-body {
    padding: 1.5rem;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.chart-area {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    height: 120px;
    padding-bottom: 0.5rem;
}

.bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(to top, var(--primary), var(--primary-light));
    border-radius: 4px 4px 0 0;
    animation: growBar 1s ease forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

@keyframes growBar {
    to { transform: scaleY(1); }
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.recent-activity {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--border);
}

.activity-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot.green { background: var(--secondary); }
.activity-dot.blue { background: var(--primary-light); }
.activity-dot.orange { background: var(--gold); }

.activity-time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Benefits */
.benefits {
    background: var(--bg-soft);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
}

.benefit-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.benefit-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.benefit-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.benefit-icon.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.benefit-icon.purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.benefit-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.benefit-icon.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.benefit-icon.emerald { background: linear-gradient(135deg, #10b981, #059669); }

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* Modules */
.modules {
    background: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.module-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.module-card:hover::before {
    transform: scaleY(1);
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.1) 0%, rgba(90, 164, 105, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.module-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* Pillars */
.pillars {
    background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.pillar-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.5rem;
    color: white;
}

.pillar-card.people .pillar-header { background: linear-gradient(135deg, #0f4c75, #1b7aa8); }
.pillar-card.process .pillar-header { background: linear-gradient(135deg, #5aa469, #3d8b52); }
.pillar-card.technology .pillar-header { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.pillar-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pillar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.pillar-list {
    list-style: none;
    padding: 1.25rem 1.5rem;
}

.pillar-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.pillar-list li:last-child {
    border-bottom: none;
}

.check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Demo */
.demo {
    background: var(--bg-soft);
}

.demo-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    min-height: 520px;
    border: 1px solid var(--border);
}

.demo-sidebar {
    background: linear-gradient(180deg, var(--dark) 0%, #1e293b 100%);
    color: white;
    padding: 1.5rem;
}

.demo-brand {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.demo-tab:hover,
.demo-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.demo-tab span {
    font-size: 1.1rem;
}

.demo-content {
    padding: 2rem;
    background: var(--bg-soft);
}

.demo-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.demo-panel-header h3 {
    font-size: 1.4rem;
    color: var(--dark);
}

.demo-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.demo-table-container {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.demo-table th,
.demo-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.demo-table th {
    background: var(--bg-warm);
    font-weight: 700;
    color: var(--dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.demo-table tr:last-child td {
    border-bottom: none;
}

.demo-table tbody tr:hover {
    background: var(--bg-soft);
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.visitor {
    background: #fef9c3;
    color: #854d0e;
}

.status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(27, 122, 168, 0.1);
}

.member-form,
.donation-form {
    display: none;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.member-form.open,
.donation-form.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.member-form h4,
.donation-form h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
}

.demo-table-container.scrollable {
    overflow-x: auto;
}

.baptism-form,
.support-form,
.volunteer-form,
.field-form,
.finance-form,
.mentorship-form {
    display: none;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.baptism-form.open,
.support-form.open,
.volunteer-form.open,
.field-form.open,
.finance-form.open,
.mentorship-form.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.support-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.support-section h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.giving-summary.three-col {
    grid-template-columns: repeat(3, 1fr);
}

textarea.form-input {
    resize: vertical;
    min-height: 60px;
}

@media (max-width: 1024px) {
    .support-layout {
        grid-template-columns: 1fr;
    }

    .form-grid.three-col,
    .giving-summary.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid.three-col,
    .giving-summary.three-col {
        grid-template-columns: 1fr;
    }
}

.attendance-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.att-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    min-width: 160px;
    text-align: center;
}

.att-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.att-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.checkin-area {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.checkin-area h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.checkin-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkin-list {
    list-style: none;
}

.checkin-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.checkin-list li:last-child {
    border-bottom: none;
}

.giving-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.giving-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.giving-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.giving-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

/* CTA */
.cta {
    background: white;
    padding-bottom: 5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.cta-form .form-input {
    padding: 0.85rem 1rem;
    border: none;
}

.form-message {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    min-height: 1.5rem;
}

.form-message.success {
    color: #86efac;
}

.form-message.error {
    color: #fecaca;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text .logo-brand {
    color: white;
}

.footer-brand .logo-text .logo-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-form {
        max-width: 450px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .demo-app {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .demo-sidebar {
        padding: 1rem;
    }

    .demo-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .demo-tab {
        width: auto;
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

    .demo-content {
        padding: 1.25rem;
    }

    .form-grid,
    .checkin-form,
    .giving-summary {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dashboard-mockup {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .attendance-stats {
        flex-direction: column;
    }

    .att-stat {
        min-width: 100%;
    }
}
