/* Church Central Cloud - Landing Page Clone */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --primary-muted: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-muted: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.12);
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --header-h: 72px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

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

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

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

.header.menu-open {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.logo-mark {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(200px, 44vw);
}

.logo-mark .logo-dome {
    stroke: var(--primary);
}

.logo-mark .logo-text-main {
    fill: var(--text);
}

.logo-mark .logo-text-accent {
    fill: var(--primary);
}

.logo-mark--footer .logo-dome {
    stroke: #a5b4fc;
}

.logo-mark--footer .logo-text-main {
    fill: #f1f5f9;
}

.logo-mark--footer .logo-text-accent {
    fill: #818cf8;
}

.logo-mark-footer {
    height: 44px;
    max-width: 220px;
}

.logo-footer {
    margin-bottom: 1rem;
}

.footer-brand .logo {
    margin-bottom: 0;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.subtle:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
    color: var(--text);
    background: var(--bg-subtle);
}

.nav-dropdown-trigger .chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-trigger .chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--primary-muted);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 24px 1.5rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.mobile-nav.active {
    display: flex;
}

body.menu-open {
    overflow: hidden;
}

.mobile-nav a {
    padding: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
}

.mobile-nav a:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.mobile-nav .btn {
    margin-top: 0.5rem;
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 4rem) 0 5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbff 0%, #fff 60%);
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.375rem 1rem;
    background: var(--primary-muted);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-title em {
    font-style: italic;
    color: var(--primary);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

.hero-app-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-app-link:hover {
    text-decoration: underline;
}

.hero-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Hero app mockup */
.hero-visual {
    position: relative;
}

.hero-mockup {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.06);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.hero-mockup:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.hero-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.chrome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.chrome-dot:nth-child(1) { background: #fca5a5; }
.chrome-dot:nth-child(2) { background: #fde047; }
.chrome-dot:nth-child(3) { background: #86efac; }

.chrome-url {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
}

.hero-mockup-screen {
    background: #f1f5f9;
    padding: 0;
    overflow: hidden;
}

/* MasjidMaster app mockups (demo.masjidmaster.com style) */
:root {
    --mm-sidebar: #1e293b;
    --mm-sidebar-hover: #334155;
    --mm-sidebar-active: #4f46e5;
    --mm-app-bg: #f1f5f9;
    --mm-chart-1: #22c55e;
    --mm-chart-2: #3b82f6;
    --mm-chart-3: #f59e0b;
    --mm-chart-4: #ef4444;
    --mm-chart-5: #8b5cf6;
    --mm-chart-6: #06b6d4;
}

.mm-app {
    display: flex;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 10px;
    line-height: 1.35;
    color: var(--text);
    pointer-events: none;
    user-select: none;
}

.mm-app--hero {
    min-height: 300px;
}

.mm-app--feature {
    max-width: 380px;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Sidebar */
.mm-sidebar {
    width: 118px;
    flex-shrink: 0;
    background: var(--mm-sidebar);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mm-sidebar--compact {
    width: 44px;
    padding: 10px 6px;
    align-items: center;
}

.mm-sidebar--compact .mm-brand-text,
.mm-sidebar--compact .mm-nav-item span:not(.mm-nav-ico) {
    display: none;
}

.mm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d4a853, #b8860b);
    flex-shrink: 0;
}

.mm-brand-text {
    font-size: 9px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.mm-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mm-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 500;
    cursor: default;
}

.mm-nav-item.active {
    background: var(--mm-sidebar-active);
    color: #fff;
}

.mm-nav-ico {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.mm-nav-item.active .mm-nav-ico {
    background: rgba(255, 255, 255, 0.35);
}

/* Main area */
.mm-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--mm-app-bg);
}

.mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.mm-header--sm {
    padding: 8px 12px;
}

.mm-header-title {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
}

.mm-header-title strong {
    color: var(--text);
    font-weight: 600;
}

.mm-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mm-header-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--bg-subtle);
}

.mm-header-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c7d2fe, var(--primary));
}

.mm-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.mm-btn-sm {
    font-size: 8px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

/* KPI cards */
.mm-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mm-kpi-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.mm-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
}

.mm-kpi--accent {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #fff 0%, #eef2ff 100%);
}

.mm-kpi--sm {
    padding: 6px 8px;
}

.mm-kpi--green {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mm-kpi-label {
    display: block;
    font-size: 8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.mm-kpi-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.mm-kpi--accent .mm-kpi-value {
    color: var(--primary);
}

.mm-kpi--green .mm-kpi-value {
    color: #15803d;
}

/* Dashboard chart grid (hero) */
.mm-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mm-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.mm-card--wide {
    grid-column: span 2;
}

.mm-card h4 {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 6px;
}

/* Charts */
.mm-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
}

.mm-bars span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}

.mm-bars--multi span:nth-child(1) { height: 35%; background: var(--mm-chart-1); }
.mm-bars--multi span:nth-child(2) { height: 55%; background: var(--mm-chart-2); }
.mm-bars--multi span:nth-child(3) { height: 42%; background: var(--mm-chart-3); }
.mm-bars--multi span:nth-child(4) { height: 72%; background: var(--mm-chart-4); }
.mm-bars--multi span:nth-child(5) { height: 48%; background: var(--mm-chart-5); }
.mm-bars--multi span:nth-child(6) { height: 60%; background: var(--mm-chart-6); }

.mm-bars--expense span:nth-child(1) { height: 40%; background: #fca5a5; }
.mm-bars--expense span:nth-child(2) { height: 65%; background: #f87171; }
.mm-bars--expense span:nth-child(3) { height: 30%; background: #fecaca; }
.mm-bars--expense span:nth-child(4) { height: 80%; background: #ef4444; }
.mm-bars--expense span:nth-child(5) { height: 50%; background: #fb7185; }
.mm-bars--expense span:nth-child(6) { height: 55%; background: #fda4af; }

.mm-pie {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.mm-pie::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: #fff;
    border-radius: 50%;
}

.mm-pie--a {
    background: conic-gradient(var(--mm-chart-1) 0 100deg, var(--mm-chart-2) 100deg 200deg, var(--mm-chart-3) 200deg 280deg, #e2e8f0 280deg 360deg);
}

.mm-pie--b {
    background: conic-gradient(var(--mm-chart-2) 0 140deg, var(--mm-chart-4) 140deg 240deg, #e2e8f0 240deg 360deg);
}

.mm-pie--c {
    background: conic-gradient(#6366f1 0 180deg, #ec4899 180deg 360deg);
}

.mm-pie--finance {
    background: conic-gradient(var(--mm-chart-1) 0 120deg, var(--mm-chart-3) 120deg 220deg, var(--mm-chart-2) 220deg 360deg);
}

.mm-line-chart {
    height: 44px;
    background:
        linear-gradient(180deg, transparent 60%, rgba(34, 197, 94, 0.08) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 32 L20 28 L40 22 L60 26 L80 12 L100 18 L120 8' fill='none' stroke='%2322c55e' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    border-radius: 4px;
}

.mm-line-chart--green {
    background:
        linear-gradient(180deg, transparent 55%, rgba(34, 197, 94, 0.1) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L25 24 L50 20 L75 14 L100 10 L120 6' fill='none' stroke='%2316a34a' stroke-width='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Feature: members table */
.mm-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.mm-search {
    flex: 1;
    min-width: 100px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 8px;
    font-size: 9px;
    background: #fff;
    color: var(--text-muted);
}

.mm-filter-chip {
    font-size: 8px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--primary-muted);
    color: var(--primary);
}

.mm-table {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.mm-table-head,
.mm-table-row {
    display: grid;
    grid-template-columns: 28px 1fr 52px 56px;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    font-size: 8px;
}

.mm-table--grades .mm-table-head,
.mm-table--grades .mm-table-row {
    grid-template-columns: 24px 1fr 48px 32px;
}

.mm-table-head {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.mm-table-row {
    border-bottom: 1px solid var(--border-light);
}

.mm-table-row:last-child {
    border-bottom: none;
}

.mm-table-row--fade {
    opacity: 0.55;
}

.mm-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c7d2fe, var(--primary));
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-avatar.sm {
    width: 18px;
    height: 18px;
    font-size: 6px;
}

.mm-cell-name {
    font-weight: 600;
    color: var(--text);
    font-size: 9px;
}

.mm-cell-muted {
    color: var(--text-muted);
    font-size: 8px;
}

.mm-badge {
    font-size: 7px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    text-align: center;
    background: #f1f5f9;
    color: var(--text-muted);
}

.mm-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.mm-badge--warn {
    background: #fef3c7;
    color: #b45309;
}

.mm-grade {
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

/* Finance */
.mm-finance-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6px;
}

.mm-tx-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-tx-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 8px;
    border-bottom: 1px solid var(--border-light);
}

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

.mm-tx-list strong {
    color: #15803d;
    font-size: 9px;
}

.mm-tx-list strong.neg {
    color: #dc2626;
}

/* Calendar & events */
.mm-calendar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.mm-cal-head,
.mm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
    font-size: 7px;
}

.mm-cal-head span {
    font-weight: 600;
    color: var(--text-muted);
}

.mm-cal-grid span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-muted);
}

.mm-cal-grid .is-today {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.mm-cal-grid .has-event:not(.is-today) {
    background: #fef3c7;
    color: #b45309;
}

.mm-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-event-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
}

.mm-event-date {
    font-size: 8px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mm-event-list strong {
    display: block;
    font-size: 9px;
}

.mm-event-list li span {
    font-size: 7px;
    color: var(--text-muted);
}

/* Notifications & forum */
.mm-notif {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.mm-notif--new {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #fff, #eef2ff);
}

.mm-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.mm-notif strong {
    display: block;
    font-size: 9px;
}

.mm-notif span {
    font-size: 7px;
    color: var(--text-muted);
}

.mm-notif time {
    font-size: 7px;
    color: var(--text-light);
    margin-left: auto;
    flex-shrink: 0;
}

.mm-forum-preview h4 {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 4px 0 6px;
}

.mm-forum-item {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 4px;
}

.mm-forum-item strong {
    display: block;
    font-size: 9px;
}

.mm-forum-item span {
    font-size: 7px;
    color: var(--text-muted);
}

/* Mekteb */
.mm-mekteb-tabs {
    display: flex;
    gap: 4px;
}

.mm-mekteb-tabs span {
    font-size: 8px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.mm-mekteb-tabs span.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mm-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.mm-progress-fill {
    display: block;
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 999px;
}

.mm-progress-label {
    font-size: 8px;
    color: var(--text-muted);
    margin: 0;
}

/* Admin */
.mm-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mm-admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mm-admin-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--primary-muted);
    margin-bottom: 4px;
}

.mm-admin-card strong {
    font-size: 9px;
}

.mm-admin-card span {
    font-size: 7px;
    color: var(--text-muted);
}

.hero-float-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
    min-width: 100px;
}

.hero-float-card-1 {
    bottom: 12%;
    left: -8%;
}

.hero-float-card-2 {
    top: 18%;
    right: -6%;
}

.hero-float-card .float-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.hero-float-card .float-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-card {
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: capitalize;
}

/* Section intro */
.section-intro {
    margin-bottom: 4rem;
}

.section-intro.center {
    text-align: center;
}

.section-intro.center p {
    max-width: 520px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.ai-tag {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features */
.features-section {
    padding: 6rem 0;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse .feature-content {
    order: 2;
}

.feature-block.reverse .feature-visual {
    order: 1;
}

.feature-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.feature-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.feature-content > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    margin-bottom: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Feature visuals */
.feature-visual {
    border-radius: var(--radius-xl);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.feature-visual-1 { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.feature-visual-2 { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.feature-visual-3 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.feature-visual-4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.feature-visual-5 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.feature-visual-6 { background: linear-gradient(135deg, #f0f9ff, #bae6fd); }

.feature-visual .mm-app--feature {
    transform: perspective(800px) rotateY(2deg);
    transition: transform 0.35s ease;
}

.feature-block:hover .mm-app--feature {
    transform: perspective(800px) rotateY(0deg);
}

/* Modules */
.modules-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--bg-muted) 12%, var(--bg-muted) 88%, #fff 100%);
}

.modules-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 0.375rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.modules-filter-btn {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.modules-filter-btn:hover {
    color: var(--primary);
    background: var(--primary-muted);
}

.modules-filter-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.modules-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.module-panel.is-hidden {
    display: none;
}

.module-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.module-panel-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-muted) 0%, #fff 100%);
    border: 1px solid var(--primary-muted);
    border-radius: var(--radius);
    color: var(--primary);
}

.module-panel-icon svg {
    width: 24px;
    height: 24px;
}

.module-panel-meta h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.module-panel-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.module-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    background: var(--bg-muted);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}

.module-card:hover {
    background: #fff;
    border-color: var(--primary-muted);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.module-card-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-muted);
}

.module-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.module-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.module-panel[data-category="financije"] .module-panel-icon {
    color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    border-color: #a7f3d0;
}

.module-panel[data-category="financije"] .module-panel-count {
    color: #059669;
    background: #ecfdf5;
}

.module-panel[data-category="financije"] .module-card-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px #d1fae5;
}

.module-panel[data-category="analiza"] .module-panel-icon,
.module-panel[data-category="resursi"] .module-panel-icon {
    color: #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border-color: #fde68a;
}

.module-panel[data-category="analiza"] .module-panel-count,
.module-panel[data-category="resursi"] .module-panel-count {
    color: #d97706;
    background: #fffbeb;
}

.module-panel[data-category="analiza"] .module-card-dot,
.module-panel[data-category="resursi"] .module-card-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px #fef3c7;
}

.module-panel[data-category="sistem"] .module-panel-icon {
    color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%);
    border-color: #ddd6fe;
}

.module-panel[data-category="sistem"] .module-panel-count {
    color: #7c3aed;
    background: #f5f3ff;
}

.module-panel[data-category="sistem"] .module-card-dot {
    background: #8b5cf6;
    box-shadow: 0 0 0 3px #ede9fe;
}

.modules-footer-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-muted) 0%, #fff 50%, var(--primary-muted) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.modules-footer-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
    .modules-panels {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .module-panel:first-child {
        grid-column: 1 / -1;
    }

    .module-panel[data-category="sistem"] {
        grid-column: 1 / -1;
    }
}

/* Pricing */
.pricing-section {
    padding: 6rem 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.toggle-btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.toggle-save {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pricing-grid--single {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid--single .pricing-card.popular {
    transform: none;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-card .price {
    margin-bottom: 0.5rem;
}

.pricing-card .amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.pricing-card .amount.custom {
    font-size: 1.75rem;
}

.pricing-card .period {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card ul {
    margin-bottom: 1.5rem;
}

.pricing-card ul li {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
}

.pricing-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Blog */
.blog-section {
    padding: 6rem 0;
    background: var(--bg-muted);
}

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

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-muted);
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card > a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.blog-card > a:hover {
    text-decoration: underline;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

/* Article pages */
.article-page .header {
    position: sticky;
}

.container--article {
    max-width: 720px;
}

.article-header {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, var(--primary-muted) 0%, #fff 100%);
    border-bottom: 1px solid var(--border-light);
}

.article-back {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.article-back:hover {
    text-decoration: underline;
}

.article-meta {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.article-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.article-body {
    padding: 3rem 0 4rem;
}

.article-body p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.75rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 1.25rem;
    color: var(--text-muted);
}

.article-body li {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--primary);
    font-weight: 500;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-callout {
    background: var(--primary-muted);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.article-footer-cta {
    padding: 0 0 4rem;
}

.article-cta-box {
    background: var(--text);
    color: #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
}

.article-cta-box h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.75rem;
}

.article-cta-box p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.article-cta-box .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.article-cta-box .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.center {
    text-align: center;
}

/* CTA */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, #7c3aed 100%);
    color: #fff;
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.cta-inner p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .hero-cta {
    margin-bottom: 0;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--text);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.footer-brand > p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact address {
    font-style: normal;
    color: #94a3b8;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.8125rem;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.badge-inline {
    font-size: 0.6875rem;
    background: var(--primary);
    color: #fff;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 4px;
}

.footer-affiliate {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 480px;
}

.footer-affiliate h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-affiliate p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-bottom {
    width: 100%;
    margin-top: 0;
    padding: 2rem 24px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top[hidden] {
    display: flex !important;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

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

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

    .hero-mockup {
        transform: none;
        max-width: 520px;
        margin: 0 auto;
    }

    .mm-app--hero {
        min-height: 240px;
    }

    .mm-sidebar {
        width: 90px;
    }

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

    .mm-card--wide {
        grid-column: span 2;
    }

    .feature-visual .mm-app--feature {
        transform: none;
        max-width: 100%;
    }

    .hero-mockup:hover {
        transform: none;
    }

    .hero-float-card-1 {
        left: 0;
        bottom: 8%;
    }

    .hero-float-card-2 {
        right: 0;
    }

    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block.reverse .feature-content,
    .feature-block.reverse .feature-visual {
        order: unset;
    }

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

    .pricing-card.popular {
        transform: none;
    }

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

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

@media (max-width: 768px) {
    .logo-mark {
        height: 34px;
        max-width: 168px;
    }

    .nav-desktop,
    .header-actions {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .header {
        overflow: visible;
    }

    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--shadow);
    }

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

    .hero-float-card {
        display: none;
    }

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

    .modules-filter {
        border-radius: var(--radius-lg);
        padding: 0.5rem;
    }

    .modules-filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .module-panel {
        padding: 1.25rem;
    }

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

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

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

    .hero-content .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content .hero-cta .btn {
        width: 100%;
    }

    .cta-section .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

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

    .back-to-top {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }
}

